Mail not working

NetVicious n3tvicious-nagios at yahoo.es
Wed Jul 7 10:17:11 CEST 2004


--- Brad Dunn <bdunn at rdac.com.au> escribió: > Hello there,

I think you need to add a /usr/bin/mail -s before the |

I'm, using Debian Stable in the nagios box. When I installed nagios I
changed this line with this one.

define command {
    command_name    notify-by-email
    command_line    /bin/echo -e \*\*\*\*\* Nagios
\*\*\*\*\*\\n\\nTipo de Notif
icación: $NOTIFICATIONTYPE$\\n\\nServicio: $SERVICEDESC$\\nHost:
$HOSTALIAS$\\nI
P: $HOSTADDRESS$\\nEstado: $SERVICESTATE$\\n\\nFecha/Hora:
$DATETIME$\\n\\nInfor
mación Adicional:\\n\\n$OUTPUT$ | /usr/bin/mail -s "`echo -e [Nagios]
$NOTIFICAT
IONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ -`"
$CONTACTEMAIL$
}

As you could see the labels are in Spanish, sorry.

> # 'notify-by-email' command definition
> define command{
> 	command_name	notify-by-email
> 	command_line	/usr/bin/printf "%b" "***** Nagios 1.0
> *****\n\notification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
> $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional
> Info:\n\n$OUTPUT$"
> |  -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is
> $SERVICESTATE$ **" $CONTACTEMAIL$
> 	}


=====
.. //\/ e t . \/ i c i o u s ..


		
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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