Subject: | Problems parsing Nagios V2.0b5 files |
Test of Nagios::Object yielded into following messages:
# ./config_status_demo.pl -c /x/nagios.cfg -l /var/log/nagios/status.log
Use of uninitialized value in string eq at
/usr/local/share/perl/5.8.4/Nagios/StatusLog.pm line 134.
Use of uninitialized value in string eq at
/usr/local/share/perl/5.8.4/Nagios/StatusLog.pm line 134.
Use of uninitialized value in string eq at
/usr/local/share/perl/5.8.4/Nagios/StatusLog.pm line 134.
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.8.4/Nagios/StatusLog.pmline 166.
unknown tag () in logfile at
/root/x/Nagios-Object-0.08/bin/config_status_demo.pl line 37
Config files are taken from test files included in module and were moved
to /x. File nagios.cfg was modified to reflect move to /x. File
status.log was taken from production environment.
In our production environment I got following results:
srv02370:/x# /root/x/Nagios-Object-0.08/bin/config_status_demo.pl -c
/opt/nagios/etc/nagios.cfg -l /var/log/nagios/status.log
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.8.4/Nagios/Object/Config.pm line 206, <GEN8>
line 193.
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.8.4/Nagios/Object/Config.pm line 207, <GEN8>
line 193.
"" is invalid or module out of date: no such method "set_" at
/root/x/Nagios-Object-0.08/bin/config_status_demo.pl line 34
Nagios version is 2.0b5, system is Debian Linux 3.1 with latest patches.
Nagios-Object was installed with CPAN tool.
Perl version is 5.8.4