Cacti 监控windows/linux
一、监控windows
1.导入windows监控模板
Cacti_SNMP_INFORMANT_STD_W32_Metrics.zip的包里面包含的文件就是脚本文件,其中snmp_informant_.xml开头的文件是需要放到cacti服务端的snmp_queries目录下,cacti_data_query开头的文件全都通过cacti页面console-Import Templates导入。
[root@localhost Cacti_SNMP]# cp snmp_informant_* /var/www/html/cacti/resource/snmp_queries/
页面导入:
2.windows 客户端配置
a)配置SNMP团体名称及允许cacti 主机IP
b)安装 informant-std-16 SNMP 扩展包(不然可能监控不到)
3.cacti 配置监控windows
浏览器输入IP/cacti进入cacti 主界面
添加监控主机
Console - Device - add
注意:团体名为客户端授权的SNMP团体名,本例设置为public
SNMP Information 不要显示error,否则snmp 有问题,可以通过
Snmpwalk -c public -v 1 IP 看是否显示信息,没输出SNMP配置有问题(根据上面配置排查)
二、监控linux
[root@localhost ~]# yum install net-snmp net-snmp-utils -y
[root@localhost etc]# vi /etc/snmp/snmpd.conf
com2sec notConfigUser 10.95.249.200 public
access notConfigGroup "" any noauth exact all none none
view all included .1 80
[root@localhost ~]# service snmpd restart
注:
10.95.249.200
为
cacti
主机
IP
其它的配置同windows一样!
转载于:https://blog.51cto.com/hundange/1150353