[Nagiosplug-devel] Check_ifstatus patch

Cook, Garry GWCOOK at mactec.com
Wed Jun 16 07:29:08 CEST 2004


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 =
sprintf("up:%d,down:%d,dormant:%d,excluded:%d,unused:%d",$ifup,$ifdown,$
ifdormant,$ifexclude,$ifunused);
  print ("$state: $answer |$perfdata\n");
  exit $ERRORS{$state};
  
--- 207,213 ----
                        $ifexclude,
                        $ifunused);
     }
! my $perfdata =
sprintf("up=%d,down=%d,dormant=%d,excluded=%d,unused=%d",$ifup,$ifdown,$
ifdormant,$ifexclude,$ifunused);
  print ("$state: $answer |$perfdata\n");
  exit $ERRORS{$state};
  

Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/
303.308.6228 (Office) - 720.220.1862 (Mobile) 




More information about the Devel mailing list