nagios监控WIN2003

运维 系统运维
nagios是一款监控系统,我们经常用来监控系统运行和网络信息,那你试的监控SERVER的性能WIN2003。来看看我是如何做到的!

nagios监控WIN2003的具体步骤如下:

  在我的实验室用nagios来监控SERVER的性能,其中mothership为host,win2003,servers 为RHEL56台。

  1.useradd nagios

  2.mkdir -v /usr/local/nagios,chown nagios.nagios /usr/local/nagios

  3.解压nagios.tar.gz

  ./configure --prefix=prefix --with-nagios-user=someuser --with-nagios-group=somegroup --with-command-group=cmdgroup

  #变量prefix 为安装目录,例如/usr/local/nagios

  #变量someuser 为nagios的用户,例如nagios

  #变量somegruop 为nagios属于的组,例如nagios

  #变量cmdgroup 为nagios命令行属组,例如nagcmd

  4.安装

  make all

  make install

  make install-config

  make install-init

  5.建立HTTP用户验证文件

  htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios

#p#

  6.修改httpd.conf,加入这样几行

  ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin

  < Directory " /usr/local/nagios/sbin" >

  Options ExecCGI

  AllowOverride None

  Order allow,deny

  Allow from all

  AuthName " Nagios Access"

  AuthType Basic

  AuthUserFile /usr/local/nagios/etc/htpasswd.users

  Require valid-user

  < /Directory>

  Alias /nagios /usr/local/nagios/share

  < Directory " /usr/local/nagios/share" >

  Options None

  AllowOverride None

  Order allow,deny

  Allow from all

  AuthName " Nagios Access"

  AuthType Basic

  AuthUserFile /usr/local/nagios/etc/htpasswd.users

  Require valid-user

  < /Directory>

#p#

  7.修改CGI验证

  cd /usr/local/nagios/etc vi cgi.cfg 修改use_authentication=1,在cgi.cfg中指定user为nagios,并且修改chmod -R 777 /usr/local/nagios/var/rw

  8.修改nagios.cfg 取消windows.cfg的注释

  9. 配置windows.cfg

  host=要监控的主机名,IP,然后可以自己定制服务。具体command可以在command.cfg中找

  10 利用/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg 来检查配置,然后service nagios restart ,当然,service httpd restart.

  11.client的设置

  在WIN2003上安装NSCLIENT++,进入安装目录,nsclient.exe /install ; nsclient.exe SysTray install ; nsclient.exe /start ;

  修改NSC.INI文件,取消

  FileLogger.dll

  CheckSystem.dll

  CheckDisk.dll

  NSClientListener.dll

  NRPEListener.dll

  SysTray.dll

  CheckEventLog.dll

  CheckHelpers.dll

  的注释,allow_hosts 设置可以监控的服务器IP,password为通信密码,默认没有

  12.检查状态,检查TCP12489端口是否打开

通过上文的十二步,想必大家都学会了nagios监控SERVER的性能WIN2003,希望本文对你们有用!

【编辑推荐】

  1. nagios安装三剑客
  2. Nagios验证配置文件
  3. nagios作用
  4. nagios 布署配置笔记
  5. Nagios安装完后map不显示
  6. freebsd 上的nagios配置
  7. nagios分布式配置
责任编辑:赵鹏 来源: nagios
相关推荐

2009-12-03 19:06:01

软路由设置

2009-12-17 15:28:02

2009-02-27 13:12:00

2011-07-26 17:11:44

2011-03-25 10:04:51

2010-12-14 09:34:48

NagiosWindows 200

2011-07-25 14:27:53

服务器

2010-03-30 16:54:53

升级Win2008 R

2011-03-24 10:08:39

Nagios监控oracle

2011-03-04 10:47:06

Nagios监控Sphinx

2011-03-28 17:18:57

nagios监控iostat

2011-03-21 14:53:27

Nagios监控Linux

2010-05-26 15:21:01

2011-07-08 16:04:27

2011-03-21 14:43:42

2012-02-22 22:21:15

nagios开源

2011-03-22 09:07:12

nagios监控oracle

2011-03-25 09:34:34

Nagios网络监控

2011-03-28 17:35:44

NagiosNRPE监控

2011-03-24 10:59:09

Nagios监控Mysql
点赞
收藏

51CTO技术栈公众号