notifications

Dywer Santos -- Barcelo Hotels d.santos at barcelohotels.com.do
Sat May 7 00:36:55 CEST 2005


Thanks for your help.

I found the answer in your mail. This version (REL 3) has /usr/bin/mail,
/usr/bin/printf and /bin/printf, /bin/mail. After I change the last command
to /bin/mail everything is working fine.

Thanks again for your help

Dywer Santos.

-----Mensaje original-----
De: Subhendu Ghosh [mailto:sghosh at sghosh.org]
Enviado el: Friday, May 06, 2005 4:43 PM
Para: Dywer Santos -- Barcelo Hotels
CC: nagios-users at lists.sourceforge.net
Asunto: RE: [Nagios-users] notifications


On Fri, 6 May 2005, Dywer Santos -- Barcelo Hotels wrote:

> 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...


Error is noted here  - could not find script or binary.
Do these exist: /usr/bin/printf and /usr/bin/mail ????


>
> 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.
>

--

-sg



-------------------------------------------------------
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