check_nt output problem
Bishop, Dean
dean.bishop at tcdsb.org
Fri Oct 4 14:22:43 CEST 2002
in your misccommands.cfg replace
printf blah blah "message"
with
/bin/echo -e 'message"
note the change in quotes.
later,
dean
-----Original Message-----
From: peter riegersperger [mailto:rick at subnet.at]
Sent: Thursday, October 03, 2002 3:48 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_nt output problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi!
we just recently started using nagios 1.0b6. we use nsclient and
check_nt to monitor our windows servers.
when nsclient returns its message for a free diskspace check, it
looks like:
D:\ - total: 17.08 Gb - used: 15.53 Gb (91%) - free 1.54 Gb (9%)
this works well for the webinterface, but when nagios sends a
notification email, the message gets truncated after "D:", and nagios
complains:
/usr/bin/printf: \ : invalid escape
is there a way around this w/o changing the code?
greetings,
rick
ps: sorry if that has been covered before. a look at the faq and a
search of the list archive didn't bring anything up.
|-
| peter riegersperger <rick at subnet.at>
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|-
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
Comment: public key available at http://home.subnet.at/rick/pgp/
iQA/AwUBPZyQ5CDD9/SWDsvSEQIaVwCgifPm8lMFatg/wWEb4iEOBrGeadUAnj9N
u/YulXI6X8t5lUDsMFJwWXY7
=q3ez
-----END PGP SIGNATURE-----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list