How do I create a probe to check status of service in Linux?

Hello,

I would like to create a probe to check to see if a service is running on a linux server. I saw in the forum that this could be done in windows with outlook.exe etc.. But I’m wondering if this is any different for linux.

I did an snmpwalk on the server and found tons of stuff. I found an OID that shows my running process, but I can’t use that because if the process fails for any reason, when i restart the service, the proc ID changes, therefore the OID changes and the dude says that the OID doesn’t exist.

I need to somehow probe an OID that never changes, and doesn’t necessarily look at the process ID, but just searches through the running services for the name of the service only. If it sees that the service name isn’t there, it notifies me that it’s down. Is there such an OID that just shows a list of running processes? And what would I have to write to make it search through it to find the service name? I’m no programmer so I can’t just write it on the fly.

Can anyone help please? I’m sure this would help others in the forum aswell.

Eric