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.
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 18.104.22.168.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:
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?SNMP Monitor WizardSNMPv2-SMI :: enterprises
enterprises MIB SNMPv2-SMI Oid 22.214.171.124.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.3Sample Value
nbsvcmonComparison Rules :: String
Please enter the text pattern matching Rules that the SNMP Object should match.
I see process names instead of just 1s and 0s under value.
Can you please post a screenshot of this?
Ive tried all i could but i cant paste the screenshot.
What i have listed are the services running on the server, instead of numbers.
I select on and i have the page that was pasted above
when you reply- select the options tab and then add the screenshot as an attachment.