On Nov 4, 2008, at 8:39 AM, Enrique Amigó wrote:

> I have followed the guide 
> http://www.opennms.org/index.php/HostResourcesSwRunMonitor 
>  to check proccesses, everything seems to be ok, because opennms  
> discovers the proccess, but when the proccess is down, in opennms  
> still seems to be up. I'm using opennms 1.6

Do this for us.  While the amarok process is not running, do an  
snmpwalk against the host where the service is discovered, and look  
for "amarok" in the output:

snmpwalk -v2c -c public 10.11.12.13 hrSWRunName | grep -i amarok

If you get any output, that indicates that the process exists.  The  
output would look like this:

HOST-RESOURCES-MIB::hrSWRunName.1509 = STRING: "amarok"

Take the instance identifier (in this case 1509) and see what the  
corresponding process state is:

snmpget -v2c -c public 10.11.12.13 hrSWRunStatus.1509

-jeff
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to