I have setup the .xml file used by jmx.py to read the PID to examine from a file.
I then have a script that runs once an hour to update the PID in /var/tmp/APP1.pid. This is to ensure that stats are collected even if the app is restarted.
However, it doesn't appear that jmx.py is checking /var/tmp/APP1.pid each time it runs.
After starting splunk, JMX correctly monitors PID 781.
cat /var/tmp/APP1.pid
781
When the APP starts, the PID is updated as expected:
cat /var/tmp/APP1.pid
14289
But JMX logs this error in splunkd.log:
ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/discovery-jmx/bin/jmx.py" host=, jmxServiceURL=, jmxport=0, jvmDescription=APP1-Jboss, processID=781,stanza=jmx://discovery,systemErrorMessage="No such process"
At this point I have to restart Splunk to get it to start monitoring correctly.
Have i set this up incorrectly ?
Thanks
... View more