[op5-users] re Merlin not importing all data from objects.conf

Michael Hobbs mike at mikehobbs.co.uk
Tue Aug 18 11:27:12 CEST 2009


Some bad news I'm afraid Andreas

After 4 days of working fine, we are getting the same problems with new
hosts not being imported

Current ones are fine and it picks up service changes but any new hosts
don't get imported

Cant see any errors and if I truncate the database and re-import everything
appears

Mike

-----Original Message-----
From: op5-users-bounces at lists.op5.com
[mailto:op5-users-bounces at lists.op5.com] On Behalf Of Andreas Ericsson
Sent: 13 August 2009 11:43
To: Mailinglist for op5's products
Subject: Re: [op5-users] re Merlin not importing all data from objects.conf

Michael Hobbs wrote:
> HI Andreas
> 
> I've been testing this all morning and can see the same behaviour in the
> newest version of Merlin/Ninja
> 
> Testing involves me creating new hosts, adding and removing service
checks,
> removing hosts
> 
> In each case I've been restarting nagios via a script I use which does
this
> 
> <snip>
> #!/bin/bash 
> /etc/init.d/nagios reload 
> # import to merlin 
> php /usr/local/nagios/etc/addons/merlin/import.php
> --cache=/usr/local/nagios/var/objects.cache
> </snip>
> 
> Output of the script is
> <snip>
> Running configuration check...done. 
> Reloading nagios configuration...done 
> Importing objects to database merlin 
> importing objects from /usr/local/nagios/var/objects.cache
> </snip>
> 
> I've also got this line in /usr/local/nagios/etc/addons/merlin/merlin.conf

> import_program =php /usr/local/nagios/etc/addons/merlin/import.php
> --cache=/usr/local/nagios/var/objects.cache
> 

You shouldn't have the --cache=/usr/local/nagios/var/objects.cache there.
Merlin will append that for itself, along with a bunch of other options.
It's possible that the import program is bugging out because it's getting
the --cache= argument twice (though it shouldn't do that iirc).

> if I restart nagios via /etc/init.d/nagios reload or stop /start it just
> returns
> 
> Running configuration check...done. 
> Reloading nagios configuration...done
> 
> So far Ninja or Merlin hasn't picked up any of the changes.
> 
> Once you have the new version ready I'll upgrade merlin and test again
> 

Thanks. I appreciate it. The bugfix *shouldn't* matter for this though,
but more testing is always good.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
_______________________________________________
op5-users mailing list
op5-users at lists.op5.com
http://lists.op5.com/mailman/listinfo/op5-users


More information about the op5-users mailing list