Advertisements

How to check that a specific process is running, ‘the dude’

Available: if(array_find(oid_column(“1.3.6.1.2.1.25.4.2.1.2”), “db2sec.exe”)>0, 1, -1)
Error: if(array_find(oid_column(“1.3.6.1.2.1.25.4.2.1.2”), “db2sec.exe”)>0, “”, “DB2_db2sec.exe not detected by SNMP probe”)
Value: 1
Unit: running
Rate: none

Change “db2sec.exe” with the name of the service you like to monitor. One thing I also noticed is, that the name is case-sensitive! Write the service name the same as you see it in the Windows Task Manager.

Advertisements

One Response

  1. hi mellerbeck,
    this oid is good to know if a windows service is running or not.
    but if the service is suspended, for this test result running !
    many reports the other method that use the services table:

    Available: if(array_find(oid_column(“1.3.6.1.4.1.77.1.2.3.1.1″),”MyService”)>0, 1, 0)
    Error: if(array_find(oid_column(“1.3.6.1.4.1.77.1.2.3.1.1″),”MyService”)>0, “”, “MyService not detected by SNMP probe”)
    Value: 1
    Unit:
    Rate: none

    This method return only -1 as result.
    do you known a method to access a service running status correctly?
    examining oid table structure for services …array_find search for service name, but the service status is a property of table entry.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: