notification message customizing

khaled fawzy khismaeel at ecs.gov.eg
Thu Apr 29 10:39:47 CEST 2004


dear group ;
thanx for your help now nsclient work well and i recieve the notifications .
i begin using nagmin and it is realy wonderful . the problem now is the
message that i recieve has no subject and also the message appear on one
line .
i use the " notify -by-mail"  command which is as follow :
 /usr/bin/printf \"%b\" \"***** Nagios *****\n\nNotification Type:
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:
$HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional
Info:\n\n$OUTPUT$\" | /bin/mail -s \"** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **\" $CONTACTEMAIL$

it seems that "\n" is not interpreted as newline how can i solve this
problem.and how make the message has a meaningful subject.
goodbye and thanx in advance.




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&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