Tuesday, 1 June 2010

Nagios backup & upgrade to latest version


INSTALL ZIP & BACKUP Nagios

Install zip
sudo apt-get install zip

Zip Nagios directory
zip -r nagiosbackup.zip /usr/local/nagios/etc/

Create backups directory
mkdir backups

Copy nagios.zip into backups directory
cp nagios.zip /backups

Verify the zip file is in the backups directory


UPGRADE NAGIOS - Download, Extract, Install, Verify, Restart

Download new nagios version
wget http://sourceforge.net/projects/nagios/files/nagios-3.x/nagios-3.2.1/nagios-3.2.1.tar.gz/download


Extract the tar ball

tar xzf nagios-3.2.1.tar.gz
cd /nagios-3.2.1/
./configure --with-command-group=nagcmd
make all
make install 
Verify configurations
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Restart Nagios
/etc/init.d/nagios restart  

No comments:

Post a Comment