Subject: | Nagios::Object not working on RHEL3.0 |
% uname -a
Linux svrlnxweb028 2.4.21-9.ELsmp #1 SMP Thu Jan 8 17:08:56 EST 2004 i686 i686 i386 GNU/Linux
% /usr/bin/perl -v
This is perl, v5.8.0 built for i386-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)
% perl config_status_demo.pl -c /opt/nagios/etc/nagios.cfg -l /opt/nagios/var/status.log
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.0/Nagios/Object.pm line 536.
Undefined subroutine &main:: called at /usr/lib/perl5/site_perl/5.8.0/Nagios/Object.pm line 536.
Can you help??
I have also change in config_status_demo.pl:
From:
"
my $bench1 = Benchmark->new;
my $cf = Nagios::Config->new( $opt_c );
my $bench2 = Benchmark->new;
my $log = Nagios::StatusLog->new( $opt_l );
"
to
"
my $bench1 = Benchmark->new;
my $cf = Nagios::Config->new( Filename => $opt_c );
my $bench2 = Benchmark->new;
my $log = Nagios::StatusLog->new( Filename => $opt_l );
"