I have several processes that are started each morning from cron and then run until the early evening and are then killed.
For example, every weekday at 8:00am, a daemon is started and it runs until 6:30pm. A timeperiod of this particular process has been created so between 08:00 and 18:30, nagios uses nrpe to check to make sure the process is in the process list and if not, it sends out an alert. For the most part it works exactly as expected with the exception of the alert that is thrown in the morning. I have been getting an alert each day that is timestamped a couple of seconds after 8:00am (Today was sent out at 8:00:06) My guess as to what happens is that at exactly 8am the first check is done and the process might not have been fully started, or cron started it a few seconds after the check is done. However, I have nagios setup so that normal checks are scheduled to be performed every 5 minutes. If a check fails, another check is scheduled for 1 minute after the first failed check and then if that check fails, an alert is sent out. Nagios appears to be ignoring that. My guess as to what happens is that if the first check at the start of a timeperiod fails, it immediately sends out a alert. The issue seems to have gone away after I changed the timeperiod to begin at 8:01am but I wanted to pick the brain of the community to see if this is an expected behavior or something I need to look into more closely. Many Thanks -- Steven Kreuzer http://www.exit2shell.com/~skreuzer ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null