Reposted with apologies:
After giving up on the send_mail.pl script I am going with the notify-html-email.sh add-on. I seems pretty straight forward. One question on a command. The command to run when notifying service alerts reads: define command { command_name notify-html-email command_line /usr/local/nagios/libexec/notify-html-email.sh service } I get this error in the nagios log: [1217000677] Warning: Attempting to execute the command "/usr/local/nagios/libexec/notify-html-email.sh service" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... Sounds familiar. Nagios is the owner and I also ran "chmod 0755 /usr/local/nagios/libexec/notify-html-email.sh". That is definately where the file is and permissions are good. I am wondering about the fact that "service" is after it. There is no - or / or anything before that. The error looks like it's trying to find a file called "notify-html-email.sh service" rather than the file notify-html-email.sh" with a parameter of "service". I have attached the script it is running.
notify-html-email.sh
Description: notify-html-email.sh
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ 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