Redhat配置nagios-配置windows被监控机

系统 Linux
Redhat配置nagios:Nagios是监控系统,Nagios能监控所指定的本地或远程主机以及服务,同时提供异常通知功能等。这篇文章讲述的是Redhat配置nagios,配置windows被监控机

  配置windows被监控机(客户端)

        本文讲述的是:Redhat配置nagios。返回大纲。

  Windows监控需要在windows安装一个插件nsclient,

  下载后解压到c盘

  1.   C:\NSClient>nsclient++ /install  
  2.  
  3.   Service NSClientpp installed...  
  4.  
  5.   l NSClient++.cpp(227) Service installed!  
  6.  

  用记事本编辑nsc.ini,去掉注释符号”;”除了CheckWMI.dll和RemoteConfiguration.dll

  1.   [modules]  
  2.  
  3.   FileLogger.dll  
  4.  
  5.   CheckSystem.dll  
  6.  
  7.   CheckDisk.dll  
  8.  
  9.   NSClientListener.dll  
  10.  
  11.   NRPEListener.dll  
  12.  
  13.   SysTray.dll  
  14.  
  15.   CheckEventLog.dll  
  16.  
  17.   CheckHelpers.dll  
  18.  
  19.   ;CheckWMI.dll  
  20.  
  21.   CheckExternalScripts.dll  
  22.  
  23.   NSCAAgent.dll  
  24.  
  25.   LUAScript.dll  
  26.  
  27.   ;RemoteConfiguration.dll  
  28.  
  29.   NRPEClient.dll  
  30.  
  31.   CheckTaskSched.dll  
  32.  
  33.   [Settings]  
  34.  
  35.   allowed_hosts=10.155.2.65/32  
  36.  
  37.   [NSClient]  
  38.  
  39.   port=12489 
  40.  
  41.   C:\NSClient>NSClient++ -start  
  42.  
  43.   Starting NSClientpp  
  44.  
  45.   C:\NSClient>netstat -an | more  
  46.  
  47.   Active Connections  
  48.  
  49.   Proto Local Address Foreign Address State  
  50.  
  51.   TCP 0.0.0.0:5666 0.0.0.0:0 LISTENING  
  52.  
  53.   TCP 0.0.0.0:12489 0.0.0.0:0 LISTENING  
  54.  

  服务器

  1.   [root@localhost ~]# vi /usr/local/nagios/etc/nagios.cfg  
  2.  
  3.   # Definitions for monitoring a Windows machine  
  4.  
  5.   cfg_file=/usr/local/nagios/etc/objects/windows.cfg  
  6.  
  7.   [root@localhost ~]# vi /usr/local/nagios/etc/objects/windows.cfg  
  8.  

  windows.cfg没有什么可改的,只是把hostname和ip改了就行了(图5)

 

Redhat/配置/nagios

 【编辑推荐】

Nagios使用飞信Robot发送报警短信

配置nagios客户端

Nagios的安装配置记录

责任编辑:zhaolei 来源: csdn
相关推荐

2011-03-31 16:10:47

Redhat配置nagios

2011-03-31 16:10:48

Redhat配置nagios

2011-03-31 16:11:23

Redhat配置nagios

2011-03-31 16:05:18

Redhat配置nagios

2011-03-31 15:31:05

Redhat配置nagios

2011-03-31 16:09:21

Redhat配置nagios

2011-03-31 16:05:18

Redhat配置nagios

2011-03-31 16:45:39

Redhat配置nagios

2011-03-31 15:31:06

Redhat配置nagios

2011-03-23 13:44:31

配置NDOUtils系统

2011-03-31 16:05:15

Redhat配置nagios

2011-07-01 10:26:15

NagiosWindows Ser

2011-03-31 15:31:06

Redhat配置nagios

2011-03-23 13:32:14

配置Nagios系统

2011-03-25 14:40:33

Nagios监控

2011-04-01 15:05:45

Redhat配置mrtg

2011-03-22 09:03:47

Nagios配置

2011-03-23 15:13:08

Nagios监控Oracle

2009-03-11 18:49:36

LinuxNagios运维监控

2011-03-21 14:53:27

Nagios监控Linux
点赞
收藏

51CTO技术栈公众号