View previous topic :: View next topic |
Author |
Message |
jeremy
Joined: 28 Nov 2011 Posts: 3
|
Posted: Mon Nov 28, 2011 5:59 am Post subject: needs test that warns if a process hasn't been runing xhours |
|
|
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. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Nov 28, 2011 6:13 am Post subject: |
|
|
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 |
|
Back to top |
|
|
jeremy
Joined: 28 Nov 2011 Posts: 3
|
Posted: Mon Nov 28, 2011 7:29 am Post subject: |
|
|
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. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Nov 28, 2011 7:53 am Post subject: |
|
|
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 |
|
Back to top |
|
|
jeremy
Joined: 28 Nov 2011 Posts: 3
|
Posted: Tue Nov 29, 2011 2:52 am Post subject: |
|
|
that seems to work , thanks a lot |
|
Back to top |
|
|
|