Need help with CHECK_JMX value
Posted: Fri Sep 01, 2017 4:33 am
Hey everyone.
I'am trying to setup some JMX monitors, but can't get it to work. The check is working fine but the value is a long string and not just value. So my question is how do I search for a specific word and value in the long string?
check_jmx -a '-U service:jmx:rmi:///jndi/rmi://192.168.197.25:8099/jmxrmi -O "STEP Monitoring:name=connectionStatuses" -A ConnectionStatuses -onlyvalue'
JMX OK - ConnectionStatuses={DB.connection=1, HST.connection=1, HST.keepalive=0, net.10.220.4.31-connection=0, net.10.220.4.31-keepalive=228, net.10.220.4.32-connection=0, net.10.220.4.32-keepalive=2, net.10.220.4.33-connection=0, net.10.220.4.33-keepalive=29, net.10.220.4.34-connection=0, net.10.220.4.34-keepalive=29, net.10.220.4.35-connection=0, net.10.220.4.35-keepalive=4, net.10.220.4.36-connection=0, net.10.220.4.36-keepalive=206, eros.10.220.5.34-connection=0, eros.10.220.5.34-keepalive=5, eros.10.220.5.35-connection=0, eros.10.220.5.35-keepalive=1, eros.10.220.5.36-connection=0, eros.10.220.5.36-keepalive=0, eros.10.220.5.37-connection=0, eros.10.220.5.37-keepalive=0}
I want to setup a monitor that alerts me if eros.10.220.5.34-keepalive=5 is greater than 300, i have tried -vvvv -w xx -c xx but that did not work.
Thanks in advance
I'am trying to setup some JMX monitors, but can't get it to work. The check is working fine but the value is a long string and not just value. So my question is how do I search for a specific word and value in the long string?
check_jmx -a '-U service:jmx:rmi:///jndi/rmi://192.168.197.25:8099/jmxrmi -O "STEP Monitoring:name=connectionStatuses" -A ConnectionStatuses -onlyvalue'
JMX OK - ConnectionStatuses={DB.connection=1, HST.connection=1, HST.keepalive=0, net.10.220.4.31-connection=0, net.10.220.4.31-keepalive=228, net.10.220.4.32-connection=0, net.10.220.4.32-keepalive=2, net.10.220.4.33-connection=0, net.10.220.4.33-keepalive=29, net.10.220.4.34-connection=0, net.10.220.4.34-keepalive=29, net.10.220.4.35-connection=0, net.10.220.4.35-keepalive=4, net.10.220.4.36-connection=0, net.10.220.4.36-keepalive=206, eros.10.220.5.34-connection=0, eros.10.220.5.34-keepalive=5, eros.10.220.5.35-connection=0, eros.10.220.5.35-keepalive=1, eros.10.220.5.36-connection=0, eros.10.220.5.36-keepalive=0, eros.10.220.5.37-connection=0, eros.10.220.5.37-keepalive=0}
I want to setup a monitor that alerts me if eros.10.220.5.34-keepalive=5 is greater than 300, i have tried -vvvv -w xx -c xx but that did not work.
Thanks in advance