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
Is there a OID to check Java sub-processes with SNMP
Re: Is there a OID to check Java sub-processes with SNMP
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:
Part of my snmpwalk returns this when there is a java sub-process running on the remote machine (192.168.67.105):
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".
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.jarCode: Select all
[root@nagiosxi var]# snmpwalk -mALL -v2c -c welcome2 192.168.67.105 | grep java
HOST-RESOURCES-MIB::hrSWRunName.2709 = STRING: "java"Former Nagios employee
https://www.mcapra.com/
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
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?
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
Re: Is there a OID to check Java sub-processes with SNMP
Thank you,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?
Please close this case