Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am in the process of creating a standby Nagios/Centreon server which will take over should our main server fail.

Presently we're replicating the primary centreon server MySQL databases to the standby server using MySQL replication. All of my logins etc on the failover server are identical to the primary server.

The standby server's nagios, ndo2db, centstorage and centcore daemons are disabled on the standby server.

In the event of a failure on the primary we'll (if possible and depending on how catastrophic the failure is) disable the aforementioned daemons and start them on the backup server.

My only stumbling block at the moment is

  1. How to rebuild the graph RRD's? Is it simply a case of going to:

    Administration -> Options -> CentStorage -> Manage

    Then selecting all of the hosts and services then doing a Rebuild RRD Databases ?

  2. Generating the configuration for Nagios - Is it just a case of exporting the config before starting Nagios?

  3. Are there any other files or data that I should be concerned with copying across to the backup server periodically?

  4. Are there any files on the backup server that should be deleted prior to failing over (lock files, logs etc, nagios.log, retention.dat, service-perfdata, status.dat, status.sav)?

share|improve this question

1 Answer 1

  1. Never tested this, but it sounds correct.
  2. Yes.
  3. Your nagios/libexec (shouldn't change all that much) and nagios/etc (at least make a tar ball of this - though best to store these in an SCS) and nagios/var.
  4. Yes, save those var files. Else you'll be seeing a lot of red on the console when the DR machine comes on line.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.