email in double

Lionel Verscheure Lionel.Verscheure at loria.fr
Tue May 13 12:15:36 CEST 2003


i check but i have only one instance ... ( and i repeat that i have only 
one mail in the case of services but 2 in case of host down)

I put an "event handler" in the host definition.
And an alert in case of host problem in the contact definition.
is it that the problem ?

Tom DE BLENDE wrote:

> Check whether you haven't got two Nagios instances running.
>
> Lionel Verscheure wrote:
>
>> hi !
>>
>> i receive only one mail when a service fall
>> but when an host fall i have two mail to tell me this information...
>> i don't understand why ...
>> If someone has an idear thanks a lot to tell me.
>>
>> i put the two commands :
>>
>> host notify by mail :
>> /usr/bin/printf "%b" "***** Nagios 1.0 *****\n\nNotification Type: 
>> $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
>> $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail 
>> -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
>>
>> notify by mail:
>> /usr/bin/printf "%b" "***** Nagios 1.0 *****\n\nNotification Type: 
>> $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$ - 
>> $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: 
>> $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional 
>> Info:\n\n$OUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - 
>> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
>>
>> best regards.
>> Lionel Verscheure
>>
>>
>>
>> -------------------------------------------------------
>> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
>> The only event dedicated to issues related to Linux enterprise solutions
>> www.enterpriselinuxforum.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
>
>
>





-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.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