D
D
Denis Kolmykov2015-07-11 17:06:51
System administration
Denis Kolmykov, 2015-07-11 17:06:51

Monitoring Windows Services via SNMP?

I am experimenting with checking the operation of services in Windows through Zabbix without using an agent. The following data can be obtained via SNMP:

$ snmpwalk -v 2c -c public 10.0.XXX.XXX LanMgr-Mib-II-MIB::svSvcName
LanMgr-Mib-II-MIB::svSvcName."Server" = STRING: "Server"
LanMgr-Mib-II-MIB::svSvcName."Netlogon" = STRING: "Netlogon"
LanMgr-Mib-II-MIB::svSvcName."IP Helper" = STRING: "IP Helper"
LanMgr-Mib-II-MIB::svSvcName."Telephony" = STRING: "Telephony"
LanMgr-Mib-II-MIB::svSvcName."DNS Client" = STRING: "DNS Client"
LanMgr-Mib-II-MIB::svSvcName."DHCP Client" = STRING: "DHCP Client"
LanMgr-Mib-II-MIB::svSvcName."DHCP Server" = STRING: "DHCP Server"
LanMgr-Mib-II-MIB::svSvcName."Workstation" = STRING: "Workstation"
LanMgr-Mib-II-MIB::svSvcName."SNMP Service" = STRING: "SNMP Service"
....

Based on them, I created an item of type "SNMPv2 agent". Made a key, for example:
LanMgr-Mib-II-MIB::svSvcOperatingState["index","LanMgr-Mib-II-MIB::svSvcName","DHCP Client"]

If the service is in the "Running" state, then everything is fine and I get the response "1".
If the service is turned off, then the record about this service itself disappears in the SNMP output, accordingly, an error is displayed in Zabbix that the snmp request failed: "SNMP error: (noSuchName) There is no such variable name in this MIB".
Tried to make a trigger for lack of data: {Custom Test Template:DHCP_Client_Service.nodata(60s)}=1 - doesn't work.
Question: Is it possible in Zabbix to create a trigger for a data retrieval error? Or what is the best way to monitor Windows services without using a client?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konkase, 2015-07-12
@Konkase

In zabbix 2.2, the function of notifications about unsupported items has appeared - https://www.zabbix.com/documentation/2.2/manual/co...

A
athacker, 2015-07-13
@athacker

Zabbix can monitor the status of services without SNMP. Smoke for items of the service_state[service] type in the Zabbix documentation: https://www.zabbix.com/documentation/2.2/manual/co...
Zabbix can take performance data in the Zabbix system directly from the Windows Performance monitor. There is a somewhat perverted institution of parameters, but in principle, nothing supernatural.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question