Page 2 of 2

Re: Building up slave server as part of failover

Posted: Thu Jul 03, 2014 1:18 am
by kgopiramesh
Hi,

Sorry for the confusion, Here I am trying to achieve the copy of the services of one host to another host on the master server.

say for example we have nagios server nagios.xi.com monitoring redhat1.oracle.com and redhat2.oracle.com, we have 150 trap services for redhat1.oracle.com & redhat2.oracle.com, Instead of configuring 150 trap services manually on the both nodes, I want to add on one host and replicate the same for the another host.

I didn't find a way to do this in current nagios, and couldn't find any related documentation. Please let me know if this feature is already there and documentation is available.

Re: Building up slave server as part of failover

Posted: Thu Jul 03, 2014 2:05 pm
by abrist
They could share the same nagiosql database. Offload nagiosql and configure config.inc.php (as per the offloading doc) on both servers to use the same nagiosql db.

Re: Building up slave server as part of failover

Posted: Fri Jul 04, 2014 2:19 am
by kgopiramesh
Hi,

Let me expalin in more clarifying way.

We don't want to replicate the services from master to slave.

It is a different question to my post, let me know if you want to me create a new post for this question.

We are having one nagios server example nagios.master.com and monitoring 8 hosts. Each host is having 150 trap services which are same , Now I have to create 1200 services manually on the same nagios master server so is there any way creating 150 services for 8 hosts at a time by running the wizard or something.

Re: Building up slave server as part of failover

Posted: Mon Jul 07, 2014 4:02 pm
by abrist
Yes. Create a generic version of those checks and apply a hostgroup to them. Now any host that gets added to the hostgroup will inherit those checks. This can be done with templates and servicegroups as well.