nagios4.3.4升级4.4.1

2018-07-19

nagios每隔一段时间就会有新版本,会提供新功能也会修复bug.注意升级会覆盖原来的配置。

1、下载

Thanks for Downloading Nagios Core


2019-01-15 Latest stable release
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz
2017-04-19 Latest stable release
wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
2017-09-01 Last Release Date
https://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz
https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe-3.2.1/nrpe-3.2.1.tar.gz

2、如果第一次安装nagios需要创建user和group
#!/bin/bash

/usr/sbin/useradd -m nagios
/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -a -G nagcmd nagios
/usr/sbin/usermod -a -G nagcmd www

export NAGIOS=/opt/nagios
cd $NAGIOS

3、

tar zxf untar/nagios-4.4.1.tar.gz
pushd nagios-4.4.1
./configure --prefix=/usr/local/nagios --with-command-group=nagcmd
make all;
make install 安装主程序和share页面
make install-init 安装/etc/init.d/nagios
make install-commandmode
make install-config 这步骤不需要
popd

make test
- This runs the test suite

make install
- This installs the main program, CGIs, and HTML files

make install-init
- This installs the init script in /etc/init.d

make install-daemoninit
- This will initialize the init script
in /etc/init.d

make install-groups-users
- This adds the users and groups if they do not exist

make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file

make install-config
- This installs *SAMPLE* config files in /usr/local/nagios/etc
You'll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!

make install-webconf
- This installs the Apache config file for the Nagios
web interface

make install-exfoliation
- This installs the Exfoliation theme for the Nagios
web interface

make install-classicui
- This installs the classic theme for the Nagios
web interface

4、安装nagios-plugins
tar zxf untar/nagios-plugins-2.2.1.tar.gz
pushd nagios-plugins-2.2.1

./configure;make;make install
popd

5、安装nrpe-3.2.1

tar

./configure && make all && make install-plugin && make install-daemon && make install-config

make install-daemon-config

分类:Linux | 标签: |

相关日志

评论被关闭!