본문 바로가기

Monitoring Tools/Zabbix

(25)
16. [zabbix agent] 스위치 템플릿 1. alteon L4 6420 2. fortinet (fg-3000d) 3. netapp storage (FAS8020A) 4. wapples 10000 5. hp pro v1910
15. [zabbix agent] SW huawei CE5850 for snmp zabbix server template
14. [zabbix agent] mysql 1. zabbix_agentd.conf UserParameter=mysql.ping[*], /usr/local/mysql/bin/mysqladmin -h"$1" -P"$2" -u"$3" -p"$4" ping UserParameter=mysql.get_status_variables[*], /usr/local/mysql/bin/mysql -h"$1" -P"$2" -u"$3" -p"$4" -sNX -e "show global status" UserParameter=mysql.version[*], /usr/local/mysql/bin/mysqladmin -s -h"$1" -P"$2" -u"$3" -p"$4" version UserParameter=mysql.db.discovery[*], /usr/local/my..
13. [zabbix agent] keepalived CentOS7 기준 1. keepalived.conf global_defs { # Keepalived process identifier smtp_server localhost smtp_connect_timeout 60 snmp_socket tcp:localhost:705 enable_snmp_checker enable_snmp_rfcv3 enable_snmp_rfcv2 enable_snmp_vrrp enable_snmp_rfc enable_traps } 2. keepalived option > /etc/sysconfig/keepalived KEEPALIVED_OPTIONS="-D --snmp" 4. snmpd.conf > /etc/snmp/snmpd.conf master agentx 5. snmpd op..
12. [ zabbix agent] solr 1. solr jmx -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 2. zabbix server template
11. [zabbix agent] kafka 1. kafka jmx -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9999 2. zabbix server template
10. [zabbix agent] bind 1. zabbix_agentd.conf UserParameter=bind.discoverzones,/usr/local/etc/scripts/bind-stats.py discoverzones UserParameter=bind.json,/usr/local/etc/scripts/bind-stats.py json UserParameter=bind.jsonzone[*],/usr/local/etc/scripts/bind-stats.py jsonzone -z $1 UserParameter=bind.counter[*],/usr/local/etc/scripts/bind-stats.py counter -c $1 UserParameter=bind.zonecounter[*],/usr/local/etc/scripts/bind-..
9. [zabbix agent] nginx http response code and request time 1. zabbix_agentd.conf UserParameter=nginx_code_status[*],/usr/local/etc/scripts/nginx_code.sh "$1" 2. nginx_code.sh #!/bin/sh file="/tmp/zbx_nginx_result" case "$1" in 200) cat $file | awk -F':' '{print $1}' ;; 300) cat $file | awk -F':' '{print $2}' ;; 400) cat $file | awk -F':' '{print $3}' ;; 500) cat $file | awk -F':' '{print $4}' ;; reqtime) cat $file | awk -F':' '{print $5}' ;; esac 3. cro..
8. [zabbix agent] jstat jmx remote 설정 외 jstat을 이용한 수집 1. zabbix_agentd.conf UserParameter=jstat[*],/usr/local/etc/scripts/01.jstat.sh "$1" "$2" 2. 01.jstat.sh #!/bin/sh dir="/usr/local/java/bin" dir2="/usr/local/etc/scripts/java_pid" name="$1" stat="$2" if [ "$stat" = "name" ] ; then pid=`$dir/jps -v | grep "$name" | awk '{print $1}'` echo $pid > $dir2/$name else pid=`cat $dir2/$name` fi case "$stat" in "heap_max") res..
7. [zabbix agent] varnish 1. zabbix_agent2.conf UserParameter=varnishstat[*],/etc/zabbix/scripts/varnishstat.sh "$1" 2. varnishstat.sh #!/bin/sh if [ $1 ] ; then /usr/bin/varnishstat -1 | grep "$1 " | awk '{print $2}' fi 3. zabbix server template