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