From: Cook, G. <GW...@ma...> - 2004-06-16 14:28:58
|
The check_ifstatus patch seems to output Performance Data incorrectly. I've patched it and included the patch below. For future reference, please let me know if I should submit this somewhere on sf.net, or if sending to the list is ok. Thanks. *** 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)=20 |