Mail notification differences

Jose Orlando Muñoz Bravo (HP) jmunoz at comcel.com.co
Wed Apr 9 21:34:51 CEST 2003


Thanks Tim,

It´s work fine, now have a complete messages.

jomb.

-----Mensaje original-----
De: VanZee, Timothy [mailto:T-VANZEE at govst.edu]
Enviado el: miércoles, 09 de abril de 2003 12:58
Para: nagios-users at lists.sourceforge.net
Asunto: RE: [Nagios-users] Mail notification differences


That's because the '\' character is an escape character.

Try this:

define command{
        command_name    notify-by-email
        command_line    /bin/echo -e '***** OpMon
*****\n\nNotificationType: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | /bin/mail -s "** OpMon Alert - $NOTIFICATIONTYPE$ -$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
         }

Tim Van Zee
ITS Network Specialist
Governors State University


-----Original Message-----
From: Jose Orlando Muñoz Bravo (HP) [mailto:jmunoz at comcel.com.co] 
Sent: Wednesday, April 09, 2003 12:06 PM
To: Nagios Users List (E-mail)
Subject: [Nagios-users] Mail notification differences

Hi all,

I´m using checks for Windows and UNIX plataforms, I want to underestand why the notifications are different in the "additional info"  informatión
the informatión in the misccommands.cfg file is " ....... Additional Info:\n\n$OUTPUT$"  but the mail received change for each plataform here are the 2 examples.

Notification from Windows2K servers
==========================================
Notification Type: PROBLEM

Service: Drive C:
Host: w2krecover
Address: 192.168.170.68
State: CRITICAL

Date/Time: Wed Apr 9 02:32:46 COT 2003

Additional Info:

C:
==========================================

Notification from Unix servers
==========================================

Notification Type: PROBLEM

Service: /Sap_arch
Host: Atenea
Address: 192.168.170.82
State: CRITICAL

Date/Time: Wed Apr 9 09:10:47 COT 2003

Additional Info:

Only 2.78G (8%) free on /Sap_arch
=========================================

I like to receive the values in the W2k servers like i can see in the web interface.


Thanks for your answers

Jomb.



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.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


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.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