[op5-users] importing thoughts
Michael Hobbs
mike at mikehobbs.co.uk
Sun Aug 23 23:31:15 CEST 2009
Hi all
As you can see from a few other posts I've been having issues with Merlin
importing properly
The system Nagios will be monitoring will have hosts being added/removed
often (I'm talking 10's added or removed each day) so it's important that
Merlin can keep up with the changes. Unfortunately at the moment Merlin is
unable to do this and I'm scratching me head as to why.
With this in mind I thought I would look at the basics and see if I'm doing
something fundamentally wrong
When we add or remove a new host we restart nagios via a script, this script
just restarts nagios and then calls Merlins import.php file
> <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>
What I'm wondering is should we be stopping/starting Merlin during this
process as well instead of just doing the import?
And if so when should we restart merlin
should I do it in this order :-
/etc/init.d/merlind stop
/etc/init.d/nagios reload
/etc/init.d/nagios start
Or this one
/etc/init.d/nagios reload
/etc/init.d/nagios restart
Or maybe there is another way
To be honest guys anything I can do to improve merlins' import would be
great otherwise I'll be under pressure to go back to using NDOUtils and put
Merlin/Ninja on the backburner
Cheers
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.op5.com/pipermail/op5-users/attachments/20090823/5233e4fa/attachment.html
More information about the op5-users
mailing list