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

Andreas Ericsson ae at op5.se
Thu Aug 13 12:43:22 CEST 2009


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.


More information about the op5-users mailing list