retrieving folder names from hostmonitor

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
spetterpoep
Posts: 9
Joined: Mon Apr 30, 2012 7:12 am

retrieving folder names from hostmonitor

Post by spetterpoep »

Hi

I've made a stored procedure to insert all the folder names from hostmonitor into our database.
Here's a part of the script:

Code: Select all

set @dummy = 1
	-- Insert statements for procedure here
OPEN @cur_names 
FETCH NEXT
FROM @cur_names INTO @isv_nme
	WHILE @@FETCH_STATUS = 0
		BEGIN
			IF @isv_nme = @p_name
				BEGIN
			set	@dummy = 0
			END
			ELSE
			PRINT 'EXISTSSSSSS'
		FETCH NEXT
FROM @cur_names INTO @isv_nme
END
CLOSE @cur_names
DEALLOCATE @cur_names
if @dummy = 1
BEGIN
INSERT INTO tbl_ISV (isv_name) values(@p_name)
END
END

I want to get all the foldernames of the folders in hostmonitor so I can set it as a parameter for my stored procedure (I will use powershell to call the stored procedure). This part is done with maybe a few minor mistakes but my question is... Is there a possibility to get all the folder names?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may use HostMonitor reports to retrieve Folder names.
E.g. you may create Custom HTML report, and fill only "Folder title" section with %Folder% or %FullPath% macro variable.
Such Report profile will create txt file with list of folders.
Also, this report can be generated using HMS script command CreateReport.

Please check the manual or visit our web site for more information at:
Custom HTML Report: http://www.ks-soft.net/hostmon.eng/mfra ... CustomHTML
HMS script commands: http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
spetterpoep
Posts: 9
Joined: Mon Apr 30, 2012 7:12 am

Post by spetterpoep »

Never thought to do it that way.
I'll try it out immediately :)
Thanks for help
Post Reply