diff --git a/centreon-plugins/src/check_snmp_mem.pl b/centreon-plugins/src/check_snmp_mem.pl index 4cda8d2f3..076335128 100644 --- a/centreon-plugins/src/check_snmp_mem.pl +++ b/centreon-plugins/src/check_snmp_mem.pl @@ -18,7 +18,7 @@ use Getopt::Long; # Nagios specific -use lib "/usr/local/nagios/libexec"; +use lib "@NAGIOS_PLUGINS@"; use utils qw(%ERRORS $TIMEOUT); #my $TIMEOUT = 15; #my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); diff --git a/centreon-plugins/src/check_snmp_processus_loaded.pl b/centreon-plugins/src/check_snmp_processus_loaded.pl index 280911cd1..dfa50f9d5 100644 --- a/centreon-plugins/src/check_snmp_processus_loaded.pl +++ b/centreon-plugins/src/check_snmp_processus_loaded.pl @@ -24,7 +24,7 @@ use strict; use Net::SNMP qw(:snmp); use FindBin; use lib "$FindBin::Bin"; -use lib "/usr/local/nagios/libexec"; +use lib "@NAGIOS_PLUGINS@"; use utils qw($TIMEOUT %ERRORS &print_revision &support); if (eval "require centreon" ) { diff --git a/centreon-plugins/src/check_snmp_script_result.pl b/centreon-plugins/src/check_snmp_script_result.pl index 71dfbd00d..3549c7d0a 100644 --- a/centreon-plugins/src/check_snmp_script_result.pl +++ b/centreon-plugins/src/check_snmp_script_result.pl @@ -24,7 +24,7 @@ use strict; use Net::SNMP qw(:snmp); use FindBin; use lib "$FindBin::Bin"; -use lib "/usr/local/nagios/libexec"; +use lib "@NAGIOS_PLUGINS@"; use utils qw($TIMEOUT %ERRORS &print_revision &support); if (eval "require centreon" ) { diff --git a/centreon-plugins/src/check_snmp_storage.pl b/centreon-plugins/src/check_snmp_storage.pl index dd4a469d5..5c6216c52 100644 --- a/centreon-plugins/src/check_snmp_storage.pl +++ b/centreon-plugins/src/check_snmp_storage.pl @@ -17,7 +17,7 @@ use Getopt::Long; # Nagios specific -use lib "/usr/local/nagios/libexec"; +use lib "@NAGIOS_PLUGINS@"; use utils qw(%ERRORS $TIMEOUT); #my $TIMEOUT = 15; #my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4);