Skip Menu |

This queue is for tickets about the Nagios-Object CPAN distribution.

Report information
The Basics
Id: 17407
Status: resolved
Priority: 0/
Queue: Nagios-Object

People
Owner: tobeya [...] cpan.org
Requestors: christian.felsing [...] sbroker.de
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.08
Fixed in: 0.10



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
Nagios::StatusLog does not work for Nagios v2.0. I'll probably put an exception & documentation in the next release of Nagios::Object to indicate this fact. I don't have a Nagios v2 installation and probably won't end up working with one for quite some time. If anybody else wants to write a status log parser, I'd be happy to either include it directly, or remove StatusLog.pm from Nagios::Object in favor of an external CPAN module. I'll leave this bug open for now in case anybody offers to write a v2 parser.
The next version I release will include support for v2 logs and a number of bugfixes. A test version is attached. It has two other bugs pending that should be resolved soon so I can release it, probably as 0.10. -Al
Download Nagios-Object-0.09.tar.gz
application/x-gzip 64.6k

Message body not shown because it is not plain text.