[op5-users] Merlin init.d not closing

Patrik Båt Patrik.Bat at cypoint.se
Thu Jul 16 08:53:25 CEST 2009


Rewrite the init script and add a reload, where you have a php /path/to/merlin/import.php -cache objects.cache -status status.bla

You get the idea, look in the import.php...

From: op5-users-bounces at lists.op5.com [mailto:op5-users-bounces at lists.op5.com] On Behalf Of Michael Hobbs
Sent: Wednesday, July 15, 2009 12:37 PM
To: op5-users at lists.op5.com
Subject: [op5-users] Merlin init.d not closing

Hi all

Just noticed this problem when I use the merlind init script, everything starts ok but the script just sits there until I ^C it
The output of the restart looks like this:-

<snip>

service merlind restart
Logging to '/usr/local/nagios/etc/addons/merlin/logs/daemon.log'
Signalling process with pid 32438
Logging to '/usr/local/nagios/etc/addons/merlin/logs/daemon.log'
[nagios at nagios:/usr/local/nagios/etc/objects ] # Importing objects to database merlin
importing objects from /usr/local/nagios/var/objects.cache
importing status from /usr/local/nagios/var/status.dat

</snip>
I wanted to wrap the merlin restart into a script I use to reload nagios after a config change but until I get the init.d to start cleanly I can't do this


Also is there any way to refresh merlin without doing a restart? i.e. I would prefer to just get it to re import the objects in a similar way  that /etc/rc.d/init.d/nagios reload works

Cheers

Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.op5.com/pipermail/op5-users/attachments/20090716/94e91ad2/attachment.html 


More information about the op5-users mailing list