编译安装nagios-4.3.2+plugins-2.2.1+check_mysql
来源:互联网 发布:淘宝卷皮 编辑:程序博客网 时间:2024/06/06 03:30
搭建nagios
执行以下步骤来安装必备软件包。
yum install -y gcc glibc glibc-common wget unzip httpd php gd gd-devel
下载源码
cd /tmp
wget https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.3.2.tar.gz
tar xzf nagios-4.3.2.tar.gz编译
cd /tmp/nagioscore-nagios-4.3.2/
./configure
make all创建用户和组
useradd nagios
usermod -a -G nagios apache- 安装二进制文件
make install
安装服务/守护进程
这将安装服务或守护程序文件,并将其配置为在启动时启动。此时还配置了Apache httpd服务
make install-init
systemctl enable nagios.service
systemctl enable httpd.servicemake安装命令模式
这将安装并配置外部命令文件。make install-commandmode
安装配置文件
这将安装* SAMPLE *配置文件。这些是必需的,因为Nagios需要一些配置文件才能启动它们。make install-config
安装Apache配置文件
这将安装Apache Web 服务器配置文件。如果需要,还可以配置Apache设置。make install-webconf
创建nagiosadmin用户帐户
您需要创建一个Apache用户帐户才能登录Nagios。
以下命令将创建一个名为nagiosadmin的用户帐户,并将提示您提供该帐户的密码。htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
启动Apache Web 服务器和Nagios Core
systemctl start httpd.service
systemctl start nagios.service- 测试Nagios
Nagios正在运行,您需要登录Nagios Web Interface。
在浏览器输入http://YOUR_IP/nagios
系统将提示您输入用户名和密码。用户名是nagiosadmin(您在之前的步骤中创建),密码是您之前提供的。
登录后,您将看到Nagios界面。恭喜您已经安装了Nagios Core。
安装nagios插件
安装依赖
yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils epel-release perl-Net-SNMP
下载源码
cd / tmp
wget –no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
tar zxf nagios -plugins.tar.gz编译+安装
cd /tmp/nagios-plugins-release-2.2.1/
./tools/setup
./configure - -with-mysql=/usr (此选项用来生成check_mysql 插件)
make
make install
- 编译安装nagios-4.3.2+plugins-2.2.1+check_mysql
- nagios使用check_mysql监控mysql
- nagios plugins
- check_mysql
- 源代码编译安装Nagios
- 安装nagios-plugins-1.4.15的make的报错
- nagios check_mysql错误,找不到libmysqlclient.so.18的解决办法
- nagios-plugins-1.4.15 客户端 make 时报错 make[2]: *** [check_http.o] Error 1
- Nagios编译安装的详细
- linux nagios 安装 nagios-plugins-1.4.15 、nrpe以及 遇到的报错的解决方法
- nagios安装文档-1
- Nagios 4.0.1安装
- nagios plugins之check_http
- 使用 Ansible 编译和安装 nagios
- nagios监控mysql(percona-monitoring-plugins)
- [nagios监控] centos6.2安装配置nagios server
- 安装Nagios
- nagios 安装
- LeetCode 500 Keyboard Row
- 【C】浅谈c语言里面的结构体和位段!!!
- Axure使用经验
- java 将一个数组逆序输出。
- Git,GitLab,GitHub,SVN 安装,用法,区别,进阶
- 编译安装nagios-4.3.2+plugins-2.2.1+check_mysql
- NDK入门:老码农谈NDK开发
- Linux开机启动(bootstrap)
- python
- 实现一个三列布局,左边固定大小,其他两列占据剩余空间的50%
- 关于五险一金
- ZMQ(java)-遇到的问题
- 关于skinmagic的使用具体步骤
- leetcode Question5.Longest Palindromic Substring