首页 » Monitor » Cacti » Cacti1.2.x新版教程之监控一台Windows2008主机

Cacti1.2.x新版教程之监控一台Windows2008主机

 
文章目录

Cacti1.2.x新版教程之监控一台Windows2008主机(吴昊博客独家首发)(六)

Cacti想要接入一台Windows系统的监控,同样也需要在被监控服务器上安装SNMP服务,还需要借助下SNMP Informant软件,用于采集服务器的信息,SNMP Informant区分为Standard(标准版)和Advanced(高级版),即免费版和收费版。

SNMP Informant Standard支持的操作系统版本:

XP *
Vista
Windows 7
Server 2003 *
Server 2008
Server 2012

SNMP Informant Advanced支持的操作系统版本:

XP *
Vista
Windows 7
Server 2000 *
Server 2003 *
Server 2008
Server 2012
Server 2016

另外,标准版只支持基本的信息采集,如CPU、网络、磁盘等,高级版更加全面些,对于我们正常监控来说,标准版足够了,土豪随意。

本篇教程基于Cacti1.2.4版本验证通过,其他版本自测!

Windows2008配置

1、先在windows机器上安装snmp服务

打开服务器管理器-添加功能-勾选SNMP服务

2、配置SNMP Service服务

在服务中找到SNMP Service,双击打开

在安全选项卡里添加社区名称,即Cacti中SNMP团体名称,名称可自定义(默认public)

如果看不到安全选项,请参考:https://blog.whsir.com/post-4554.html

选择接受来自任何主机的SNMP数据库包(安全起见,你也可以添加固定的地址)

3、防火墙配置

新建入站规则,需要开启UDP161端口

至此snmp服务就安装完成了,接下来继续安装informant-std-17

4、安装informant-std-17

下载地址:https://down.whsir.com/downloads/informant-std-17.zip

如果运行informant-std-17.exe时看到下面提示信息,可能是你SNMP服务并没有安装,正常安装snmp服务后不会出现此提示

The installer has failed to determine the state of the Microsoft Windows SNMP Service. The Microsoft Windows SNMP software must be installed prior to instaling the SNMP Informant agents. Please refer to the Windows Help documantation for more information on how to setup the Windows SNMP software.
Do you wish to continue with the installation?

至此Windows端配置完成

Cacti控制台配置

1、下载模板文件并导入模板

这个模板文件是经过吴昊博客二次修改后的,不是网上流传的那些

https://down.whsir.com/downloads/template.zip

选择template/cacti_host_template_windows_host_-_snmp_informant.xml导入,注意“仅浏览导入”需要关闭

2、上传resource

将模板文件压缩包里resource/snmp_queries的内容上传到/data/www/cacti/resource/snmp_queries目录中

3、添加设备

在Cacti管理设备中,创建一个新的设备

添加后左上角可以看到以下信息就表示添加成功了

添加数据查询,在状态中都可以看到成功的项目才可以,如果成功的项目为0,请点击右边的绿色圆圈进行刷新

保存后,在右上角为设备创建图形,勾选对应的项目然后创建图形,最后在管理中找到图形将其放到树上即可

稍等几分钟后即可在图形树上看到图形

原文链接:Cacti1.2.x新版教程之监控一台Windows2008主机,转载请注明来源!

0