Changes

Jump to navigation Jump to search
1,117 bytes added ,  13:07, 4 December 2007
Backup and Restore chapter added
Line 42: Line 42:  
| nagios-icons-nx-1.0.0.tar.gz  || 1.0.0 || 04 Nov 2007 || Additional useful icons, inlucding the SME logo
 
| nagios-icons-nx-1.0.0.tar.gz  || 1.0.0 || 04 Nov 2007 || Additional useful icons, inlucding the SME logo
 
|}
 
|}
 +
    
=== Download ===
 
=== Download ===
Line 181: Line 182:     
==== Hints ====
 
==== Hints ====
* place all your configuration files in /etc/nagios/, the Logfile /var/log/nagios/nagios.log, the Log-Archives in /var/log/nagios/archives/ and the status file in /var/log/nagios/status.dat. These are the default settings. Leave them unchanged. The ''smeserver-nagios-backup'' RPM requires these settings to work properly.
+
* Place all your configuration files in /etc/nagios/, the Logfile /var/log/nagios/nagios.log, the Log-Archives in /var/log/nagios/archives/ and the status file in /var/log/nagios/status.dat. These are the default settings. Leave them unchanged. The ''smeserver-nagios-backup'' RPM requires these settings to work properly.
 
* Set the following in /etc/nagios/cgi.cfg to grant full accces to the user admin:
 
* Set the following in /etc/nagios/cgi.cfg to grant full accces to the user admin:
 
  use_authentication=1
 
  use_authentication=1
Line 192: Line 193:  
  authorized_for_all_service_commands=admin
 
  authorized_for_all_service_commands=admin
   −
* it is a good idea to make your Nagios server as independent as possible from the infrastructure it monitors, i.e., use a dedicated hardware, network, mail- and pager system, firewall and internet connection if possible.  
+
* It is a good idea to make your Nagios server as independent as possible from the infrastructure it monitors, i.e., use a dedicated hardware, network, mail- and pager system, firewall and internet connection if possible.  
* consider to setup a second Nagios somewhere on your network, which monitors your central Nagios server. Then you need to install the NRPE also on the central server.
+
* Consider to setup a second Nagios somewhere on your network, which monitors your central Nagios server. Then you need to install the NRPE also on the central server.  
 +
 
 +
==== Backup and Restore ====
 +
With the the smeserver-nagios-backup RPM installed all [[Nagios]] and [[Nagios Grapher]] configuration data, status data and archives are included in the SME Server standard backup. In the pre-backup event those data are copied to the <tt>/home/e-smith/db/nagios/</tt> directory. As the nagios service is stopped during copying it is recommended to configure Nagios to save its scheduling info (next check time) for hosts and services in a file and use this at startup. Otherwise Nagios would re-schedule all checks spreaded over the timeframe defined by <tt>max_service_check_spread</tt> and <tt>max_host_check_spread</tt> (default 30 min). As a result you would have gaps  in checking and visible gaps in the graphs of [[Nagios Grapher]].
 +
 
 +
in <tt>/etc/nagios/nagios.conf</tt> add/edit:
 +
retain_state_information=1
 +
state_retention_file=/var/log/nagios/retention.dat
 +
use_retained_program_state=1
 +
use_retained_scheduling_info=1
 +
 +
When doing a restore, the data from <tt>/home/e-smith/db/nagios/</tt> are copied back to their original locations in the bootstrap-console-save event.
 +
 
    
=== Uninstall ===
 
=== Uninstall ===
Line 205: Line 218:  
   perl-Nagios-Plugin \
 
   perl-Nagios-Plugin \
 
   smeserver-nagios-plugins-mysql
 
   smeserver-nagios-plugins-mysql
 +
    
=== References ===
 
=== References ===
501

edits

Navigation menu