Reports, scheduled actions

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
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Reports, scheduled actions

Post by Stoltze »

Hi Alex,

Some questions from me. Maybe it has been answered before... :wink:

1. When using macros for the output of reports, it's not working with macros. Eg global reports, need to place them in a new directory each month. Output too: c:\data\%dd%\boss.htm gives me the following error:
Error: Cannot create file "C:\data\21\rep-boss.htm"
But using the macros with logs, works fine. Any ideas?

2. I would like to monitor eg Disk Space every 24 hour. But I can only do so every 23:59:59 Is this the solution?

3. If I would like to make sure, that the test only runs at night, how can I make sure of this? I have tried this earlier, but then the test showed out of schedule or something like that. What would be the correct way to do this?

4. Can I chech the status of a job, eg backup job, running in a MSSQL server?

5. Can I check the status of job, scheduled by "Scheduled Tasks" in Windows?

I believe this is it for now. It's totally gret what you have done with version 5.x Especially the Acknowledgements part!! :D

Regards,
Stoltze
KS-Soft
Posts: 12824
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

1. When using macros for the output of reports, it's not working with macros. Eg global reports, need to place them in a new directory each month. Output too: c:\data\%dd%\boss.htm gives me the following error:
Error: Cannot create file "C:\data\21\rep-boss.htm"
But using the macros with logs, works fine. Any ideas?
According to this error message, HostMonitor resolves macros (you see "21", not "%dd" in the path). I assume HostMonitor says "cannot create file" because directory "21" doesn't exist.
2. I would like to monitor eg Disk Space every 24 hour. But I can only do so every 23:59:59 Is this the solution?
HostMonitor needs a second to execute test. So 23:59:59+1sec = 24 hours.
But its not precise. If you have a lot of tests, some tests can be performed a little later.
3. If I would like to make sure, that the test only runs at night, how can I make sure of this? I have tried this earlier, but then the test showed out of schedule or something like that. What would be the correct way to do this?
You should create schedule that allows test execution every day between 9:00 and 9:10 (just for example). Assign this schedule to the test and setup test interval longer than allowed test interval (9:10-9:00=10min, so test interval should be > 10 min, e.g. 15 min).
Can I chech the status of a job, eg backup job, running in a MSSQL server?
I think this backup job adds record into NT Event log. So, you may use NT Event Log test method to check result...
Can I check the status of job, scheduled by "Scheduled Tasks" in Windows?
In general this is impossible. Some applications may record log messages, Event Log messages, send SNMP Traps. You will be able to check this tasks. Other programs does not report result in any way, so you cannot monitor that tasks.

Regards
Alex
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

KS-Soft wrote:
1. When using macros for the output of reports, it's not working with macros. Eg global reports, need to place them in a new directory each month. Output too: c:\data\%dd%\boss.htm gives me the following error:
Error: Cannot create file "C:\data\21\rep-boss.htm"
But using the macros with logs, works fine. Any ideas?
According to this error message, HostMonitor resolves macros (you see "21", not "%dd" in the path). I assume HostMonitor says "cannot create file" because directory "21" doesn't exist.
I tried it today, so AHM resolves %dd% into 21 for todays date. But it doesn't create a directory for it. But when logging to eg c:\data\%dd%\1-log.txt , it working perfectly.

Should there be a difference between reports and logs capabilities to create directories?
KS-Soft
Posts: 12824
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, HostMonitor does not create directories for reports.
Probably we can add option in next version

Regards
Alex
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

Oh yes, that would be a very nice thing.. :)
KS-Soft
Posts: 12824
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok, update available at www.ks-soft.net/download/hm527.zip
I would recommend
1) install version 5.26 before applying this update
2) make backup copy of the settings (*.LST, *.INI, *.HML files), in case you decide to downgrade later. HostMonitor makes backup copy when it converts file into new format, but 2 copies is better. Just in case...

Regards
Alex
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

KS-Soft wrote:Ok, update available
Alex, you keep amazing me with your speed.. :)

And it's just working great...
Post Reply