zabbix

snmp监控服务器客户端需安装net-snmp net-snmp-utils 然后修改/etc/snmp/snmpd.conf 启动snmpd服务

自定义监控项目:需在agent端的zabbix_agentd.conf里添加UserParameter=nginx.active,/usr/bin/curl -s http://192.168.52.136:81/status|grep Active|cut -d: -f2或在/etc/zabbix_agentd.conf.d/目录下touch nginx.conf 然后将UserParameter=nginx.active,/usr/bin/curl -s http://192.168.52.136:81/status|grep Active|cut -d: -f2添加到nginx.conf 最后在zabbix_agentd.conf里Include /opt/local/zabbix/etc/zabbix_agentd.conf.d/*.conf  在zabbix主机管理里自定义项的键值填写nginx.active

posted @ 2016-12-26 14:29  howhy  阅读(147)  评论(0编辑  收藏  举报