nagios4.3.4升级4.4.1
2018-07-19nagios每隔一段时间就会有新版本,会提供新功能也会修复bug.注意升级会覆盖原来的配置。
1、下载
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 | 标签: command、linux、nagios |相关日志
- centos7配置网络nmcli无法使用
- Linux下怎么查看16进制文件
- shell中获得当前用户名
- nagios 4.08配置步骤
- awk和sed实例
- linux查看当前使用的shell
- wget同步FTP
- date -d
- CentOS配置vsftpd
- iperf3测带宽质量
- "tar --exclude"
- base64
- tar – 复制目录及文件
- shell Cli Shortcuts
- Windows快捷键
- windows sc command
- Displays the UUID of a computer
- history记录添加时间戳
- dstat
- getent
- lastb命令
- set -o vi
- Linpack and Flops
- grep几个小技巧
- Linux Swap ,add ,delete and move
- Sed的常用命令语法 (6)
- linux命令行自动补齐 (6)
- wildcard"*"号的用法 (1)
- !$
- 回车符和换行符区别 (1)
- 监控工具nmon (1)
- awk to print all row to one line (8)
- reg命令给windows添加环境变量 (2)
- 统计文件行数的命令 (1)
- linux历史命令 (1)
- linux命令行TAB自动补全功能 (9)
- tar命令实例 (1)
- linux常用命令 (6)
- expr命令实例 (1)
- cut命令实例 (1)
- Linux下chkconfig命令详解 (1)
- vi或sed的批量替换 (1)
- xargs命令实例 (3)
- grep 用正则表达式实例 (2)
- linux add swap by file (1)
- sed-grep-awk (1)