Use Zabbix to montior any windows service

简介:

Use Zabbix to montior any windows service 

http://blog.smartcore.net.au/screencast-monitor-any-windows-service-with-zabbix/ 


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.


Code used in this screencast


zabbix_agentd.conf

UserParameter=windows.services,"C:\Program Files\Zabbix Agent\services.exe"


Copy Service to zabbix folder:

copy c:\Windows\System32\services.exe "c:\Program Files\Zabbix Agent"\


find a windows PID from port number 

netstat ---| findstr 0.0:1197



wKiom1Z7iVGhzhoxAABndk-GcGU951.png


wKiom1Z7iVGiEIWnAAAfLsuh9Ck107.png



本文转自 zhangfang526 51CTO博客,原文链接:http://blog.51cto.com/zhangfang526/1727840


相关文章
|
5月前
|
Linux C++ Windows
【Azure 应用服务】Azure App Service(Windows)环境中如何让.NET应用调用SAP NetWeaver RFC函数
【Azure 应用服务】Azure App Service(Windows)环境中如何让.NET应用调用SAP NetWeaver RFC函数
【Azure 应用服务】Azure App Service(Windows)环境中如何让.NET应用调用SAP NetWeaver RFC函数
|
2月前
|
安全 Windows
【Azure Cloud Service】在Windows系统中抓取网络包 ( 不需要另外安全抓包工具)
通常,在生产环境中,为了保证系统环境的安全和纯粹,是不建议安装其它软件或排查工具(如果可以安装,也是需要走审批流程)。 本文将介绍一种,不用安装Wireshark / tcpdump 等工具,使用Windows系统自带的 netsh trace 命令来获取网络包的步骤
74 32
|
2月前
|
C# Windows
【Azure App Service】在App Service for Windows上验证能占用的内存最大值
根据以上测验,当使用App Service内存没有达到预期的值,且应用异常日志出现OutOfMemory时,就需要检查Platform的设置是否位64bit。
47 11
|
5月前
|
Java 应用服务中间件 开发工具
[App Service for Windows]通过 KUDU 查看 Tomcat 配置信息
[App Service for Windows]通过 KUDU 查看 Tomcat 配置信息
|
5月前
|
Java 应用服务中间件 Windows
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
|
5月前
|
PHP Windows
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
|
5月前
|
PHP 开发工具 git
【Azure 应用服务】在 App Service for Windows 中自定义 PHP 版本的方法
【Azure 应用服务】在 App Service for Windows 中自定义 PHP 版本的方法
|
5月前
|
网络安全 API 数据安全/隐私保护
【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)
【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)
|
5月前
|
Shell PHP Windows
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
|
5月前
|
存储 Linux Windows
【应用服务 App Service】App Service For Windows 如何挂载Storage Account File Share 示例
【应用服务 App Service】App Service For Windows 如何挂载Storage Account File Share 示例

推荐镜像

更多