The in-house windows application run as a service on Windows Server.
Sometime it crashed without any notification, just need monitoring it by Check_MK.
- Check the service name by cmk command:
- Add service name into main.mk file:
- Restart OMD to adapt the changes:
- Re Scan the service on Host, add the new service from "Missing Services"
Run it from the OMD check_mk box:
For my site:(mdsmonitor):
/omd/sites/mdsmonitor/bin/cmk -d [Windows Host need to be monitor] |grep [Crasher_service]
The output should be something like:
Crasher_service running/auto mds_in_house_service
add 1 line into /opt/omd/sites/mdsmonitor/etc/check_mk/main.mk
inventory_services = ['Crasher_service']
su - mdsmonitor omd restart
Reference:https://mathias-kettner.de/checkmk_windows.html
No comments:
Post a Comment