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

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4409Themes and Skins13Add-ons763Graphics 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 Nagios Discovery Tool (NDT) – Version 1.01
0.0 (0)
86.4K
RSS Feed
Newest Listings Updated Listings
Top Contributors
deskwork_itunes142 (4)Marcin Bednarski (3)John Shorey (3)Davide Lemma (3)Chad Columbus (3)
See More
Newest Contributors
pawal (1)matthewducey (1)Linuxfabrik (1)signalgrid (1)Sanna Glue (2)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Mickael
M

Mickael

@[email protected]

User Stats

Member Since: May 30, 2014

Favorites0

Views

Projects0

No Projects Found
check_linux_bonding

Bonding driver changed in linux 3.13

Hi everyone, Thank you for the nice Nagios plugin and the good work. Here is my patch for version 1.3.2 after bonding driver changed in Linux 3.13.0. Tested on Ubuntu (Linux 3.13.0-52-generic #86~precise1-Ubuntu SMP Tue May 5 18:08:21 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux): I installed liblinux-kernelsort-perl to be able to compare kernel versions. sudo apt-get install liblinux-kernelsort-perl Then patch check_linux_bonding. @@ -25,6 +25,7 @@ use strict; use warnings; use POSIX qw(isatty); use Getopt::Long qw(:config no_ignore_case); +use Linux::KernelSort; # Global (package) variables used throughout the code use vars qw( $NAME $VERSION $AUTHOR $CONTACT $E_OK $E_WARNING $E_CRITICAL @@ -255,6 +256,15 @@ sub find_bonding_sysfs { my $masters_file = "$sysdir/bonding_masters"; my @bonds = (); my %bonding = (); + my $device; + my $kernel = new Linux::KernelSort; + my ($kernver, @rest) = split('-', `uname -r`); + my $retcmp = $kernel->compare($kernver,"3.13.0"); + if ( $retcmp >= 0 ) { + $device = "lower"; + } else { + $device = "slave"; + } if (! -f $masters_file) { return {}; @@ -311,8 +321,8 @@ sub find_bonding_sysfs { # get slave status foreach my $slave (@slaves) { - open my $STATE, '

Reviewed 11 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile