Nagios 通过 Yum 快速安装

Nagios 通过 Yum 快速安装

2018/07/18 运维 监控 Nagios

关闭防火墙和 SELinux

systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl stop iptables.service
systemctl disable iptables.service
setenforce 0

/etc/selinux/config 文件中的 SELINUX=enforcing 修改为 SELINUX=disabled

加载开源镜像的 epel-release

yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum repolist
yum makecache

安装 Web 环境

yum install httpd php php-gd

安装 Nagios

yum install nagios nagios-plugins-all

设置 Nagios Web 页面访问密码

htpasswd -c /etc/nagios/passwd nagiosadmin

如果要使用 nrpe 进行通信,则安装 nrpe 及相关依赖

yum install nagios-plugins-nrpe nrpe

启动 Nagios

systemctl start nagios

启动 Web 服务

systemctl start httpd

Search

    Table of Contents