Problem with notifications
Arno Lehmann
al at its-lehmann.de
Tue Mar 15 18:51:34 CET 2005
Hello,
Davy Gaussen wrote:
> Yes of course, several times. I just don't understand how these
> notifications can exists anymore. Do nagios work with a cache or something ?
Indeed it does.
You should check the manual concerning the retention file, and probably
also the schedule retention.
And, of course, having multiple nagios instances running is *always*
annoying and might lead to all sorts of funny results :-)
Try
nagios stop
sleep 10
killall nagios
sleep 10
killall -9 nagios
sleep 10
nagios start
or something alike - does wonders here ;-)
Arno
>
> ----- Original Message -----
> From: "Arno Lehmann" <al at its-lehmann.de>
> To: "Davy Gaussen" <nagiosadmin at snef.fr>
> Cc: "Vinod Moraes" <vinod.moraes at gmail.com>;
> <nagios-users at lists.sourceforge.net>
> Sent: Tuesday, March 15, 2005 4:57 PM
> Subject: Re: [Nagios-users] Problem with notifications
>
>
>
>>Did you restart nagios or, at least, reload the configuration?
>>
>>Arno
>>
>>Davy Gaussen wrote:
>>
>>
>>>Thanks fot your response, I change 2 macros in my misccommands.cfg file
>
> :
>
>>>$OUTPUT$ --> $SERVICEOUTPUT$ and $HOSTOUTPUT$
>>>$DATETIME$ --> $LONGDATETIME$
>>>
>>>But I still have the same problem.... !
>>>
>>>And another problem : I had recently move all my configuration files
>
> from
>
>>>another server to my new one and I comment some services in the
>
> services.cfg
>
>>>file to stop their check by nagios, but I still receive email
>
> notifications
>
>>>about these services in my mailbox !
>>>
>>>Best regards,
>>>
>>>Davy Gaussen.
>>>
>>>----- Original Message -----
>>>From: "Vinod Moraes" <vinod.moraes at gmail.com>
>>>To: "nagiosadmin" <nagiosadmin at snef.fr>
>>>Cc: <nagios-users at lists.sourceforge.net>
>>>Sent: Tuesday, March 15, 2005 1:57 PM
>>>Subject: Re: [Nagios-users] Problem with notifications
>>>
>>>
>>>
>>>
>>>>Hi
>>>>I had similar problem.
>>>>
>>>>There is a problem with your notify-by-email command definition
>>>>Please try the one below it should work fine.
>>>>
>>>>
>>>>
>>>>
>>>># 'notify-by-email' command definition
>>>>define command{
>>>> command_name notify-by-email
>>>> command_line /usr/bin/printf "%b" "***** Nagios
>>>
>>>*****\n\nNotificatio
>>>
>>>
>>>>n Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
>>>
>>>$HOSTALIAS$\nAddress
>>>
>>>
>>>>: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
>>>
>>>$LONGDATETIME$\n\nAdditiona
>>>
>>>
>>>>l Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$
>
> alert -
>
>>>$HOSTA
>>>
>>>
>>>>LIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
>>>> }
>>>>
>>>>
>>>># 'notify-by-epager' command definition
>>>>define command{
>>>> command_name notify-by-epager
>>>> command_line /usr/bin/printf "%b" "Service:
>>>
>>>$SERVICEDESC$\nHost: $HOS
>>>
>>>
>>>>TNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo:
>>>
>>>$SERVICEOUTPUT$\nDa
>>>
>>>
>>>>te: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$:
>>>
>>>$HOSTALIAS$/$SERVICEDESC
>>>
>>>
>>>>$ is $SERVICESTATE$" $CONTACTPAGER$
>>>> }
>>>>
>>>>
>>>># 'host-notify-by-email' command definition
>>>>define command{
>>>> command_name host-notify-by-email
>>>> command_line /usr/bin/printf "%b" "***** Nagios
>>>
>>>*****\n\nNotificatio
>>>
>>>
>>>>n Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
>
> $HOSTSTATE$\nAddress:
>
>>>$HOST
>>>
>>>
>>>>ADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" |
>>>
>>>/bin/mail -s "Hos
>>>
>>>
>>>>t $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
>>>> }
>>>>
>>>>
>>>># 'host-notify-by-epager' command definition
>>>>define command{
>>>> command_name host-notify-by-epager
>>>> command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is
>>>
>>>$HOSTSTATE$\
>>>
>>>
>>>>nInfo: $HOSTOUTPUT$\nTime: $LONGDATETIME$" | /bin/mail -s
>>>
>>>"$NOTIFICATIONTYPE$ al
>>>
>>>
>>>>ert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$
>>>> }
>>>>
>>>>
>>>>Regards
>>>>Vinod Moraes
>>>>
>>>>
>>>>
>>>>
>>>>On Tue, 15 Mar 2005 13:43:02 +0100, nagiosadmin <nagiosadmin at snef.fr>
>>>
>>>wrote:
>>>
>>>
>>>>>Hi,
>>>>>
>>>>>I have a little problem in my email notifications messages. Here is an
>>>>>example of my email notifications :
>>>>>
>>>>>
>>>>>***** Nagios *****
>>>>>
>>>>>Notification Type: RECOVERY
>>>>>
>>>>>Service: Check SMTP
>>>>>
>>>>>Host: Relay Mail
>>>>>
>>>>>Address: 192.168.126.5
>>>>>
>>>>>State: OK
>>>>>
>>>>>Date/Time: $
>>>>>
>>>>>Additional Info:
>>>>>
>>>>>$
>>>>>
>>>>>
>>>>>
>>>>>I don't have informations about time and additional info, someone know
>>>
>>>why ?
>>>
>>>
>>>>>
>>>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>_______________________________________________
>>>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
>>>
>>
>>--
>>IT-Service Lehmann al at its-lehmann.de
>>Arno Lehmann http://www.its-lehmann.de
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>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
>>
>
>
>
--
IT-Service Lehmann al at its-lehmann.de
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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