nginx request time (1) 썸네일형 리스트형 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.. 이전 1 다음