how to monitor a linux process that isnt a daemon snmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagios156
Posts: 6
Joined: Wed Mar 25, 2020 7:58 am

how to monitor a linux process that isnt a daemon snmp

Post by nagios156 »

Info on Nagios Server
-Running As a VM in Vcenter cluster
- RHEL 7.7 64bit
- Manual install of XI
- No special configuration or proxies
-snmp v2c version
-other Linux servers being monitored are RHEL 6 and 7

I am looking for a way to be able to monitor a linux process with snmp instead of using an agent.
Other previous monitoring software we have used we were able to search for said process name and monitor that running process even though it may not be a daemon. When i go through the snmp wizard with nagios i can only grab daemons for services to monitor. Can someone help me on this?
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: how to monitor a linux process that isnt a daemon snmp

Post by jdunitz »

If you follow the document we have for setting linux SNMP monitoring:

https://assets.nagios.com/downloads/nag ... g-SNMP.pdf

you can monitor any process you want. There's nothing particularly different about a daemon vs. a "regular" process.

When I tested this, using the default (very long) snmpd.conf file, the Nagios SNMP plugin appeared to be able to reach the SNMP daemon on the remote machine, but wasn't able to gather process info (or other things).

Using the one-line config as in the document, it works correctly. You may need to start there and add more items to your snmpd.conf file to conform to your local requirements, but at a minimum, you can do what you're hoping to do with the SNMP plugin wizard.

Hope that's helpful!

--Jeffrey
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
nagios156
Posts: 6
Joined: Wed Mar 25, 2020 7:58 am

Re: how to monitor a linux process that isnt a daemon snmp

Post by nagios156 »

After doing some more digging i did realize that it does pick up all running processes. Part of my problem i am trying to solve is to monitor other processes under the java executable but of course nagios just see's java . Example is websphere application server. We have cluster of those and need to make sure the node agents and on demand routers stay running.

ps -ef | grep nodeagent
wasadmin 2714 1 0 Feb18 ? 04:08:49 /opt/websphere/appserver/java/bin/java -Xmaxt0.5 -Dwas.status.socket=43084 -Dosgi.install.area=/opt/websphere/appserver -Dosgi.configuration.area=/opt/websphere/appserver/profiles/AppSrv01/servers/nodeagent
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: how to monitor a linux process that isnt a daemon snmp

Post by jdunitz »

There are a few plugins that can get inside WebSphere with JMX and see some of the stuff you're talking about.
This requires more than just SNMP, of course, but it seems like it'd be the solution to your problem.

https://exchange.nagios.org/directory/P ... /Websphere
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
nagios156
Posts: 6
Joined: Wed Mar 25, 2020 7:58 am

Re: how to monitor a linux process that isnt a daemon snmp

Post by nagios156 »

Thanks i will give those a try and see if i have any better outcome.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: how to monitor a linux process that isnt a daemon snmp

Post by jdunitz »

Let me know how it goes, and if I can provide more help, or lock the thread.

Thanks!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked