hello,
could someone help me with this trigger? this trigger compares current JVM memory usage (RSS) with the current total memory on the system. if the RSS memory of the JVM is greater than 70% of total memory, it should trigger an average severity alert. but it's not triggering.
OS: CentOS 5.7
zabbix: 1.8.10
here's the expression:
{Template_Java_OS_Resources:check_health[mem,java,rss].last(0)}>({Template_Linux:vm.memory.size[total].last(0)}*0.7)
check_health is a script on the system, called as a UserParameter in zabbix-agent.conf.
UserParameter=check_health[*],sudo /usr/local/bin/check_health.rb $1 $2 $3
we do indeed get data from this check:
webapp# su - zabbix
webapp$ sudo check_health.rb mem java rss
5541860
and given the total memory on the system,
webapp$ free | grep ^Mem | awk '{print $2}'
7347752
that trigger should be engaged, as 5541860 is greater than 70% of total memory.
thanks,
kallen
could someone help me with this trigger? this trigger compares current JVM memory usage (RSS) with the current total memory on the system. if the RSS memory of the JVM is greater than 70% of total memory, it should trigger an average severity alert. but it's not triggering.
OS: CentOS 5.7
zabbix: 1.8.10
here's the expression:
{Template_Java_OS_Resources:check_health[mem,java,rss].last(0)}>({Template_Linux:vm.memory.size[total].last(0)}*0.7)
check_health is a script on the system, called as a UserParameter in zabbix-agent.conf.
UserParameter=check_health[*],sudo /usr/local/bin/check_health.rb $1 $2 $3
we do indeed get data from this check:
webapp# su - zabbix
webapp$ sudo check_health.rb mem java rss
5541860
and given the total memory on the system,
webapp$ free | grep ^Mem | awk '{print $2}'
7347752
that trigger should be engaged, as 5541860 is greater than 70% of total memory.
thanks,
kallen
.
Comment