2022年Nagios监控Windows主机 .pdf
《2022年Nagios监控Windows主机 .pdf》由会员分享,可在线阅读,更多相关《2022年Nagios监控Windows主机 .pdf(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Nagios 监控 Windows服务器( NSClient+安装与应用)一、 NSClient+安装1、下载 NSClient+插件点击下面链接下载http:/files.nsclient.org/x-0.3.x/NSClient%2B%2B-0.3.9-Win32.msi 2、安装插件与配置1)安装过程十分简单,直接点击下一步,下一步即可。安装过程注意如下图的设置即可2)配置 NSClient 编辑 NSClient安装目录下的NSC.ini 文件,修改后,重启NSClient即可,如下图所示名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - -
2、- - - - 名师精心整理 - - - - - - - 第 1 页,共 8 页 - - - - - - - - - 3)模块作用说明,如下表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
3、NSClientListener.dll Listens and responds to incoming requests from nagios N/A 二、 NSClient应用监控NSClient+与 Nagios服务器通信, 主要使用Nagios服务器的check_nt插件。原理图如下名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 8 页 - - - - - - - - - 1、check_nt插件的使用说明rootlocalhost libexec# ./ch
4、eck_nt -h check_nt v1.4.15 (nagios-plugins 1.4.15) Copyright (c) 2000 Yves Rubin () Copyright (c) 2000-2007 Nagios Plugin Development Team 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 critic
5、al -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 needed for the request -w, -warning=INTEGER Th
6、reshold which will result in a warning status -c, -critical=INTEGER Threshold which will result in a critical status -t, -timeout=INTEGER 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 8 页 - - - - - - - - - Seconds before connection attempt times out (default:
7、-l, -params= 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 va
8、riables are: CLIENTVERSION = Get the NSClient version If -l is specified, will return warning if versions differ. CPULOAD = Average CPU load on last x minutes. Request a -l parameter with the following syntax: -l ,. should be less than 24*60. Thresholds are percentage and up to 10 requests can be do
9、ne in one shot. ie: -l 60,90,95,120,90,95 UPTIME = Get the uptime of the machine. No specific parameters. No warning or critical threshold USEDDISKSPACE = Size and percentage of disk use. Request a -l parameter containing the drive letter only. Warning and critical thresholds can be specified with -
10、w and -c. MEMUSE = Memory use. Warning and critical thresholds can be specified with -w and -c. SERVICESTATE = Check the state of one or several services. Request a -l parameters with the following syntax: -l ,. You can specify -d SHOWALL in case you want to see working services in the returned stri
11、ng. 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 8 页 - - - - - - - - - PROCSTATE = Check if one or several process are running. Same syntax as SERVICESTATE. COUNTER = Check any performance counter of Windows NT/2000. Request a -l parameters with the following
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年Nagios监控Windows主机 2022 Nagios 监控 Windows 主机
限制150内