Nagios: Passive Monitoring and Error States

Just a quick one on a script I wrote for Nagios in cases where I am using a passive monitoring service. In this case I have a backup script that reports to Nagios once a week. This timeframe is set using the “freshness_threshold” configuration option. If Nagios does not receive an update in this timeframe, measured from the last update, it will try to execute the active check associated with the service. This, of course, may be a problem if you don’t have an active check to use. Using the echoback.sh script listed below, I just set the active check to use it and pass the appropriate error information that I will want sent to me into the parameters.

Continue reading