Greetings,
I am trying to (in my case) detect VIA SNMP whether SQL is running. We have the port check covered, but we also want to ensure that the SQLSERVER.exe service is actually running.
I've managed to detect formulate my item as:
HOST-RESOURCES-MIB::hrSWRunStatus["index","HOST-RESOURCES-MIB::hrSWRunName","sqlservr.exe"]
This gives a "1" if it finds it; and is nonexistent in 'latest data' when SQL is down.
This is part of the problem; as when SQL is down, that value in that table no longer exists & the item goes to 'Not Supported".
In this case; the nonexistence is an error and I would like to trap it as such, but to no avail.
I had attempted to use a ....sqlservr.exe.nodata(60)}=1 trigger to try to trap this to no avail.
I am trying to (in my case) detect VIA SNMP whether SQL is running. We have the port check covered, but we also want to ensure that the SQLSERVER.exe service is actually running.
I've managed to detect formulate my item as:
HOST-RESOURCES-MIB::hrSWRunStatus["index","HOST-RESOURCES-MIB::hrSWRunName","sqlservr.exe"]
This gives a "1" if it finds it; and is nonexistent in 'latest data' when SQL is down.
This is part of the problem; as when SQL is down, that value in that table no longer exists & the item goes to 'Not Supported".
In this case; the nonexistence is an error and I would like to trap it as such, but to no avail.
I had attempted to use a ....sqlservr.exe.nodata(60)}=1 trigger to try to trap this to no avail.

Comment