nagios监控windows配置
1、下载并安装windows插件 http://sourceforge.net/projects/nscplus/NSCP-0.4.1.73-x64.msi
2、windows端配置 nsclient.ini文件
[/modules]
;CheckWMI = 1 #注释掉该行
[/settings/default]
allowed hosts = *
;password =
port = 12489 #该行为手工添加
3、服务器端配置commands.cfg
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}
命令行参数可参考: /usr/lib/nagios/plugins/check_nt -h
4、配置hosts.cfg
define host {
host_name aaa
alias aaa
address 192.168.1.190
contact_groups ITServices
check_command check-host-alive
max_check_attempts 5
notification_interval 10
notification_period 24x7
notification_options d,u,r
}
5、配置services.cfg
#host ---aaa
define service{
host_name aaa
service_description check-host-alive
check_command check-host-alive
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description OnlineTime
check_command check_nt!UPTIME
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description D:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l d -w 80 -c 90
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description W3SVC
check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description Explorer
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description D:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l d -w 80 -c 90
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description W3SVC
check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
define service{
host_name aaa
service_description Explorer
check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
check_period 24x7
max_check_attempts 5
normal_check_interval 3
retry_check_interval 2
contact_groups ITServices
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
5、重启nagios和httpd服务
6、遇见的错误:
windows下nsclient.log里有“source\nscp\trunk\include\check_nt/server/protocol.hpp:65: Rejected connection from:”,检查nsclient.ini与commands.cfg 接口是否一致
nagios监控windows配置的更多相关文章
- Nagios监控Windows的网卡流量
Nagios监控Windows的网卡流量 使用/usr/local/nagios/libexec/中的check_traffic.sh,不但可以监控Linux的网卡流量,也可以监控Windows服务器 ...
- Nagios 监控Windows服务器(详细篇)
1. 监控内容 windows服务器的内部参数包括以下 a. 内存使用状况 b. CPU负载 c. 磁盘使用状况 d. 服务状态 e. 运行的进程 2. 监控原理 在windows服务器内安装NSCl ...
- Nagios 监控windows server Apache 服务
监控机需要使用check_apachestatus.pl插件插件下载地址:https://exchange.nagios.org/directory/Tutorials/Other-Tutorials ...
- 一步步实现Nagios监控linux主机及飞信报警
一步步实现Nagios监控linux主机及飞信报警 上篇文章介绍了在linux主机上架设nagios监控服务,并对windows主机进行服务状态变化的监控,这次我们继续上次内容. 首先实现n ...
- nagios监控实用教程
nagios监控实用教程 Nagios作为开源网络监视工具,它不但可以有效的监控内存.流量.数据库使用情况.它还可以Windows.Linux主机状态.本专题收录了有关Nagios监控相关文章,供大家 ...
- nagios监控系统安装及配置
Nagios通常由一个主程序(Nagios).一个插件程序(Nagios-plugins)和四个可选的ADDON(NRPE.NSCA.NSClient++和NDOUtils)组成.Ngios的监控工作 ...
- Nagios利用NSClient++监控Windows主机
在Nagios的libexec下有check_nt这个插件,它就是用来检查windows机器的服务的.其功能类似于check_nrpe.不过还需要搭配另外一个软件NSClient++,它则类似于NRP ...
- Nagios 利用NSClient++的check_nrpe方式使用自定义脚本监控windows
分类 NsClient++来监控windows主机有三种方式:check_nt.check_nrpe.nsca.check_nt自带很多功能,但是扩展性差,check_nrpe可以通过执行自己定义的脚 ...
- Nagios的安装配置与应用之五监控远程Linux服务器
本文出自 “曹坏水” 博客,请务必保留此出处http://cao2012.blog.51cto.com/366908/1132113 NRPE是Nagios的一个功能扩展,它可在远程Linux和UNI ...
随机推荐
- 数字证书中keytool命令使用说明
这个命令一般在JDK\jre\lib\security\目录下操作 keytool常用命令 -alias 产生别名 -keystore 指定密钥库的名称(就像数据库一样的证书库,可以 ...
- Spring利用propertyConfigurer类 读取.property数据库配置文件
(1).基本的使用方法是: <bean id="propertyConfigurerForAnalysis" class="org.springframework. ...
- Mac 下 Git 的基础命令行操作
Mac 下 Git 的基础命令行操作 sudo apt-get install git-core //安装Git 用户配置 git config --global user.name "Yo ...
- 函数模板&类模板
#include <iostream> #if 0//函数模板 template<typename T> T max(T a, T b, T c)//函数模板 { if (a ...
- nagios-plugins安装报错--with-mysql: no
--with-mysql: no 解决方法 yum安装mysql-devel yum install mysql-devel
- 九度OJ 1160:放苹果 (DFS)
时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:998 解决:680 题目描述: 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和 ...
- the max number of open files 最大打开文件数 ulimit -n RabbitMQ调优
Installing on RPM-based Linux (RHEL, CentOS, Fedora, openSUSE) — RabbitMQ https://www.rabbitmq.com/i ...
- 2017-2018-1 20179209《Linux内核原理与分析》第六周作业
一.分析system_call中断处理过程 实验 下载最新menu,并在test.c中增加mkdir与mkdir-asm函数原型 rm menu -rf git clone https://githu ...
- 相比ICO,DAICO主要有这两方面优势
都说ICO已死,很有一部分人对无币区块链持保留态度,自从V神提出DAICO一来,大家似乎看到了新的方向,不少项目围绕其展开.那对比ICO,DAICO有哪些优势呢?主要是以下两点: DAICO维护了投资 ...
- 5.JavaScript优化及导航菜单背后的秘密
JavaScript优化及导航菜单背后的秘密 伍星 学习目标1.进一步了解前端优化 学习如何编写良好的 JavaScirpt2.通过导航的学习,了解JavaScirpt的应用 JavaScript在用 ...