<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 12pt Tahoma">
<DIV>Look closely.  I'm pretty sure they are in the docs, but in case you can't find it...</DIV>
<DIV>$DATETIME$ now = $SHORTDATETIME$ (or others, consult docs)</DIV>
<DIV>$OUTPUT$ now = $SERVICEOUTPUT$<BR><BR>>>> Deedra Waters <watersd@onid.oregonstate.edu> 4/5/2005 3:03 PM >>><BR></DIV>
<DIV style="COLOR: #000000">I understand the macros have changed, but unless I've been reading the<BR>docs wrong, all of the ones in my notify-by-email command are the same,<BR>which is why I'm not understanding what the problem is.  Since this is<BR>the only place where it's happening though, i suspect it's something<BR>about that command that's the issue.<BR><BR>On Tue, 5 Apr 2005, Arno Lehmann wrote:<BR><BR>> Date: Tue, 05 Apr 2005 20:51:45 +0200<BR>> From: Arno Lehmann <al@its-lehmann.de><BR>> To: Deedra Waters <watersd@onid.oregonstate.edu><BR>> Cc: nagios-users@lists.sourceforge.net<BR>> Subject: Re: [Nagios-users] small problems with upgrading from nagios 1x<BR>>     to nagios 2x (fwd)<BR>><BR>> Hi.<BR>><BR>> Deedra Waters wrote:<BR>><BR>> > Hi all,<BR>> ><BR>> > I'm having some trouble trying to find docs/info on this particular<BR>> > issue.<BR>> ><BR>> > I've upgraded from nagios 1x to 2x, and everything seems to be working<BR>> > fine, accept for this: ( i've replaced hostname and ip with hostname and<BR>> > ip.<BR>> ><BR>> > ***** Nagios  *****<BR>> ><BR>> > Notification Type: PROBLEM<BR>> ><BR>> > Service: NRPE - Root partition check<BR>> > Host:HOSTNAME<BR>> > Address:IP<BR>> > State: CRITICAL<BR>><BR>><BR>> This was discussed on the list in the last few weeks,iirc.<BR>><BR>> The macros have changed. You find the valid names in the documentation<BR>> on your nagios system.<BR>><BR>> Arno<BR>> > Date/Time: $<BR>> ><BR>> > Additional Info:<BR>> ><BR>> > $<BR>> ><BR>> > I'm guessing that something is wrong with my notify-by-email command<BR>> > here, but I'm not seeing what the problem is.<BR>> ><BR>> > define command{<BR>> >         command_name    notify-by-email<BR>> >         command_line    /usr/bin/printf "%b" "***** Nagios<BR>> > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:<BR>> > $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState:<BR>> > $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$"<BR>> > | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$:$SERVICEDESC$<BR>> > is $SERVICESTATE$ **" $CONTACTEMAIL$<BR>> >         }<BR>> ><BR>> ><BR>> > Any help would be great appreciated.<BR>> ><BR>> > Thanks!<BR>> ><BR>><BR>><BR><BR>-- <BR>Deedra Waters - Gentoo developer relations, accessibility and<BR>infrastructure -<BR>dmwaters@gentoo.org<BR>Gentoo linux: <A href="http://www.gentoo.org">http://www.gentoo.org</A><BR><BR><BR><BR>-------------------------------------------------------<BR>SF email is sponsored by - The IT Product Guide<BR>Read honest & candid reviews on hundreds of IT Products from real users.<BR>Discover which products truly live up to the hype. Start reading now.<BR><A href="http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click">http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click</A><BR>_______________________________________________<BR>Nagios-users mailing list<BR>Nagios-users@lists.sourceforge.net<BR><A href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <BR>::: Messages without supporting info will risk being sent to /dev/null<BR></DIV></BODY></HTML>