Is there a way to make Nagios record to syslog when it’s notification command cannot be run? Say for example my notification command is a perl script called page.pl. Some day, for whatever reason, this file gets copied over with a new version and someone forgets to chmod to to make it executable. Without actively checking the Nagios alert page and correlating it with pages (not) received, this could potentially remain unnoticed. Is there any way that Nagios could record an error if the script it calls is not run?
Wouldn’t the nagios.log show that?
nagios.log only shows that there was a service alert and that it called the notify-by-xxxxxx function. However, it doesn’t log any information that the external command defined in notify-by-xxxxxx could not be run.