summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-08-28 03:19:45 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-08-28 03:19:45 (GMT)
commit29d5acb7c821c8be23b32be9e01b242efad5b872 (patch)
tree26bd250862fc252c2aa7d9b49dc80b4ac3d6edcc
parentda6aa00a83eba3e60b7083ba75d26050ad5b6f01 (diff)
downloadmonitoring-plugins-29d5acb7c821c8be23b32be9e01b242efad5b872.tar.gz
These plugins assumed the "use lib util.pm;" would be substituted like standard Perl plugins (in plugins-scripts) which isn't the case in contrib. I changed the "use lib" line to use the default path. People using custom paths will have to change it manually.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1771 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--contrib/check_apc_ups.pl2
-rw-r--r--contrib/check_appletalk.pl2
-rw-r--r--contrib/check_linux_raid.pl2
-rw-r--r--contrib/check_snmp_procs.pl2
4 files changed, 4 insertions, 4 deletions
diff --git a/contrib/check_apc_ups.pl b/contrib/check_apc_ups.pl
index 74ae229..2b6990f 100644
--- a/contrib/check_apc_ups.pl
+++ b/contrib/check_apc_ups.pl
@@ -13,7 +13,7 @@ use strict;
13use Getopt::Long; 13use Getopt::Long;
14use vars qw($opt_V $opt_h $opt_H $opt_T $opt_t $opt_R $opt_r 14use vars qw($opt_V $opt_h $opt_H $opt_T $opt_t $opt_R $opt_r
15 $opt_L $opt_l $PROGNAME); 15 $opt_L $opt_l $PROGNAME);
16use lib utils.pm; 16use lib "/usr/local/nagios/libexec";
17use utils qw(%ERRORS &print_revision &support &usage); 17use utils qw(%ERRORS &print_revision &support &usage);
18 18
19sub print_help (); 19sub print_help ();
diff --git a/contrib/check_appletalk.pl b/contrib/check_appletalk.pl
index 0b7754f..6df4c7a 100644
--- a/contrib/check_appletalk.pl
+++ b/contrib/check_appletalk.pl
@@ -22,7 +22,7 @@ BEGIN {
22} 22}
23 23
24use strict; 24use strict;
25use lib utils.pm; 25use lib "/usr/local/nagios/libexec";
26 26
27use utils qw($TIMEOUT %ERRORS &print_revision &support); 27use utils qw($TIMEOUT %ERRORS &print_revision &support);
28use vars qw($PROGNAME); 28use vars qw($PROGNAME);
diff --git a/contrib/check_linux_raid.pl b/contrib/check_linux_raid.pl
index 11bc3cd..da1aff8 100644
--- a/contrib/check_linux_raid.pl
+++ b/contrib/check_linux_raid.pl
@@ -23,7 +23,7 @@
23# WARNING md0 status=[UUU_U], recovery=46.4%, finish=123.0min 23# WARNING md0 status=[UUU_U], recovery=46.4%, finish=123.0min
24 24
25use strict; 25use strict;
26use lib utils.pm; 26use lib "/usr/local/nagios/libexec";
27use utils qw(%ERRORS); 27use utils qw(%ERRORS);
28 28
29# die with an error if we're not on Linux 29# die with an error if we're not on Linux
diff --git a/contrib/check_snmp_procs.pl b/contrib/check_snmp_procs.pl
index 678f6d5..991fc71 100644
--- a/contrib/check_snmp_procs.pl
+++ b/contrib/check_snmp_procs.pl
@@ -35,7 +35,7 @@
35#use strict; 35#use strict;
36use Getopt::Long; 36use Getopt::Long;
37use Net::SNMP qw (oid_lex_sort oid_base_match SNMP_VERSION_1); 37use Net::SNMP qw (oid_lex_sort oid_base_match SNMP_VERSION_1);
38use lib utils.pm; 38use lib "/usr/local/nagios/libexec";
39use utils qw(%ERRORS &print_revision &support &usage); 39use utils qw(%ERRORS &print_revision &support &usage);
40 40
41my $PROGNAME="check_snmp_procs"; 41my $PROGNAME="check_snmp_procs";