wget https://fossies.org/linux/misc/nagios-4.3.1.tar.gz
2. Backup old version
service apache2 stop && service nagios stop
#mkdir /tmp/nagios_backup
#tar -cvvzf /tmp/nagios_backup/nagios_bpk.tar /usr/local/nagios
3. go to path nagios 4.3.1 and unzip file
tar -xzf nagios-4.3.1.tar.gz
cd /root/nagios-4.3.1/
./configure --with-command-group=nagcmd
make all
make install
4. check configure
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Checking objects...
Checked 13 services.
Checked 2 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 2 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
5. Restart service apache2, nagios
service apache2 start && service nagios start
6. login to test ing
7. If u want to use backup reading restore
No comments:
Post a Comment