Nagios/Fruity

From MediaWiki
Revision as of 06:19, 27 February 2007 by Paul Blankenbaker (talk | contribs) (Added backup/restore notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Nagios/Fruity

This page contains notes on using and administering Nagios and Fruity within the NST.

Related Links

Backup/Restore

There are several possible ways to backup/restore the Nagios configuration. Being able to do so is useful for the following reasons:

  • If you mis-configure your Nagios system, you can restore from your last good backup.
  • You can create an initial backup to serve as a base template when setting up new systems.
  • It makes using a Live CD much easier (save your configuration before stopping the system, then reload it the next time you boot).

Backup/Restore via Fruity

If you used the Fruity interface to manage your Nagios configuration, you should be able to do the following:

Backup
Go to the NST WUI page for Nagios and export the Fruity database.
Restore
Use the following steps to restore the configuration:
  1. Go to the NST WUI page for Nagios and import the Fruity database (the MySQL server must be started prior to doing this).
  2. Use Fruity interface to export the configuration from the Fruity database to Nagios.
  3. Start the nagios service.

Backup/Restore Without Fruity

If you did not use Fruity to configure Nagios, try the following to backup/restore your Nagios configuration (this has not been verified):

Local Backup

tar czf - -C /etc nagios >| nagios.tar.gz 

Remote Backup

ssh root@IP_ADDRESS tar czf - -C /etc nagios >| nagios.tar.gz 

Restore

  • Go to the NST WUI page for Nagios and setup Nagios with the minimal configuration.
  • For a local restore, replace the minimal Nagios configuration with the backup copy using the following command:
cat nagios.tar.gz | tar xzf - -C /etc
  • For a remote restore, replace the minimal Nagios configuration with the backup copy using the following command:
cat nagios.tar.gz | ssh root@IP_ADDRESS tar xzf - -C /etc
  • Finally, start the nagios service via:
service nagios start 

NOTE: Replace "IP_ADDRESS" with the IP address of your NST probe.