[Nagiosplug-devel] printf error in check_log plugin
Ric Anderson
ric at Opus1.COM
Tue Aug 19 15:59:34 CEST 2008
check_log includes utils.sh, which defines
ECHO=/usr/bin/printf
if /usr/bin/printf exists. However, if the log file contains
a % in its data, e.g.
Aug 18 22:11:08 gw 271: 000269: Aug 18 22:11:07.451 MST: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2,
changed state to up
and check_log is running with -q UPDOWN, then when check_log
tries to display the matching line, it dies with
(8) < Aug 18 22:11:08 gw 271: 000269: Aug 18 22:11:07.451 MST: /usr/bin/printf: %LI: invalid conversion specification
Maybe check_log needs to over ride the definition of ECHO, or use "echo" in place
of $ECHO?
Cheers,
Ric Anderson (ric at opus1.com)
More information about the Devel
mailing list