notifications

Brian T. O'Neill btoneill at misplaced.net
Fri May 6 22:40:07 CEST 2005


What happens if you cut-n-paste the command in the log file on the
command line?

Brian

Quoting Dywer Santos -- Barcelo Hotels (d.santos at barcelohotels.com.do) from  :
> Sorry for the last mail.
> 
> ok.
> 
> 1) Nagios version:     2.0b3
> 2) I changed the e-mail to send the alert (in this server I have more
> services that send alerts and all of them are working)
> 3) no error message
> 4) the log has the following  entry:
> 
> [1115331023] Warning: Attempting to execute the command "/usr/bin/printf
> "%b" "***** Nagios  *****\n\nNotification Type: RECOVERY\nHost: Raq4\nState:
> UP\nAd
> dress: 10.66.1.11\nInfo: PING OK - Packet loss = 0%, RTA = 0.18
> ms\n\nDate/Time: Thu May 5 18:10:23 AST 2005\n" | /usr/bin/mail -s "Host UP
> alert for Raq4!"
>  d.santos at barcelohotels.com.do" resulted in a return code of 127.  Make sure
> the script or binary you are trying to execute actually exists...
> 
> 5) misscommands.cfg entry:
> # 'notify-by-email' command definition
> define command{
>         command_name    notify-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTALIAS$\nAdd
> ress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
> $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s
> "** $NOTIFICATIONTYPE$ al
> ert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
>         }
> 6) Yes, I can send mail from the command line.
> 
> Thanks for your help.
> 
> Dywer Santos
>   -----Mensaje original-----
>   De: Bill Akins [mailto:Bill_Akins at emoryhealthcare.org]
>   Enviado el: Friday, May 06, 2005 4:04 PM
>   Para: d.santos at barcelohotels.com.do; nagios-users at lists.sourceforge.net
>   Asunto: Re: [Nagios-users] notifications
> 
> 
>   Wow!!  With that much detailed information, including:
>   1) what version of Nagios
>   2) what you have already tried
>   3) the error messages you are getting
>   4) the log file entries
>   5) current misccommands.cfg entries and
>   6) the fact that you say you absolutely can send mail from the command
> line
> 
>   All of that leaves me with one possibility for what can be wrong; it has
> to be an IDtenT error.
> 
>   Provide a tad more info (like the things listed above) and someone just
> may be able to help you.
> 
>   >>> "Dywer Santos -- Barcelo Hotels" <d.santos at barcelohotels.com.do>
> 5/6/2005 1:04 PM >>>
> 
>   Hi.
> 
>   I cannot get the e-mail notifications working.
> 
>   Red Hat Enterprise Linux AS 3
> 

-- 
btoneill at misplaced.net

****************************************************************************
UNIX is simple and coherent, but it takes a genius (or at any rate a 
programmer) to understand and appreciate the simplicity."  - Dennis Ritchie
****************************************************************************


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
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