Nagios插件nagios-plugins安装
Nagios-plugins作为连接客户端与服务器端的工具,意义重大
tar zxvf nagios-plugins-1.4.14.tar.gz
Cd nagios-plugins-1.4.14
./configure --prefix=/usr/local/nagios
Make && make install
便会在nagios目录下生成libexec目录
Cd /usr/local/nagios/libexec
Ls //查看到所有脚本,这些是服务器状态的查看脚本
便会在nagios目录下生成libexec目录
Cd /usr/local/nagios/libexec
Ls //查看到所有脚本,这些是服务器状态的查看脚本
配置并启动nagios
Chkconfig –add nagios
Chkconfig nagios on
检测语法
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
建立监控帐号和密码
/usr/local/apache/bin/htpasswd -c /usr/local/nagios/etc/htpasswd nagios
Service nagios start
输入帐号和密码发现只是监控自己,不行还要监控别的
Chkconfig –add nagios
Chkconfig nagios on
检测语法
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
建立监控帐号和密码
/usr/local/apache/bin/htpasswd -c /usr/local/nagios/etc/htpasswd nagios
Service nagios start
输入帐号和密码发现只是监控自己,不行还要监控别的
本文转自zsaisai 51CTO博客,原文链接:http://blog.51cto.com/3402313/916692