欢迎光临IT网Linux学习频道

当前位置: > Linux服务器 >
  • [监控工具] nginx下配置nagios之commands.cfg 日期:2014-10-26 01:32:57 点击:110 好评:0

    nginx服务器中配置nagios监控软件时,经常用到的一个文件commands.cfg nagios commands.cfg nagios监控Linux/windows的常用配置,以snmp、nrpe实现。 代码: 复制代码 代码示例: # process-host-perfdata command definition define command{ command_name p...

  • [监控工具] nginx配置nagios之nagios配置文件 日期:2014-10-26 01:32:35 点击:52 好评:0

    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...

  • [监控工具] nginx下配置nagios之perl-fcgi.pl 日期:2014-10-26 01:32:06 点击:163 好评:0

    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文件的方法举例 日期:2014-10-26 01:31:05 点击:82 好评:0

    nagios监控log文件的shell脚本代码。 首先,要实现一个插件脚本:(file.sh) 说明:返回值。0为正常、1为警告、2为紧急。格式:file.sh w 2 c 3 使用: 将该脚本保存至/usr/local/nagios/libexec目录下,此时file.sh成为一个可调用的命令。 命令引用方式:...

  • [监控工具] nginx配置nagiosQL之nagiosql配置文件 日期:2014-10-26 01:28:52 点击:177 好评:0

    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 /...

  • [监控工具] nginx配置nagios之start_perl_cgi.sh 日期:2014-10-26 01:28:28 点击:178 好评:0

    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监控软件中通知控制的方法 日期:2014-10-26 01:27:34 点击:125 好评:0

    在nagios中,可以使用很多通告方式,包括:邮件、飞信、短信通知。 重要业务一般采用短信方式通知。 但是nagios默认只对通知间隔做了控制。 本钱引用了escalationss机制进行控制。 在etc/objects/ 下创建escalations.cfg文件: 复制代码 代码示例: #主机定义...

  • [监控工具] 学习nrpe的安装设置 日期:2014-10-26 01:26:14 点击:174 好评:0

    在nagios中要实现资源和服务两个方面的监控,需要配置服务器端(nagios server)及被监控端。 (NRPE-nagios remote plugin executor).为了能顺利地、有条理的部署nagios 监控平台,一个好的工作风格是在nagios server 自身实现服务和资源的监控,然后再在...

  • [监控工具] 配置cacti用来监控mysql 日期:2014-10-26 01:25:55 点击:115 好评:0

    1. 安装监控插件 复制代码 代码如下: wget http://mysql-cacti-templates.googlecode.com/files/mysql-cacti-templates-1.1.2.tar.gz tar -xzvf mysql-cacti-templates-1.1.2.tar.gz cp mysql-cacti-templates-1.1.2/ss_get_mysql_stats.php /var/www/html/c...

  • [监控工具] nagios编写脚本对系统进行定制监控 日期:2014-10-26 01:25:29 点击:56 好评:0

    使用nagios对系统进行定制监控。 nagios在linux的监控流程是使用nrpe客户端来调用/usr/local/nagios/libexec目录下的脚本,然后将获取的数据返回给nagios,那些脚本会返回不同的状态值以及一些信息。 nagios就是根据这些返回值来判断服务状态是否正常以及是...

  • 首页
  • 上一页
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 下一页
  • 末页
  • 5405398
栏目列表
推荐内容