Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4391Themes and Skins12Add-ons741Documentation283Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Other Tutorials And HOWTOs How To Install Nagios on Ubuntu
0.0 (0)
65.7K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Claudio Kuenzler (2)
See More
Newest Contributors
Nitatemic (1)cjdepaul (1)ixs (1)messefreeze (2)apham (1)
See More

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > Oskar Levin
OL

Oskar Levin

@dataviruset

User Stats

Member Since: February 5, 2014

Favorites0

Views

Projects0

No Projects Found
Check interfaces for errors

No SNMPv3 support

Good, good, but I had to modify it to get SNMPv3 access. These are the modified code parts: usage_and_exit() unless GetOptions("h|help" => $opt_h, "C|community=s" => $snmp_community, "w|warning=s" => $warn_usage, "c|critical=s" => $crit_usage, "p|port=i" => $port, "i|interface=s" => $iface_descr, "H|hostname=s" => $host_address, "a|authproto=s" => $snmp_authproto, "u|username=s" => $snmp_username, "x|password=s" => $snmp_password, "X|privpasswd=s" => $snmp_privpasswd, "P|privproto=s" => $snmp_privproto, "v|version=s" => $snmp_version ); elsif ( $snmp_version == /3/ ) { ($session, $error) = Net::SNMP->session( -hostname => $host_address, -version => $snmp_version, -username => $snmp_username, -port => $port, -authpassword => $snmp_password, -authprotocol => $snmp_authproto, -privpassword => $snmp_privpasswd, -privprotocol => $snmp_privproto, ); if ( !defined($session) ) { print("UNKNOWN: $error"); exit STATUS_UNKNOWN; } } print "Check_all_interfaces.pl version " . VERSION . "n(c) 2008 M. Lievaartn"; print "Usage: $0 -H host [ options ]nn"; print "Options:n"; print " -H --host STRING or IPADDRESSn"; print " Check interface on the indicated host.n"; print " -C --community STRING n"; print " SNMP Community.n"; print " -i --interface STRINGn"; print " Regexp matching interfaces to examine, f.i. '^FastEthernet' or '^(Eth|Dot.*0$)'.n"; print " -w --warning INTEGERn"; print " number of necessary errors since last check to result in warning status (default: 1)n"; print " -c --critical INTEGERn"; print " number of necessary errors since last check to result in critical status (default: 5)n"; print " -v --version [1, 2 or 3]n"; print " SNMP version to use, use '2' for version 2c. (default: version 2c).n"; print " -a --authproto STRINGn"; print " SNMP auth protocol to use for SNMPv3. (default: md5).n"; print " -P --privproto STRINGn"; print " SNMP private protocol to use for SNMPv3. (default: des).n"; print " -X --privpasswd STRINGn"; print " SNMP private password to use for SNMPv3.n"; print " -u --username STRINGn"; print " SNMP username to use for SNMPv3.n"; print " -x --password STRINGn"; print " SNMP password to use for SNMPv3.n";

Reviewed 12 years ago

No Favorites Found

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile