Cheshire Cat Computing

Software support and information
It is currently Sat May 25, 2013 1:11 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Apr 23, 2007 9:59 pm 
Offline
User

Joined: Mon Apr 23, 2007 9:23 pm
Posts: 1
Hi

i have problems with loadconfig.pl in Nagios 2.5

(Download: http://www.nagiosexchange.org/Misc.36.0 ... nagext_pi1[p_view]=462)


problem to parse escalation statement
# ./loadconfig.pl -V 2.0
---------------log----------------------
Called set_hostgroup() on an object that doesn't support it. at /usr/lib/perl5/site_perl/5.8.3/Nagios/Object.pm line 854
Nagios::Object::set_hostgroup_name('Nagios::ServiceEscalation=HASH(0x90ac088)','ups') called at /usr/lib/perl5/site_perl/5.8.3/Nagios/Object/Config.pm line 286
Nagios::Object::Config::parse('Nagios::Object::Config=HASH(0x84900ec)','/etc/nagios/services_ups_escalations.cfg') called at /usr/lib/perl5/site_perl/5.8.3/Nagios/Config.pm line 105
Nagios::Config::new('Nagios::Config','Filename','/etc/nagios/nagios.cfg','Version',2.0) called at ./loadconfig.pl line 289
-----------log end------------------------

what version must "Nagios::Object" have ?



Heiko


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 24, 2007 10:33 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Nagios::Object changed its calling parameters between versions, and depending on which version of loadconfig you have you will need the earlier or later version.
Annoyingly, Nagios::Object does not have version numbers defined in the perl module for me to check. And I also forgot to add a version in the comments of loadconfig.

I would suggest you download the latest Nagios perl modules from CPAN, and then get the latest loadconfig from NagiosExchange.org -- these should work together, unless Albert has changed the calling convention *again*....

Steve

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group