使用方法:
Usage:check_nt -H host -v variable [-p port] [-w warning] [-c critical][-l params] [-d SHOWALL] [-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
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: 10)
-h, --help
Print this help screen
-V, --version
Print version information
-v, --variable=STRING
Variable to check
简单说明:
-H 主机名或者IP
-p NSClient端口,一般12489
-s NSClient密码,如果客户端设定了,就必须指定
-w 警告状态报告
-c 危险状态报告
-v 变量,指定相关
实例:
$ ./check_nt -H 192.168.1.11 -p 12489 -s 123456 -v CLIENTVERSION
NSClient++ 0.3.6.818 2009-06-14
$ ./check_nt -H 192.168.1.11 -p 12489 -s 123456 -v CPULOAD -l 60,90,95
CPU Load 220% (60 min average) | '60 min avg Load'=220%;90;95;0;100
$ ./check_nt -H 192.168.1.11 -p 12489 -s 123456 -v SERVICESTATE -d SHOWALL -l MSSQLSERVER
MSSQLSERVER: Started
$ ./check_nt -H 192.168.1.11 -p 12489 -s 123456 -v PROCSTATE -d SHOWALL -l Explorer.exe
Explorer.EXE: Running
阅读(2333) | 评论(0) | 转发(0) |