Page 2 of 2

Re: Configure Nagios in HA mode

Posted: Thu Sep 01, 2016 1:33 am
by network2016
Hi

I have verifies all databases

nagios
nagiosxi
nagiosql

through mysql prompt and all entries in different tables are same means the databases are now in sync unlike earlier so that is rectified

Also , now in CCM while writing configuration no ghost entries are there

Problem is
1. first ,that the dashboard and view section automatically add the deleted hosts n services
2. monitoring engine stops automatically and then restarts automatically with ghost entries which is not in CCm or in database
3. and database corrupt after sometime and I need to manually repair it and again same process follows.

Please advice that am I syncing files which are not required to sync and this is the reason Dashboard is behaving weird

thanks

Re: Configure Nagios in HA mode

Posted: Thu Sep 01, 2016 4:18 pm
by tmcdonald
Going to repeat my advice from earlier and suggest reaching out to LinBit for this. Officially speaking we only support the Nagios side of things, so if anything is improperly set up in the HA side we can't really troubleshoot it too terribly much.

Re: Configure Nagios in HA mode

Posted: Fri Sep 02, 2016 4:36 am
by network2016
hi thanks for replying

Just want to ask can you advice on which files or db are need to synced in order to replicate the nagios to another nagios. Just the list of files or db ,if you can please provide.\

Thanks

Re: Configure Nagios in HA mode

Posted: Fri Sep 02, 2016 11:48 am
by tmcdonald
You would need to move the three databases you mentioned, as well as the following directories:

Code: Select all

/usr/local/nagios/
/usr/local/nagiosxi/
/var/lib/mrtg/
Bear in mind this may not be a complete list as this is not something we have documented internally. We recommend contacting LinBit regarding any HA setups.

You can see a talk from a previous conference about HA given by one of our past employees:

https://www.youtube.com/watch?v=KW5Qkl8brcA

But this is not a guarantee of functionality or a method we officially support.

Re: Configure Nagios in HA mode

Posted: Fri Sep 02, 2016 11:52 am
by ssax
This is all I can think of off the top of my head:
- Note: I recommend you check out LinBit as well, I'm not sure if you'll be able to get this to work or not.

Code: Select all

/usr/local/nagios
/usr/local/nagiosmobile
/usr/local/nagiosxi
/usr/local/nagvis
/usr/local/nrdp
/usr/share/snmp/mibs
/etc/snmp
/etc/mrtg
/var/lib/mrtg
/etc/httpd/conf.d/nagios.conf
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/nagiosmobile.conf
/etc/httpd/conf.d/nagiosql.conf
/etc/httpd/conf.d/mrtg.conf
/etc/httpd/conf.d/nagvis.conf
/etc/httpd/conf.d/nrdp.conf
/etc/cron.d/nagiosxi
/etc/cron.d/mrtg