升级ngios 3.x到4.x 类似于2.x升级到3.x版本

step 1:首先一定要备份好之前的版本,

step 2:停止现用的nagios 服务  /etc/init.d/nagios stop

step 3:下载latest 版本 我这里是4.0.8

[[email protected] ~]#wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz

step 4:解压安装

[[email protected] ~]# tar -zxvf nagios-4.0.8.tar.gz

[[email protected] ~]# cd nagios-4.0.8

[[email protected] ~]# ./configure --with-command-group=nagcmd

[[email protected] ~]# make all

[[email protected] ~]# make install

step 5:验证nagios配置

[[email protected] ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

step 6:重新启动nagios

[[email protected] ~]# /etc/init.d/nagios start

接下来打开web页面就可以看到新版本了

Nagios upgrade 3.x to 4.x 升级_第1张图片