Hi                              

I was having a very similar problem about 1 week ago

I had incorrectly edited the 'command_line' in the 'define command'
 for the email notification. The consequences of which are identical
 to your result. My guess is that if you look CLOSELY at the 'command_lin
e' you will find something wrong - in my case I had a  bare $ in
 the line.  

Anyway, an easy way to verify operation of you cmd line is to copy
 and edit it and then try to execute it in a shell - Im betting
 it wont work - AND I have NOT found anywhere in Nagios where there
 is any error info about the cmd not being parsed correctly

Example

define command{

    command_name    notify-by-email

    command_line    /usr/bin/printf "%b" "$SERVICEOUTPUT$ $HOSTNAME$
 $SHORTDATETIME$" | mail -s "" $CONTACTEMAIL$

    }        

so copy -/usr/bin/printf "%b" "$SERVICEOUTPUT$ $HOSTNAME$ $SHORTDATETIME$
" | mail -s "" $CONTACTEMAIL$- out - edit in real values and execute
 it - 





- Lee Fitz (leefitz)



-----------------------

This thread is located in the archive at this URL:

http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi
1[showUid]=15065

                                        


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
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

Reply via email to