needs test that warns if a process hasn't been runing xhours

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
jeremy
Posts: 3
Joined: Mon Nov 28, 2011 5:42 am

needs test that warns if a process hasn't been runing xhours

Post by jeremy »

hi

I need a test that tells me when a certain process hasn't run for xx hours.
It's a process that comes up rarely, maybe sometimes once an hour for a few seconds.
So it is not active all the time.

Thanks for any help.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Use Process test and start action when N consecutive Bad results occur.
E.g. if you set 2 sec test interval and you want to get alert if process was not started within 2 hours, use "Start when 3600 consecutive Bad results occur" option.

H'm, there is problem, HostMonitor will not allow you to set this option to 3600.
Ok, you may use "advanced mode" action and expression like ('%SimpleStatus%'=='DOWN') and (%Recurrences%==3600).
How long this process works? 2 sec? 20 sec?

On the other hand, probably you can check some results produced by this process? Some log file? File time stamp?

Regards
Alex
jeremy
Posts: 3
Joined: Mon Nov 28, 2011 5:42 am

Post by jeremy »

thank, yes, i was using otional status processing and "use warning status if ('%SimpleStatus%'=='DOWN') and (%Recurrences%==3600)"
wth a test every 2sec. Test is red but turns green when the process runs.

This process writes a file that is moved right away. But the folder i writes
to can have 0 or 2 or 1000 files in it.

so:
Another (and maybe simpler?) way is to check if that directory has been unchanged for xx hours. Not size or numbers of files.
Lets say i want an alert if the folder hasn't changed for 18 hours.
If anything hasn't been written or moved/deleted from that folder.
makes sense ?

thanks for the quick response.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

When new file is added into the folder or some file removed from the folder, system changes timestamp for this folder so you may use "File/Folder Availability" test method. It allows you to check age of the file/folder as well.

Regards
Alex
jeremy
Posts: 3
Joined: Mon Nov 28, 2011 5:42 am

Post by jeremy »

that seems to work , thanks a lot :lol:
Post Reply