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.
needs test that warns if a process hasn't been runing xhours
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
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
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.
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.