Notification using notify-html-email.sh

Jon Williams jonathan.williams at us.g4s.com
Fri Jul 25 17:55:17 CEST 2008


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.  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: notify-html-email.sh
Type: application/x-shellscript
Size: 29224 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080725/eb52dfbc/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
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=/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list