mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 10:23:46 +01:00
check_snmp_connectivity conflict resolved
This commit is contained in:
parent
2e2b15ad71
commit
e89ff18430
@ -26,7 +26,6 @@ use Getopt::Std;
|
|||||||
|
|
||||||
$script = "check_snmp_description";
|
$script = "check_snmp_description";
|
||||||
$script_version = "1.0.0";
|
$script_version = "1.0.0";
|
||||||
|
|
||||||
# SNMP options
|
# SNMP options
|
||||||
$version = "2c";
|
$version = "2c";
|
||||||
$timeout = 2;
|
$timeout = 2;
|
||||||
@ -160,13 +159,11 @@ if ( !defined( $s->get_request($oid_description) ) ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print "OK - SNMP is working properly \n\n";
|
||||||
#if ($uptime ) { print "Uptime is good: " . int($uptime) . "\n"; }
|
|
||||||
print "SNMP Connectivity OK... \n";
|
|
||||||
print "Description: $description \n";
|
|
||||||
print "Location: $location \n";
|
|
||||||
print "Name: $name \n";
|
print "Name: $name \n";
|
||||||
print "Uptime: $uptime \n";
|
|
||||||
print "Contact: $contact \n";
|
print "Contact: $contact \n";
|
||||||
|
print "Location: $location \n";
|
||||||
|
print "Description: $description \n";
|
||||||
|
print "Uptime: $uptime \n";
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user