Help for this page

Select Code to Download


  1. or download this
       if ($score > $warnrate) {
          print "OK, rf is $score. \|Mbps=$score\n";
    ...
           print "UNKNOWN, rf is $score and something is wrong.\n";
           exit 3
        }
    
  2. or download this
       my $line   = `/usr/bin/snmpwalk -v1 -c public $radio .1.3.6.1.4.1.5
    +454.1.40.2.4.0`;
       my @values = split(' ', $line);
       my $score  = $values[3];
       if ...