Skip Menu |

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

Report information
The Basics
Id: 48100
Status: new
Priority: 0/
Queue: Nagios-Object

People
Owner: Nobody in particular
Requestors: Jiangcheng.Bao [...] deshaw.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: fast_mode not working, and uninitialized value warning
Date: Wed, 22 Jul 2009 17:41:54 -0400
To: <bug-Nagios-Object [...] rt.cpan.org>
From: "Bao, Jiangcheng" <Jiangcheng.Bao [...] deshaw.com>
I am trying to use Nagios::Config to come up with a script to list all checks running on a given host, by reading and parsing the configuration files. I can use Nagios::Object::Config to construct new nagios object, and parse it. But for the nagios master node, it has reference to all checks running on all other leaf nodes, therefore it takes very long time (> 7minutes) to parse all configuration files. I tried to use Nagios::Config->fast_mode, but as soon as I set fast_mode to 1, I got no results from the parsing. Also in Nagios/Object/Config.pm around line 743 and 751, we should probably check if $h->host_name being * or uninitialized, the current code will consider it not match if it is *, but actually * means every host should match, and uninitialized value will cause warning. I am currently using the following: Nagios-Object-0.21.6 perl, v5.8.6 built for i86pc-solaris SunOS 5.10 i86pc Thanks Bao