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
Plugins4387Themes and Skins11Add-ons734Documentation283Graphics 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
Core Config Manager Nagios XI – Core Config Manager – Host Groups
0.0 (0)
6.1K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Joerg Hoerter (3)
See More
Newest Contributors
Guillaume8723 (1)Salvo (1)SOHA-IT (1)Tsvetomir Tsvetanov (1)Igor Ru (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Bas van der Doorn
Bv

Bas van der Doorn

@basdoorn

User Stats

Member Since: January 2, 2011

Favorites0

Views

Projects0

No Projects Found
check_uptime / check_snmp_uptime

IPv6 patch

Works great with debian 7.7. I needed IPv6 support so created a patch to add support for it using the -6 or --use-ipv6 parameters, attached below. If it is up to standards, please include it in future versions as more and more systems are using IPv6 (only). --- check_uptime.pl 2015-01-17 18:30:29.885907443 +0100 +++ check_uptime_w_ipv6.pl 2015-01-17 18:19:23.209912963 +0100 @@ -213,6 +213,7 @@ my $o_warn= undef; # WARNING alert if system has been up for $o_host, 'p:i' => $o_port, 'port:i' => $o_port, 'C:s' => $o_community, 'community:s' => $o_community, - '2' => $o_version2, 'v2c' => $o_version2, + '2' => $o_version2, 'v2c' => $o_version2, 'l:s' => $o_login, 'login:s' => $o_login, 'x:s' => $o_passwd, 'passwd:s' => $o_passwd, 'X:s' => $o_privpass, 'privpass:s' => $o_privpass, @@ -376,6 +379,7 @@ 'label:s' => $o_label, 'P:s' => $o_prevperf, 'prev_perfdata:s' => $o_prevperf, 'T:s' => $o_type, 'type:s' => $o_type, + '6' => $o_domain, 'use-ipv6' => $o_domain, ); if (defined ($o_help) ) { help(); exit $ERRORS{"UNKNOWN"}}; if (defined($o_version)) { p_version(); exit $ERRORS{"UNKNOWN"}}; @@ -445,11 +449,19 @@ sub create_snmp_session { my ($session,$error); + # Check IPv6 + if (defined ($o_domain)) { + $o_domain="udp/ipv6"; + } else { + $o_domain="udp/ipv4"; + } + if ( defined($o_login) && defined($o_passwd)) { # SNMPv3 login if (!defined ($o_privpass)) { verb("SNMPv3 AuthNoPriv login : $o_login, $o_authproto"); ($session, $error) = Net::SNMP->session( + -domain => $o_domain, -hostname => $o_host, -version => '3', -port => $o_port, @@ -461,6 +473,7 @@ } else { verb("SNMPv3 AuthPriv login : $o_login, $o_authproto, $o_privproto"); ($session, $error) = Net::SNMP->session( + -domain => $o_domain, -hostname => $o_host, -version => '3', -username => $o_login, @@ -477,6 +490,7 @@ # SNMPv2c Login verb("SNMP v2c login"); ($session, $error) = Net::SNMP->session( + -domain => $o_domain, -hostname => $o_host, -version => 2, -community => $o_community, @@ -487,6 +501,7 @@ # SNMPV1 login verb("SNMP v1 login"); ($session, $error) = Net::SNMP->session( + -domain => $o_domain, -hostname => $o_host, -community => $o_community, -port => $o_port,

Reviewed 11 years ago

Check SMART status modified

Line 110 error

The plugin did not process the status for me correctly as it was always selecting the SCSI/MEGARAID line_str to match on due to a comparison error. Line 110 is as follows in the download: if ($interface eq 'megaraid'.",".$number or 'scsi'){ Replace this line by the following 2 lines below: if (!defined($number)) { $number = 0; } if ($interface eq 'megaraid'.",".$number or $interface eq 'scsi'){ Aside from this the plugin works brilliant!

Reviewed 15 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile