From: Cook, G. <GW...@ma...> - 2004-06-16 14:24:49
|
per...@li... wrote: [snip] > Lots of these in the drop file: >=20 > -------------------------- > LINE: '24' > HOST: 'knx-rtr' > SERV: 'Interfaces' > PERF: 'up:5,down:0,dormant:0,excluded:0,unused:0' > FAIL: 'Metric 0, Can't find end of metric name.' > -------------------------- >=20 > The good news is... This is the only plugin that appears in my drop > file. :-)=20 >=20 > -g >=20 [snip] >> Jon Lyons wrote: >>> Yep, 99% of my checks are with the check_ping plugin, >>> allthough check_ifstatus does reports the performance >>> numbers, but doesn't show up in the graphs... [snip] I've fixed this problem, it was incorrect output coming from the plugin. Here is the patch: *** check_ifstatus.orig 2004-06-16 08:11:54.000000000 -0600 --- check_ifstatus 2004-06-16 08:12:31.000000000 -0600 *************** *** 207,213 **** $ifexclude, $ifunused); } ! my $perfdata =3D sprintf("up:%d,down:%d,dormant:%d,excluded:%d,unused:%d",$ifup,$ifdown,$ ifdormant,$ifexclude,$ifunused); print ("$state: $answer |$perfdata\n"); exit $ERRORS{$state}; =20 --- 207,213 ---- $ifexclude, $ifunused); } ! my $perfdata =3D sprintf("up=3D%d,down=3D%d,dormant=3D%d,excluded=3D%d,unused=3D%d",$ifup,= $ifdown,$ ifdormant,$ifexclude,$ifunused); print ("$state: $answer |$perfdata\n"); exit $ERRORS{$state}; =20 Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) |