[Nagios-devel] Invalid conversion in sprintf: "%\012" at
Posted: Fri Nov 03, 2006 6:42 am
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
lately i get the unknonw state "Invalid conversion in sprintf: "%\012"
at /usr/bin/p1.pl line 79,"
on 2 hosts when running my check_disk_snmp.pl plugin which can be found
here: http://members.financial.com/~cmr/check_disk_snmp.pl
It runs fine on round about 40 hosts. For the failing hosts i get the
folowing output when running the plugin manually:
/usr/local/nagios/libexec.financial/check_disk_snmp.pl -m host1 -v2c -u
xxxx -c 80 -d /
"CRITICAL: / 65.89G of 69.41G used. 94.92% > 80%"
/usr/local/nagios/libexec.financial/check_disk_snmp.pl -m host2 -v2c -u
xxxx -c 80 -d /
"CRITICAL: / 65.27G of 69.41G used. 94.04% > 80%"
So it seems there is some problem with exit code 2. I use nagios 2.5
rpm-packaged by Dag Wieers with the following spec-file
http://dag.wieers.com/packages/nagios/nagios.spec
Anyone can give me some hints how to fix this?
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFS1VbsLjW0HYht7URAg5EAJ9ksXmLSRQz+JGoPlm1U1lSryoVewCgjynK
vYeU2ca1Md7XmjeZZWH6nG8=
=JnQG
-----END PGP SIGNATURE-----
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Hash: SHA1
Hi
lately i get the unknonw state "Invalid conversion in sprintf: "%\012"
at /usr/bin/p1.pl line 79,"
on 2 hosts when running my check_disk_snmp.pl plugin which can be found
here: http://members.financial.com/~cmr/check_disk_snmp.pl
It runs fine on round about 40 hosts. For the failing hosts i get the
folowing output when running the plugin manually:
/usr/local/nagios/libexec.financial/check_disk_snmp.pl -m host1 -v2c -u
xxxx -c 80 -d /
"CRITICAL: / 65.89G of 69.41G used. 94.92% > 80%"
/usr/local/nagios/libexec.financial/check_disk_snmp.pl -m host2 -v2c -u
xxxx -c 80 -d /
"CRITICAL: / 65.27G of 69.41G used. 94.04% > 80%"
So it seems there is some problem with exit code 2. I use nagios 2.5
rpm-packaged by Dag Wieers with the following spec-file
http://dag.wieers.com/packages/nagios/nagios.spec
Anyone can give me some hints how to fix this?
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFS1VbsLjW0HYht7URAg5EAJ9ksXmLSRQz+JGoPlm1U1lSryoVewCgjynK
vYeU2ca1Md7XmjeZZWH6nG8=
=JnQG
-----END PGP SIGNATURE-----
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]