Hi,
I'm trying to use an external check to verify JMX parameters. I'm using jmxclient in order to do it.
I've build a script like this:
/usr/lib/jvm/java/bin/java -jar /home/zabbix/jmxclient.jar usr: pass host: port $1 2>&1 | awk -F: '{print $NF}'
If I execute the script manually (as zabbix user) it will run like a charm:
./jmx.sh java.lang:type=Threading\ ThreadCount
So, I created a new item in zabbix:
Description:ThreadCount
Type: External check
Key: jmx.sh[java.lang:type=Threading\ ThreadCount]
The script is being called, but I'm receiving an error from jmxclient: Key properties cannot be empty
This error occurs when jmxclient isn't supplied with a mbean to query.
So, I'm guessing that my item isn't properly configured.
What is wrong with my item?
TIA,
Bob
I'm trying to use an external check to verify JMX parameters. I'm using jmxclient in order to do it.
I've build a script like this:
/usr/lib/jvm/java/bin/java -jar /home/zabbix/jmxclient.jar usr: pass host: port $1 2>&1 | awk -F: '{print $NF}'
If I execute the script manually (as zabbix user) it will run like a charm:
./jmx.sh java.lang:type=Threading\ ThreadCount
So, I created a new item in zabbix:
Description:ThreadCount
Type: External check
Key: jmx.sh[java.lang:type=Threading\ ThreadCount]
The script is being called, but I'm receiving an error from jmxclient: Key properties cannot be empty
This error occurs when jmxclient isn't supplied with a mbean to query.
So, I'm guessing that my item isn't properly configured.
What is wrong with my item?
TIA,
Bob
Comment