随笔分类 -  Nagios 监控

摘要:监控机需要使用check_apachestatus.pl插件插件下载地址:https://exchange.nagios.org/directory/Tutorials/Other-Tutorials-And-HOWTOs/Monitoring-Apache-Session-load-with-Na... 阅读全文
posted @ 2015-07-14 16:46 noops 阅读(302) 评论(0) 推荐(0)
摘要:Nagios 的警报信息如下,意思是 nrpe 进程执行某些脚本超过了 10 秒钟,就会发警报CHECK_NRPE: Socket timeout after 10 seconds修改 command.cfg 配置文件,把 NRPE 的时间调整到 30sdefine command{command_... 阅读全文
posted @ 2015-07-11 21:48 noops 阅读(3421) 评论(0) 推荐(0)
摘要:安装apt-get install nagios-nrpe-server nagios-plugins修改nrpe.cfgvi/etc/nagios/nrpe.cfg修改Allow Host,添加监控机的IPservice nagios-nrpe-server restart修改servicesvi... 阅读全文
posted @ 2015-07-11 20:57 noops 阅读(262) 评论(0) 推荐(0)
摘要:安装apt-get updateapt-get install nagios* perlapt-get install --no-install-recommends pnp4nagiosapt-get install apache2 apache2-utils php5 php-pear修改np... 阅读全文
posted @ 2015-07-11 09:57 noops 阅读(606) 评论(0) 推荐(0)
摘要:工作需要监控Httpd并发数,找不到合适的插件,花时间研究了一下Nagios监控内存的脚本,做了一些修改,完成了脚本。监控内存脚本:http://www.cnblogs.com/Mrhuangrui/p/4585615.html监控Http并发数脚本代码如下:#!/bin/bashif [ "$1"... 阅读全文
posted @ 2015-07-07 15:48 noops 阅读(251) 评论(0) 推荐(0)
摘要:安装软件包yum -y install net-snmp*chkconfig nrpe onchkconfig snmpd on使用SCP命令拷贝 check_traffic.sh 到 / usr/lib64/nagios/plugins/check_traffic.shGitHub 下载地址:ht... 阅读全文
posted @ 2015-07-07 12:28 noops 阅读(354) 评论(0) 推荐(0)
摘要:安装sendmailyum install -y sendmail* mailx修改防火墙设置,添加25端口到防火墙vi /etc/sysconfig/iptables重启 iptables、sendmail 服务service iptables restartservice sendmail re... 阅读全文
posted @ 2015-06-19 21:51 noops 阅读(3551) 评论(0) 推荐(0)
摘要:在被监控的Windows server 主机上安装NSClinet++下载地址:https://www.nsclient.org/download/32bit:http://files.nsclient.org/released/NSCP-0.4.3.143-Win32.msi64bit:http:... 阅读全文
posted @ 2015-06-19 15:48 noops 阅读(561) 评论(0) 推荐(0)
摘要:被监控机的Mysql监控创建专用数据库、专用数据库账户mysql -uroot -pcreate database nagios_monitor;grant select on nagios_monitor.* to nagios@'%' identified by 'nagiosMonitor';... 阅读全文
posted @ 2015-06-18 14:43 noops 阅读(214) 评论(0) 推荐(0)
摘要:监控本机内存cd /usr/lib64/nagios/pluginstouch check_mem.sh#!/bin/bashif [ "$1" = "-w" ] && [ "$2" -gt "0" ] && [ "$3" = "-c" ] && [ "$4" -gt "0" ]; then ... 阅读全文
posted @ 2015-06-18 13:19 noops 阅读(352) 评论(0) 推荐(0)
摘要:安装rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.r... 阅读全文
posted @ 2015-06-17 22:50 noops 阅读(210) 评论(0) 推荐(0)
摘要:安装软件包yum -y install net-snmp*chkconfig nrpe onchkconfig snmpd onchkconfig nagios on修改snmp参数,vi /etc/snmp/snmpd.conf(可备份snmpd.conf,修改下面的localhost-IP为服务... 阅读全文
posted @ 2015-06-11 21:18 noops 阅读(981) 评论(0) 推荐(0)
摘要:安装配置Apache、PHP(忽略此次安装步骤)安装nagiosrpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmrpm -Uvh http://rpms.famillecollet.c... 阅读全文
posted @ 2015-06-11 21:06 noops 阅读(584) 评论(0) 推荐(0)