Nagos监控Windows主机(NSClient++安装与应用).doc
文本预览下载声明
Nagios监控Windows服务器(NSClient++安装与应用)
NSClient++安装
下载NSClient++插件
点击下面链接下载/x-0.3.x/NSClient%2B%2B-0.3.9-Win32.msi
安装插件与配置
安装过程十分简单,直接点击下一步,下一步即可。安装过程注意如下图的设置即可
配置NSClient
编辑NSClient安装目录下的NSC.ini文件,修改后,重启NSClient即可,如下图所示
模块作用说明,如下表
Module Description Commands CheckSystem.dll Handles many system checks CPU, MEMORY, COUNTER etc CheckDisk.dll Handles Disk related checks USEDDISKSPACE FileLogger.dll Logs errors to a file so you can see what is going on N/A NSClientListener.dll Listens and responds to incoming requests from nagios N/A
NSClient应用监控
NSClient++与Nagios服务器通信,主要使用Nagios服务器的check_nt插件。原理图如下
check_nt插件的使用说明
[root@localhost libexec]# ./check_nt -h
check_nt v1.4.15 (nagios-plugins 1.4.15)
Copyright (c) 2000 Yves Rubin (rubiyz@)
Copyright (c) 2000-2007 Nagios Plugin Development Team
nagiosplug-devel@
This plugin collects data from the NSClient service running on a
Windows NT/2000/XP/2003 server.
Usage:
check_nt -H host -v variable [-p port] [-w warning] [-c critical]
[-l params] [-d SHOWALL] [-u] [-t timeout]
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
Options:
-H, --hostname=HOST
Name of the host to check
-p, --port=INTEGER
Optional port number (default: 1248)
-s, --secret=password
Password needed for the request
-w, --warning=INTEGER
Threshold which will result in a warning status
-c, --critical=INTEGER
Threshold which will result in a critical status
-t, --timeout=INTEGER
Seconds before connection attempt times out (default: -l, --params=parameters
Parameters passed to specified check (see below) -d, --display={SHOWALL}
Display options (currently only SHOWALL works) -u, --unknown-timeout
Return UNKNOWN on timeouts10)
-h, --help
Print this help screen
-V, --version
Print version information
-v, --variable=STRING
Variable to check
Valid variables are:
CLIENTVERSION = Get the NSClient version
If -l version is specified, will return warning if versions di
显示全部