mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2025-04-19 22:03:40 +02:00
Merge 8ebed28a47
into ffbdd754d4
This commit is contained in:
commit
eb88d4f8e6
@ -279,7 +279,7 @@ $fname = $opt_i;
|
|||||||
$fname =~ s/:/-/g;
|
$fname =~ s/:/-/g;
|
||||||
$fname =~ s/\//-/g;
|
$fname =~ s/\//-/g;
|
||||||
$fname =~ s/\./-/g;
|
$fname =~ s/\./-/g;
|
||||||
$fname = $tmp . "/check_cisco_qos." . $hostname . "." . $fname . "." . $class;
|
$fname = $tmp . "/check_cisco_qos." . $> . "." . $hostname . "." . $fname . "." . $class;
|
||||||
if ( $opt_d ) {
|
if ( $opt_d ) {
|
||||||
print "Using temporary file: $fname\n";
|
print "Using temporary file: $fname\n";
|
||||||
}
|
}
|
||||||
@ -630,8 +630,8 @@ sub get_config
|
|||||||
if ($qos_config_value == $class_id ) {
|
if ($qos_config_value == $class_id ) {
|
||||||
foreach $ifIndex (sort keys %qos_interfaces) {
|
foreach $ifIndex (sort keys %qos_interfaces) {
|
||||||
if ($ifIndex eq $qos_index[0]) {
|
if ($ifIndex eq $qos_index[0]) {
|
||||||
$tmp = $ifIndex . "." . $ifIndex;
|
my $tmpi = $ifIndex . "." . $ifIndex;
|
||||||
$policyIndex = $qos_config{$tmp};
|
$policyIndex = $qos_config{$tmpi};
|
||||||
$policyName = $qos_policies{$policyIndex};
|
$policyName = $qos_policies{$policyIndex};
|
||||||
$ifPolicy = $qos_interfaces{$ifIndex};
|
$ifPolicy = $qos_interfaces{$ifIndex};
|
||||||
$post_oid = $cbQosCMPostPolicyByte.".".$i;
|
$post_oid = $cbQosCMPostPolicyByte.".".$i;
|
||||||
|
@ -30,8 +30,8 @@ for i in $CLASSES ; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
test $EXIT_CODE == 0 && SUMMARY="OK - $SUMMARY"
|
test $EXIT_CODE = 0 && SUMMARY="OK - $SUMMARY"
|
||||||
test $EXIT_CODE == 1 && SUMMARY="WARNING - $SUMMARY"
|
test $EXIT_CODE = 1 && SUMMARY="WARNING - $SUMMARY"
|
||||||
test $EXIT_CODE == 2 && SUMMARY="CRITICAL - $SUMMARY"
|
test $EXIT_CODE = 2 && SUMMARY="CRITICAL - $SUMMARY"
|
||||||
echo "$SUMMARY | $PERFDATA"
|
echo "$SUMMARY | $PERFDATA"
|
||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
|
Loading…
Reference in New Issue
Block a user