1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2025-04-20 06:13:40 +02:00
This commit is contained in:
amc90 2024-09-12 14:04:06 +00:00 committed by GitHub
commit eb88d4f8e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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