Nagios email notifications, newline not getting interpreted ?

James Whittington jwhittington at excelorant.com
Thu Mar 25 20:08:50 CET 2004



>>Why are the quotes escaped?  I think you're telling it to ignore the
<<quotes
>>as dividing characters, which is why none of the options are being
seen.

Thank you thank you thank you!
That did it,
I don't why the quotes were escaped, it seem to happen after nagmin was
installed and configured.  I know nagmin initially pulls in your current
config files, so maybe it happened during that process.

Anyway thanks for pointing out what should have been obvious to me.

Maybe I can return the favor one day :<).. 
_______________________________________________

James Whittington
Systems Administrator

Excelorant, LLC
A TM Floyd Affiliate Company
1800 St. Julian Place
P.O. Box 8263
Columbia, SC 29202

803.765.1310 | Phone
800.780.1170 | Toll Free
803.765.1431 | Fax

jwhittington at excelorant.com

_______________________________________________


-----Original Message-----
From: Joe Rhett [mailto:jrhett at isite.net] 
Sent: Thursday, March 25, 2004 1:36 PM
To: James Whittington
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios email notifications, newline not
getting interpreted ?

Why are the quotes escaped?  I think you're telling it to ignore the
quotes
as dividing characters, which is why none of the options are being seen.
My configuration and the example configs don't escape the quotes. 

On Thu, Mar 25, 2004 at 12:18:15PM -0500, James wrote:
> Howdy,
> Trying to get rolling with Nagios for the first time. Installed
version
> 1.2 on new FC1 linux server from RPM by Dag.  Configured things to the
> point that nagios would start cleanly.  Installed lastest version of
> nagmin, think I pointed things to the right folder.
> 
> Well here's the thing, Nagios is sending out email notifications but
the
> message come through as one string like this:
>
""*****""Nagios""*****nnNotification""Type:""PROBLEMnHost:""nagnState:""
UPnAddress:""10.1.0.124nInfo:""HTTP""WARNING:""HTTP/1.1""403""Forbiddenn
nDate/Time:""Thu""Mar""25""11:45:57""EST""2004n""
> This is what my host-notify-by-email looks like:
>  /usr/bin/printf \"%b\" \"***** Nagios *****\n\nNotification Type:
> $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
> $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n\" | /bin/mail
> -s \"Host $HOSTSTATE$ alert for $HOSTNAME$!\" $CONTACTEMAIL$ 
> 
> Also the above message try to go to alert at mydomain.com,
for at mydomain.com
> and myaddress at mydomain.com.  It's like quotes and newlines are being
> ignored.
> 
> This appeared to happen after adding nagmin to the mix.  After
comparing
> old configs to new configs I see where one config uses echo and one
uses
> printf.
> 
> Anybody seen anything like this before.
> 
> Thanks.
> -- 
> _______________________________________________
> 
> James Whittington
> Systems Administrator
> 
> Excelorant, LLC
> A TM Floyd Affiliate Company
> 1800 St. Julian Place
> P.O. Box 8263
> Columbia, SC 29202
> 
> 803.765.1310 | Phone
> 800.780.1170 | Toll Free
> 803.765.1431 | Fax
> 
> jwhittington at excelorant.com
> 
> _______________________________________________
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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

-- 
Joe Rhett                                                      Chief
Geek
JRhett at Isite.Net                                      Isite Services,
Inc.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&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