Notifications Problems

Danilo Perdomo danilo.perdomo at intercable.com.ve
Tue Dec 12 15:55:45 CET 2006


Hello, the notification command is:

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

Thanks,

Danilo Perdomo
www.intercable.com.ve



Marc Powell escribió:
>   
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Danilo Perdomo
>> Sent: Tuesday, December 12, 2006 7:40 AM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] Notifications Problems
>>
>> Hello. Right now im migrating to version 2.5, but i'm having problems
>> with the notifications. I installed
>> Postfix but for some reason the notifications just didn't get send.
>>     
> Then
>   
>> i tried Mailx but the notifications
>> that i get are like this:
>>
>>
>> ***** Nagios *****
>>
>> Notification Type: PROBLEM
>> Host: enlace_ooooooo
>> State: DOWN
>> Address: 10.10.10.10
>> Info: $
>>
>> Date/Time: $
>>
>> Notice that de Info, Date/time and additional info fields don't show
>>     
> any
>   
>> information
>> I'd appreciate any help with this issue, even better if you help me
>> configure Postfix.
>>     
>
> Make certain that you are using the correct macros. I strongly suspect
> that you are not. Otherwise, please post the notification command in its
> entirety so that we can comment on it. 
>
> http://nagios.sourceforge.net/docs/2_0/macros.html
>
> --
> Marc
>
>
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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