From 74ab679f4f9641e9dcdac5575846cb4b874038e0 Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Fri, 25 Apr 2008 19:33:35 +0000 Subject: [PATCH] remove oreon. remplaced bu centreon git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@4902 6bcd3966-0018-0410-8128-fd23d134de7e --- .../src/check_centreon_snmp_memory | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/centreon-plugins/src/check_centreon_snmp_memory b/centreon-plugins/src/check_centreon_snmp_memory index d05f0b8be..c6e4e5b3e 100644 --- a/centreon-plugins/src/check_centreon_snmp_memory +++ b/centreon-plugins/src/check_centreon_snmp_memory @@ -31,19 +31,19 @@ use lib "$FindBin::Bin"; use lib "@NAGIOS_PLUGINS@"; use utils qw($TIMEOUT %ERRORS &print_revision &support); -if (eval "require oreon" ) { - use oreon qw(get_parameters); - use vars qw($VERSION %oreon); - %oreon=get_parameters(); +if (eval "require centreon" ) { + use centreon qw(get_parameters); + use vars qw($VERSION %centreon); + %centreon=get_parameters(); } else { - print "Unable to load oreon perl module\n"; + print "Unable to load centreon perl module\n"; exit $ERRORS{'UNKNOWN'}; } use vars qw($PROGNAME); use Getopt::Long; use vars qw($opt_V $opt_h $opt_g $opt_v $opt_C $opt_w $opt_c $opt_s $opt_H @test); -my $pathtorrdbase = $oreon{GLOBAL}{DIR_RRDTOOL}; +my $pathtorrdbase = $centreon{GLOBAL}{DIR_RRDTOOL}; ## ## Plugin var init @@ -110,10 +110,10 @@ my $name = $0; ## Plugin snmp requests -# my $OID_hrStorageDescr = $oreon{MIB2}{HR_STORAGE_DESCR}; -# my $OID_hrStorageAllocationUnits =$oreon{MIB2}{HR_STORAGE_ALLOCATION_UNITS}; -# my $OID_hrStorageSize =$oreon{MIB2}{HR_STORAGE_SIZE}; -# my $OID_hrStorageUsed =$oreon{MIB2}{HR_STORAGE_USED}; +# my $OID_hrStorageDescr = $centreon{MIB2}{HR_STORAGE_DESCR}; +# my $OID_hrStorageAllocationUnits =$centreon{MIB2}{HR_STORAGE_ALLOCATION_UNITS}; +# my $OID_hrStorageSize =$centreon{MIB2}{HR_STORAGE_SIZE}; +# my $OID_hrStorageUsed =$centreon{MIB2}{HR_STORAGE_USED}; # create a SNMP session