Page 1 of 1
how to monitor a linux process that isnt a daemon snmp
Posted: Wed Mar 25, 2020 1:00 pm
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?
Re: how to monitor a linux process that isnt a daemon snmp
Posted: Wed Mar 25, 2020 2:14 pm
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
Re: how to monitor a linux process that isnt a daemon snmp
Posted: Thu Mar 26, 2020 2:31 pm
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
Re: how to monitor a linux process that isnt a daemon snmp
Posted: Thu Mar 26, 2020 5:40 pm
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
Re: how to monitor a linux process that isnt a daemon snmp
Posted: Tue Mar 31, 2020 9:00 am
by nagios156
Thanks i will give those a try and see if i have any better outcome.
Re: how to monitor a linux process that isnt a daemon snmp
Posted: Tue Mar 31, 2020 4:51 pm
by jdunitz
Let me know how it goes, and if I can provide more help, or lock the thread.
Thanks!