[op5-users] More merlin questions

Andreas Ericsson ae at op5.se
Wed Jun 10 12:43:56 CEST 2009


Tom Welsh wrote:
> Morning List,
> 
> I now have merlin up and running on one of my machines.
> 
> How do i get it to do redundant master/slave failover?
> 
> Is there a config option like one needs to be "noc" one needs to be "poller"
> 
> My servers are both in the same subnet
> 
> My config goes like this in merlin .conf
> 
> mode = noc;
> ipc_socket = /usr/local/nagios/merlin/ipc.sock;
> 
> # address to listen to. 0.0.0.0 is default
> #address = 0.0.0.0;
> 
> # module-specific configuration options.
> module {
>         # textual log of normal hum-drum events
>         log_file = /usr/local/nagios/merlin/logs/neb.log;
> 
>         # binary log of everything read/written from/to the ipc socket
>         ipc_debug_read = /usr/local/nagios/merlin/logs/neb.ipc.read.bin;
>         ipc_debug_write = /usr/local/nagios/merlin/logs/neb.ipc.write.bin;
> }
> 
> # daemon-specific config options
> daemon {
>         pidfile = /var/run/merlin.pid
> 
>         # same as the "module" section above
>         log_file = /usr/local/nagios/merlin/logs/daemon.log;
>         ipc_debug_read = /usr/local/nagios/merlin/logs/daemon.ipc.read.bin;
>         ipc_debug_write =
> /usr/local/nagios/merlin/logs/daemon.ipc.write.bin;
> 
>         # port to listen to. 15551 is default. This is a daemon
>         # specific config setting, as the module never listens to
>         # the network
>         port = 15551;
>         database {
> 
>                 name = merlin
>                 user = merlin
>                 pass = merlin
>                 host = localhost
>                 type = mysql
>         }
> 
> mode = poller
> peer Nagios2 {
>         address = <IP ADDRESS>
> }
> 

This looks off. First off, you didn't close the "daemon" compound.
If that's indeed how your merlin.conf looks, it should have complained
about not recognizing the 'mode' variable inside that compound, and
then again about there being a still-open compound at EOF.

Second, it seems like you've specified the 'mode' line twice. That's
a bit off.

Is there any chance I could get to log in to your system and sneak a
peak on how it's setup, or can you perhaps send me (off-list) the
config files and logs produced by both daemon and module. That way I
can probably see what's going on a lot better. I'll have to try and
reproduce your setup here and see what you did wrong so I can amend
the documentation or, if you didn't do anything wrong, amend the code.

Thanks for being persistent about this :-)

-- 
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