Hi everyone,
I am trying to figure out a way to monitor Windows Failover Clusters’ Cluster Shared Volume disc space via SNMP. This is not something that can be monitored by simple SNMP monitoring as the disk/volume in questions is not part of the local system of the Windows server, rather shared by other failover nodes. (mounted under C:\ClusterStorage folder).
So far what I am able to do is to gather the disc space information such as Name, Size, Path, Usedspace, Freespace and PercentFree information by using the PowerShell script from the link below.
and export in to a CSV file from which point I run another script to invoke a windows command (such as net stop snmp which at least brings the server with the issue to LibreNMS to the WebUI).
However, what I wish to accomplish here is to monitor an App that runs as a Service in Windows server. I know that there are tons of Apps for monitoring under the Applications section of the monitored host in LibreNMS but none seems suitable for Windows server and I don’t really know how to build a new one and add there.
Can anyone tell me how to monitor a Windows server Service with an App?
I ended up installing NSClient one the failover node and monitoring it as a service, under Services in NMS.
Here is the PowerShell script I run in the Task Scheduler in the Windows server (Failover Cluster node). It stops the NSClient service if CSV free space percentage drops below 10 percent, which in return shows up as failed service in NMS. Not the best solution but until something else comes up it will have to do.