quoting-problem in printf

Zietzling, Uwe uwe.zietzling at baw.de
Fri Aug 16 10:58:04 CEST 2002


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




More information about the Users mailing list