From d44962114f7820522c9f930acbd22f35305047aa Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Tue, 13 Nov 2007 12:55:06 +0000 Subject: [PATCH] bad lib file and functions.. git-svn-id: http://svn.centreon.com/trunk/plugins@3469 6bcd3966-0018-0410-8128-fd23d134de7e --- centreon-plugins/src/check_centreon_nt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/centreon-plugins/src/check_centreon_nt b/centreon-plugins/src/check_centreon_nt index 1f569dbf3..fc859ab4c 100644 --- a/centreon-plugins/src/check_centreon_nt +++ b/centreon-plugins/src/check_centreon_nt @@ -30,12 +30,12 @@ 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 create_rrd update_rrd &is_valid_serviceid); - use vars qw($VERSION %oreon); - %oreon = get_parameters(); +if (eval "require centreon" ) { + use centreon qw(get_parameters create_rrd update_rrd &is_valid_serviceid); + 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'}; } @@ -46,7 +46,7 @@ use vars qw($opt_H $opt_p $opt_s $opt_v $opt_V $opt_h $opt_w $opt_c $opt_S $opt_ ## ## Plugin var init ## -my $pathtolibexecnt = $oreon{GLOBAL}{NAGIOS_LIBEXEC}."check_nt"; +my $pathtolibexecnt = $centreon{GLOBAL}{NAGIOS_LIBEXEC}."check_nt"; my($op_v, $op_d, $op_s, $op_t, $op_l, $port, @values, @test, @test2, @test3, @test4, @test5, $warning, $critical, @w, @c, $uptime); my($warning2, $critical2, $warning3, $critical3, $warning4, $critical4, @output);