Search found 5 matches
- Fri Jul 22, 2016 7:09 am
- Forum: Open Source Nagios Projects
- Topic: printf "[%lu]"
- Replies: 1
- Views: 1856
printf "[%lu]"
This is more of a curiouity than a problem. Every script I see that is designed to use the Nagios command file uses a format like this: NOW=`date +%s` printf "[%lu] SCHEDULE_FORCED_SVC_CHECK;$1;serial_number;$NOW\n" $NOW > $COMMANDFILE Note that the $NOW variable is used in two places -- o...
- Fri Jul 22, 2016 6:56 am
- Forum: Open Source Nagios Projects
- Topic: re-check service after “down” machine comes “up”?
- Replies: 8
- Views: 3696
Re: re-check service after “down” machine comes “up”?
You might be able to hack together an event handler to say "if host recovers, schedule this service check": https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/eventhandlers.html You could then have the script run by your event handler do something like this: NAGIOS_CMD_SO...
- Thu Jul 21, 2016 10:32 am
- Forum: Open Source Nagios Projects
- Topic: re-check service after “down” machine comes “up”?
- Replies: 8
- Views: 3696
Re: re-check service after “down” machine comes “up”?
Is there some way that I can tell nagios "Maintain the check interval 1440; but, if you see the machine go down and come back up, then force a re-check regardless of the interval" ? No, because by its very nature Nagios will not have any way to know the host went down and then came back u...
- Thu Jul 21, 2016 10:05 am
- Forum: Open Source Nagios Projects
- Topic: re-check service after “down” machine comes “up”?
- Replies: 8
- Views: 3696
Re: re-check service after “down” machine comes “up”?
I humbly believe you are mistaken. retry_interval, from my understanding, is when the host or service first goes down (" changed to a non-UP state "), it will check again after that many minutes to see if it is still down. For example, I have a check for the last "puppet" run. Pu...
- Thu Jul 21, 2016 9:12 am
- Forum: Open Source Nagios Projects
- Topic: re-check service after “down” machine comes “up”?
- Replies: 8
- Views: 3696
re-check service after “down” machine comes “up”?
Greetings. Let's say I have a nagios client. It has a scheduled downtime from 8am Monday through 8am Tuesday, and the machine is turned off for the entire duration. There is a service check it performs once per day (check_interval 1440) Let's say the check happens to be scheduled for 8pm. So at 8pm ...