Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: edg [...] greenberg.org
Cc:
AdminCc:

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



Subject: Failure when object includes a
Date: Wed, 11 May 2016 09:58:09 -0400
To: bug-Nagios-Object [...] rt.cpan.org
From: Ed Greenberg <edg [...] greenberg.org>
Object fails to parse a custom object variable: All my host objects look like this: define host { use centos6,mailserver,webserver host_name xxxx alias xxxx address 1.2.3.4 parents yyyy.zzzz _SNMPPASSWORD YTVkxxxxxxxxxxxxcw } When I run parse.pm /etc/nagios/nagios.cfg, I get this result: Invalid attribute: "_SNMPPASSWORD". Could not find Nagios::Host::set__SNMPPASSWORD. Try disabling strict_mode? (see: perldoc Nagios::Object::Config) at /usr/local/share/perl5/Nagios/Object/Config.pm line 278 Nagios::Object::Config::parse('Nagios::Object::Config=HASH(0xf6e518)', '/etc/nagios/objects/nodes.cfg') called at /usr/local/share/perl5/Nagios/Config.pm line 125 Nagios::Config::new('Nagios::Config', 'Filename', '/etc/nagios/nagios.cfg', 'Version', undef) called at ./theirparse.pl line 40 Per https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/customobjectvars.html this is valid Nagios config. -- Ed Greenberg Glens Falls, NY USA