An overview of how to monitor any Windows service with Zabbix.
In this comprehensive screencast guide, we will cover how to monitor specific services on windows and alert and graph on them within Zabbix.
This is particularly useful if you have an important application installed on your windows server that has a dependent service that is required to always be in a running state. It is very useful to know when this service goes down and how frequently. In addition if required and assuming you have enabled remote commands on your zabbix agent, you could configure the zabbix server to restart the failed service automatically upon detection.
The great thing about this method is that it will work regardless of the application as long as it used a windows service. Below the video you will find all the code and commands used within the screencast to assist you in getting it to work in your own environments.
Watch on you tube in HD 720P
Highlights:
- Zabbix agent on windows configuration.
- How to find a service from a port number and PID.
- Zabbix server item setup.
- Zabbix server trigger setup.
- Testing and verifying that it works.
Code used in this screencast
zabbix_agentd.conf
UserParameter=windows.services,"C:\Program Files\Zabbix Agent\services.exe"
copy services.exe to zabbix folder
copy c:\Windows\System32\services.exe "c:\Program Files\Zabbix Agent"\
find a windows PID from port number
netstat -o -n -a | findstr 0.0:1197
Screencast: Monitor any windows service with Za...
Nov 09, 2013 @ 19:23:14
[…] An overview of how to monitor any Windows service with Zabbix. Watch on you tube in HD 720P Highlights: Zabbix agent on windows configuration. How to find a service from a port number and PID. […]
Apr 23, 2014 @ 17:55:09
https://github.com/vintagegamingsystems/Windows-Service-Discovey-Zabbix/blob/master/servdisc.ps1
Jul 23, 2014 @ 05:06:48
This has been very very helpful! I have one question, is there a way to display the service name in the trigger name field without typing it? maybe {SERVICE.NAME} or something similar?