I'm using the Microsoft SNMP protocol to monitor the state of a "GivenService" via the Service Table so that I can build a dashboard to report the state of this "GivenService" across a few servers in the monitored infrastructure - all fine as long as the service status is "Running" on the target Windows OS:
I've configured the alarm template to provide a warning for any other value of the parameter "Svc Oper. State" shown above.
Here's the issue... when the state is no longer "Active", I cannot retrieve the entry in the table:
Any hint from any Wintel Wizard, perhaps to configure the service in a different way?
Wondering if it is a limitation of the Microsoft SNMP agent - if so, is it worth deploying the WMI-based protocol to monitor the state of a given service across different Windows servers?
Or would it be the same?
Any steer will be helpful.
We're using the WMI driver to monitor windows machines. We have a few where we alarm on a missing process, you do need to make sure "Auto Clear Task Manager" is set to off.
The process of interest needs to have been seen since the element started, otherwise it won't detect that it is missing.
In the alarm template, alarm on task name, set a filter for the appliaction of interest (e.g. Notepad*) then in the green status box have the same again, and in the red status box have "Not Found".
This seems to be a quirk of both Windows, and the driver. Namely, when polling the OIDs for services on the host, Windows only replies with the active services. This results in the Services Table Config (on the Service Monitor Config page), which doesn't retain deleted keys as it is an SNMP table. The enabled rows are then pushed to the Services Table.
I presume the developers at the time assumed that inactive services would be reported as well, or Windows has changed its behaviour over time. The problem with retaining inactive services is that we won't know if the service is stopped, or actually deleted. So although it's possible to solve this in the driver, it may need manual maintenance to then remove deleted services.