Page 1 of 1

Is there a OID to check Java sub-processes with SNMP

Posted: Wed Oct 26, 2016 9:22 am
by dlukinski
Hello XI Support

Many of our application owners are asking if there is a way for java sub-processes via SNMP
This is not a standard NAGIOS feature. Please hep with custom OID and configurations if known to you?

Thank you

Re: Is there a OID to check Java sub-processes with SNMP

Posted: Wed Oct 26, 2016 11:34 am
by mcapra
This table is probably your best bet, specifically the hrSWRunName column:
http://www.net-snmp.org/docs/mibs/host. ... SWRunTable

On my machine I have the following Java process:

Code: Select all

[[email protected] ~]# ps aux | grep java
root      2709  0.3  0.9 3480216 35984 pts/0   Sl+  11:32   0:00 java -jar countup.jar
Part of my snmpwalk returns this when there is a java sub-process running on the remote machine (192.168.67.105):

Code: Select all

[root@nagiosxi var]# snmpwalk -mALL -v2c -c welcome2 192.168.67.105 | grep java
HOST-RESOURCES-MIB::hrSWRunName.2709 = STRING: "java"
The index changes every time the process is spawned, though; it happened to be 2709 this run. Evaluating whether or not a Java sub-process is running will likely involve processing the entire hrSWRunName column for a value matching "java".

Re: Is there a OID to check Java sub-processes with SNMP

Posted: Wed Oct 26, 2016 11:38 am
by avandemore
In addition to @mcapra's response:

Nagios is able to query any SNMP OID's which is defined on the client side, or work with JMX.

I'm not sure I understand you question entirely, can you provide a more detailed explanation of your use case?

Re: Is there a OID to check Java sub-processes with SNMP

Posted: Thu Oct 27, 2016 7:08 am
by dlukinski
avandemore wrote:In addition to @mcapra's response:

Nagios is able to query any SNMP OID's which is defined on the client side, or work with JMX.

I'm not sure I understand you question entirely, can you provide a more detailed explanation of your use case?
Thank you,
Please close this case