KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

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

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
jeremy



Joined: 28 Nov 2011
Posts: 3

PostPosted: Mon Nov 28, 2011 5:59 am    Post subject: needs test that warns if a process hasn't been runing xhours Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Mon Nov 28, 2011 6:13 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jeremy



Joined: 28 Nov 2011
Posts: 3

PostPosted: Mon Nov 28, 2011 7:29 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Mon Nov 28, 2011 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jeremy



Joined: 28 Nov 2011
Posts: 3

PostPosted: Tue Nov 29, 2011 2:52 am    Post subject: Reply with quote

that seems to work , thanks a lot
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index