dont think you can monitor a process directly on a unix server.
one solution is to write a script that checks ps output and returns 0 or 1 state for not running/running, then execute the script when polling SNMP. this would be indirect, but you will get state of a process.
Hi elemzy
Here's how I'm monitoring processes on Ubuntu servers:
- Edit /etc/snmp/snmpd.conf and add a 'proc NAME' entry, where NAME is the name of the process you want to monitor as returned by a 'ps -e' command.
- Restart your snmpd daemon: /etc/init.d/snmpd restart
- In ipMonitor, navigate to your Unix server, add a new Custom SNMP (Wizard) monitor, specify an OID of 1.3.6.1.4.1.2021.2 and click Next. You should get something like this:
The highlighted fifth entry indicates that there is one process running. Click Select on that entry, change the comparison mode to "Pass if Value matches a set of Boolean Rules" and specify Value is == 1.
If you're still having problems matching, try shutting the process down and verify that the fifth entry becomes a zero:
HTH
Rgds, Simon
hello simonpt
I see process names instead of just 1s and 0s under value. I selected one process as an example to be monitored. When I click on the select i see the following page. I do not see "Pass if Value matches a set of Boolean Rules" as suggestyed above. What should i choose next?
Name | enterprises |
MIB | SNMPv2-SMI |
Oid | 1.3.6.1.4.1.2021.2.1.2.3 |
Path | iso . org . dod . internet . private . enterprises . 2021 . 2 . 1 . 2 . 3 |
Index / Unknown | 2021.2.1.2.3 |
nbsvcmon
Please enter the text pattern matching Rules that the SNMP Object should match.
Value will | |
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.