Check for lost passive checks


Is there a way to monitor the passive checks which are received and notify if there are any which are ignored because the service does not exist?

I am worried that some scripts are running and are trying to send output to my Nagios installation and we are not aware of it.


I normally just run a daily report out of cron that essentially runs this command…

grep “Passive check result was received for service” /usr/local/nagios/var/nagios.log | grep “host could not be found” | awk ‘{print $13}’ | sort | uniq | sed ‘s/,//g’ | sed “s/’//g”

I guess you could probably roll this into a plugin though.