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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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".
Former Nagios employee
https://www.mcapra.com/
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

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

Post 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?
Previous Nagios employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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
Locked