Changes

From SME Server
Jump to navigationJump to search
2,273 bytes removed ,  20:53, 26 October 2013
Line 162: Line 162:  
* 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.
  −
==== Update from Nagios 2 to Nagios 3 ====
  −
Before installing this contrib based on Nagios 3, remove all packages of the previous Nagios 2 installation
  −
service nagios stop
  −
service nagiosgrapher stop
  −
  −
/usr/bin/yum erase \
  −
nagios-plugins-esx3i \
  −
nagios-nrpe \
  −
nagios-plugins-temptrax \
  −
nagios-plugins \
  −
nagios-of-plugins \
  −
nagios-plugins-generic \
  −
nagios  smeserver-nagios-nrpe \
  −
smeserver-nagios \
  −
smeserver-nagios-plugins-mysql \
  −
nagios-plugins-nrpe  \
  −
nagios-plugins-setuid \
  −
smeserver-nagiosgrapher \
  −
smeserver-nagios-backup
  −
Remove all NagiosGrapher rrd data. It is not possible to tranfer the existing NagiosGrapher data to PNP.
  −
rm -rf /var/lib/nagios/*
  −
Backup your Nagios configuration data
  −
cp -a /etc/nagios /etc/nagios.v2
  −
Delete Nagios configuration data
  −
rm -rf /etc/nagios
  −
Move the retention data to the new Nagios 3 loaction
  −
mkdir -p /var/nagios/
  −
mv /var/log/nagios/retention.dat /var/nagios/
  −
  −
'''Now install this contrib following the instructions in chapter 'Installation'
  −
'''
  −
service nagios stop
  −
Delete the default configuration files
  −
cd /etc/nagios
  −
rm -rf commands/default.cfg \
  −
  objects \
  −
  contacts/contacts.cfg \
  −
  hostgroups/default.cfg \
  −
  hosts/localhost.cfg \
  −
  servicegroups/default.cfg \
  −
  services/localhost.cfg \
  −
  templates/default.cfg \
  −
  timeperiods/default.cfg
  −
  −
Copy your saved configuration files to /etc/nagios. When you place them into the pre-defined directories contacts, services, hostgroups, templates, commands, hosts, servicegroups, and timeperiods you don't need to adjust nagios.cfg.
  −
  −
Review your config files and do the following
  −
* add <tt>'''use host-pnp'''</tt> to your generic host definition to add an action url for PNP  to all hosts.
  −
* for all services that output performance data add <tt>'''action_url /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$'''</tt> to your service template definitions
  −
* move all options from <tt>'''hostextinfo'''</tt>  definition (except <tt>'''host_name'''</tt> and <tt>'''action_url'''</tt>) to <tt>'''host'''</tt> definition. Delete the <tt>'''hostextinfo'''</tt>  definition.
  −
* do the same for <tt>'''serviceextinfo'''</tt> definitons
  −
  −
When done check your config
  −
nagios -v /etc/nagios/nagios.cfg
  −
and finally start the service
  −
service nagios start
      
==== Backup and Restore ====
 
==== Backup and Restore ====

Navigation menu