<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.networksecuritytoolkit.org/nstwiki/index.php?action=history&amp;feed=atom&amp;title=Nagios%2FFruity</id>
	<title>Nagios/Fruity - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.networksecuritytoolkit.org/nstwiki/index.php?action=history&amp;feed=atom&amp;title=Nagios%2FFruity"/>
	<link rel="alternate" type="text/html" href="https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=Nagios/Fruity&amp;action=history"/>
	<updated>2026-05-21T02:01:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=Nagios/Fruity&amp;diff=37&amp;oldid=prev</id>
		<title>Paul Blankenbaker: Added backup/restore notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=Nagios/Fruity&amp;diff=37&amp;oldid=prev"/>
		<updated>2007-02-27T11:19:05Z</updated>

		<summary type="html">&lt;p&gt;Added backup/restore notes&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Nagios/Fruity =&lt;br /&gt;
&lt;br /&gt;
This page contains notes on using and administering &amp;#039;&amp;#039;&amp;#039;Nagios&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Fruity&amp;#039;&amp;#039;&amp;#039; within the &amp;#039;&amp;#039;&amp;#039;NST&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Related Links ==&lt;br /&gt;
&lt;br /&gt;
* Nagios (http://www.nagios.org/)&lt;br /&gt;
* Fruity (http://fruity.sourceforge.net/)&lt;br /&gt;
&lt;br /&gt;
== Backup/Restore ==&lt;br /&gt;
&lt;br /&gt;
There are several possible ways to backup/restore the &amp;#039;&amp;#039;&amp;#039;Nagios&amp;#039;&amp;#039;&amp;#039; configuration. Being able to do so is useful for the following reasons:&lt;br /&gt;
&lt;br /&gt;
* If you mis-configure your Nagios system, you can restore from your last good backup.&lt;br /&gt;
* You can create an initial backup to serve as a base template when setting up new systems.&lt;br /&gt;
* It makes using a Live CD much easier (save your configuration before stopping the system, then reload it the next time you boot).&lt;br /&gt;
&lt;br /&gt;
=== Backup/Restore via Fruity ===&lt;br /&gt;
&lt;br /&gt;
If you used the &amp;#039;&amp;#039;&amp;#039;Fruity&amp;#039;&amp;#039;&amp;#039; interface to manage your &amp;#039;&amp;#039;&amp;#039;Nagios&amp;#039;&amp;#039;&amp;#039; configuration, you should be able to do the following: &lt;br /&gt;
 &lt;br /&gt;
; Backup : Go to the &amp;#039;&amp;#039;&amp;#039;NST&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;WUI&amp;#039;&amp;#039;&amp;#039; page for &amp;#039;&amp;#039;&amp;#039;Nagios&amp;#039;&amp;#039;&amp;#039; and export the &amp;#039;&amp;#039;&amp;#039;Fruity&amp;#039;&amp;#039;&amp;#039; database.&lt;br /&gt;
 &lt;br /&gt;
; Restore : Use the following steps to restore the configuration:&lt;br /&gt;
# Go to the &amp;#039;&amp;#039;&amp;#039;NST&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;WUI&amp;#039;&amp;#039;&amp;#039; page for &amp;#039;&amp;#039;&amp;#039;Nagios&amp;#039;&amp;#039;&amp;#039; and import the &amp;#039;&amp;#039;&amp;#039;Fruity&amp;#039;&amp;#039;&amp;#039; database (the &amp;#039;&amp;#039;&amp;#039;MySQL&amp;#039;&amp;#039;&amp;#039; server must be started prior to doing this).&lt;br /&gt;
# Use &amp;#039;&amp;#039;&amp;#039;Fruity&amp;#039;&amp;#039;&amp;#039; interface to export the configuration from the &amp;#039;&amp;#039;&amp;#039;Fruity&amp;#039;&amp;#039;&amp;#039; database to &amp;#039;&amp;#039;&amp;#039;Nagios&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# Start the &amp;#039;&amp;#039;&amp;#039;nagios&amp;#039;&amp;#039;&amp;#039; service.&lt;br /&gt;
&lt;br /&gt;
=== Backup/Restore Without Fruity ===&lt;br /&gt;
&lt;br /&gt;
If you did not use Fruity to configure Nagios, try the following to backup/restore your Nagios configuration (this has not been verified):&lt;br /&gt;
&lt;br /&gt;
=== Local Backup ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tar czf - -C /etc nagios &amp;gt;| nagios.tar.gz &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remote Backup ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh root@IP_ADDRESS tar czf - -C /etc nagios &amp;gt;| nagios.tar.gz &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Restore ====&lt;br /&gt;
&lt;br /&gt;
* Go to the &amp;#039;&amp;#039;&amp;#039;NST&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;WUI&amp;#039;&amp;#039;&amp;#039; page for &amp;#039;&amp;#039;&amp;#039;Nagios&amp;#039;&amp;#039;&amp;#039; and setup Nagios with the minimal configuration.&lt;br /&gt;
 &lt;br /&gt;
* For a local restore, replace the minimal &amp;#039;&amp;#039;&amp;#039;Nagios&amp;#039;&amp;#039;&amp;#039; configuration with the backup copy using the following command: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat nagios.tar.gz | tar xzf - -C /etc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
* For a remote restore, replace the minimal &amp;#039;&amp;#039;&amp;#039;Nagios&amp;#039;&amp;#039;&amp;#039; configuration with the backup copy using the following command: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat nagios.tar.gz | ssh root@IP_ADDRESS tar xzf - -C /etc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
* Finally, start the &amp;#039;&amp;#039;&amp;#039;nagios&amp;#039;&amp;#039;&amp;#039; service via:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service nagios start &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
NOTE: Replace &amp;quot;IP_ADDRESS&amp;quot; with the &amp;#039;&amp;#039;&amp;#039;IP&amp;#039;&amp;#039;&amp;#039; address of your &amp;#039;&amp;#039;&amp;#039;NST&amp;#039;&amp;#039;&amp;#039; probe.&lt;/div&gt;</summary>
		<author><name>Paul Blankenbaker</name></author>
	</entry>
</feed>