hello all:
I have several UserParameter scripts written in perl and bash that work fine. We have several Tomcat Java application servers that we need to monitor so a colleage wrote a small java program that captures the following Tomcat information:
The corresponding UserParameter entries in zabbix_agentd.conf:
testing from the client command line:
All is good so far. The problem is when I define these as items on the zabbix server, all of these return unsupported. Here are the log entries:
I even made the zabbix user on Giant a real user so that the JAVA_HOME gets set properly, and from the client this works fine:
The script works fine executed as the zabbix user, any ideas? all items are defined as float types.
/Christian
I have several UserParameter scripts written in perl and bash that work fine. We have several Tomcat Java application servers that we need to monitor so a colleage wrote a small java program that captures the following Tomcat information:
Code:
ztc.active_jobs ztc.is_alive ztc.queue_size ztc.tc_free_mem ztc.tc_max_mem ztc.tc_total_mem
Code:
UserParameter=ztc.active_jobs,/usr/lib/zabbix/ztc/ztc.sh -f active_jobs UserParameter=ztc.is_alive,/usr/lib/zabbix/ztc/ztc.sh -f is_alive UserParameter=ztc.queue_size,/usr/lib/zabbix/ztc/ztc.sh -f queue_size UserParameter=ztc.tc_free_mem,/usr/lib/zabbix/ztc/ztc.sh -f tc_free_mem UserParameter=ztc.tc_max_mem,/usr/lib/zabbix/ztc/ztc.sh -f tc_max_mem UserParameter=ztc.tc_total_mem,/usr/lib/zabbix/ztc/ztc.sh -f tc_total_mem
Code:
[root@giant ztc]# zabbix_agentd -p 2>/dev/null <snip...> ztc.active_jobs [t|0] ztc.is_alive [t|1] ztc.queue_size [t|0] ztc.tc_free_mem [t|15.16] ztc.tc_max_mem [t|1016.12] ztc.tc_total_mem [t|35.07]
Code:
6106:20070317:132513 Parameter [ztc.tc_free_mem] is not supported by agent on host [Giant] Old status [0] 6105:20070317:132523 Parameter [ztc.queue_size] is not supported by agent on host [Giant] Old status [0] 6110:20070317:132538 Parameter [ztc.is_alive] is not supported by agent on host [Giant] Old status [0] 6109:20070317:132538 Parameter [ztc.active_jobs] is not supported by agent on host [Giant] Old status [0] 6108:20070317:132539 Parameter [ztc.tc_total_mem] is not supported by agent on host [Giant] Old status [0] 6107:20070317:132540 Parameter [ztc.tc_max_mem] is not supported by agent on host [Giant] Old status [0]
Code:
[root@giant ztc]# su - zabbix -bash-3.00$ zabbix_agentd -p 2>/dev/null <snip...> ztc.active_jobs [t|0] ztc.is_alive [t|1] ztc.queue_size [t|0] ztc.tc_free_mem [t|15.21] ztc.tc_max_mem [t|1016.12] ztc.tc_total_mem [t|35.07]
/Christian
Comment