2012-10-26 10:01:41
NSClient的介绍:
NSClient++安装
1、下载NSClient++插件
2、安装插件与配置
安程十分简单,直接点击下一步,下一步即可。安装过程注意如下图的设置即可
NSClient应用监控
1、check_nt插件的使用说明
- [root@localhost libexec]# ./check_nt -h
- 。。。。。。。。省略一些
- 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]
- check_nt -H 192.168.1.1 -p 12489 -v INSTANCES -l Process
2、检查Nagios目录下的libexec子目录,一定要存在check_nt
3、查看Nagios服务器下定义check_nt命令
- [root@localhost etc]# vim commands.cfg
- define command {
- command_name check_nt
- command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
- register 1
- }
4、Windows系统监控应用
- define host{
- use windows-server
- host_name 10.15.62.137
- alias My Windows Server
- address 10.15.62.137
- }
- define service{
- host_name 10.15.62.137
- service_description memory usage
- use generic-service
- check_command check_nt!MEMUSE!-w 80 -c 90
- }
- define service{
- host_name 10.15.62.137
- service_description nsca version
- use generic-service
- check_command check_nt!CLIENTVERSION
- }
5、检查nagios.cfg文件是否有误,然后重启nagios
- [root@localhost services]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
- [root@localhost services]# service nagios restart