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

浙公网安备 33010602011771号