在linux上监控的客户机,报错如下: load check CRITICAL 03-21-2013 10:25:06 0d 2h 23m 23s 4/4 CHECK_NRPE: Error - Could not complete SSL handshake. 原因: 客户机器上面的nrpe.cfg里面,有一个 allow_hosts参数,里面设置了允许访问的主监控nagios服...
MySQL 自身在性能监测方面很不给力、这是令许多 MySQL DBA 夜夜辗转难眠、 幸运的是、通过 Cacti 监测(注意是监测而非 监控 )MySQL 数据库 状态 借助 cacti+rrdtool 强大的绘图功能、加上专用的 mysql 模板、能够灵活快速的创建对多个 MySQL 实例的监测 ㈠...
nginx服务器中配置nagios监控软件时,经常用到的一个文件commands.cfg nagios commands.cfg nagios监控Linux/windows的常用配置,以snmp、nrpe实现。 代码: 复制代码 代码示例: # process-host-perfdata command definition define command{ command_name p...
nagios配置文件 nagios文件应该处于conf/domain/目录下。 nagios配置: 复制代码 代码示例: server { listen 80; server_name 192.168.44.44; index index.html index.htm index.php; root /usr/local/nagios/share; auth_basic Nagios Access; auth_basic_u...
nagios perl-fcgi.pl 代码如下: 注意,网上提供的官方文档在运行时可能会有问题,此文中保证无问题。 复制代码 代码示例: #!/usr/bin/perl # use strict; # site: www.jbxue.com use FCGI; use Getopt::Long; use IO::All; use Socket; sub init { GetOptio...
nagios监控log文件的shell脚本代码。 首先,要实现一个插件脚本:(file.sh) 说明:返回值。0为正常、1为警告、2为紧急。格式:file.sh w 2 c 3 使用: 将该脚本保存至/usr/local/nagios/libexec目录下,此时file.sh成为一个可调用的命令。 命令引用方式:...
nagiosql配置文件 nagiosql文件应该处于conf/domain/目录下。 nagiosql配置: 复制代码 代码示例: server { listen 8088; server_name 192.168.44.44; index index.html index.htm index.php; root /usr/local/nagios/nagiosql/; # www.jbxue.com location /...
nagios监控文件start_perl_cgi.sh 例子,start_perl_cgi.sh文件的内容: 复制代码 代码示例: #!/bin/bash # #site: www.jbxue.com set -x dir=/export/servers/nginx stop () { #pkill -f $dir/perl-fcgi.pl kill $(cat $dir/logs/perl-fcgi.pid) rm $dir/lo...
在nagios中,可以使用很多通告方式,包括:邮件、飞信、短信通知。 重要业务一般采用短信方式通知。 但是nagios默认只对通知间隔做了控制。 本钱引用了escalationss机制进行控制。 在etc/objects/ 下创建escalations.cfg文件: 复制代码 代码示例: #主机定义...
在nagios中要实现资源和服务两个方面的监控,需要配置服务器端(nagios server)及被监控端。 (NRPE-nagios remote plugin executor).为了能顺利地、有条理的部署nagios 监控平台,一个好的工作风格是在nagios server 自身实现服务和资源的监控,然后再在...