quoting-problem in printf

Bishop, Dean dean.bishop at tcdsb.org
Fri Aug 16 13:20:25 CEST 2002


Good morning,

	Normally the escape character is "\".  If that doesn't work replace
"usr/bin/printf" with "/bin/echo -e" in your command lines of the hosts.cfg
file.

regards,
dean

-----Original Message-----
From: Zietzling, Uwe [mailto:uwe.zietzling at baw.de]
Sent: Friday, August 16, 2002 4:58 AM
To: 'nagios-users at lists.sourceforge.net'
Subject: [Nagios-users] quoting-problem in printf


Hello!

I have got a "%" sign in my plugin-output. When Nagios executes the
/usr/bin/printf command-line in 'notify-by-email' (which is locatet in
commands.cfg), then Nagios takes "%" as a quoting-sign and abortes printing
the text behind.
f.e.
the mail-Output is:
WARNING  -total: 800 MB -used:  672MB (84

but it should be:
WARNING  -total: 800 MB -used:  672MB (84%) -free:  128 MB

I was trying to supress the special meaning of % by quoting it in my plugin
with ' and " , but nothing helped.
The only thing that solves that problem, is to quote it with another %- sign
in front:  ....(84%%)..  -then is the mail-Output ok but i have this double
%-Sign in Nagios-Output.

Knows someone how to solve this problem?
thanks in advance
Uwe 



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390




More information about the Users mailing list