From 94b3be1f228af75d2ed1b4a549c7977c917af337 Mon Sep 17 00:00:00 2001 From: Damian Bogel Date: Mon, 21 Sep 2015 13:49:15 -0400 Subject: [PATCH 1/2] Basic OS metrics for Windows (using WMI plugin). --- wmi/etc/collectd.d/os.conf | 81 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 wmi/etc/collectd.d/os.conf diff --git a/wmi/etc/collectd.d/os.conf b/wmi/etc/collectd.d/os.conf new file mode 100644 index 0000000..1a02af9 --- /dev/null +++ b/wmi/etc/collectd.d/os.conf @@ -0,0 +1,81 @@ +LoadPlugin wmi + + + + Statement "SELECT * FROM Win32_Processor" + + Type "cpu" + Value "LoadPercentage" "value" + TypeInstance "LoadPercentage" + PluginInstanceSuffixFrom "ProcessorId" + + + + + + + Statement "SELECT * FROM Win32_OperatingSystem" + + Type "memory" + TypeInstance "FreePhysicalMemory" + Value "FreePhysicalMemory" "value" + + + Type "memory" + TypeInstance "TotalVisibleMemorySize" + Value "TotalVisibleMemorySize" "value" + + + + + + + Statement "SELECT * FROM Win32_PageFileUsage" + + Type "memory" + TypeInstance "CurrentUsage" + Value "CurrentUsage" "value" + + + Type "memory" + TypeInstance "AllocatedBaseSize" + Value "AllocatedBaseSize" "value" + + + + + + + Statement "SELECT * FROM Win32_LogicalDisk WHERE DriveType = 3" + + Type "memory" + TypeInstance "FreeSpace" + Value "FreeSpace" "value" + + + Type "memory" + TypeInstance "Size" + Value "Size" "value" + + + + + + + Statement "SELECT * FROM Win32_PerfFormattedData_Tcpip_TCPv4" + + Type "tcp_connections" + TypeInstance "open_v4" + Value "ConnectionsEstablished" "value" + + + + Statement "SELECT * FROM Win32_PerfFormattedData_Tcpip_TCPv6" + + Type "tcp_connections" + TypeInstance "open_v6" + Value "ConnectionsEstablished" "value" + + + + From 04ddb4baf2fa5976abc8bebe429e32b732b9cb90 Mon Sep 17 00:00:00 2001 From: Damian Bogel Date: Mon, 21 Sep 2015 13:49:28 -0400 Subject: [PATCH 2/2] IIS metrics for Windows (using WMI plugin) --- wmi/etc/collectd.d/iis.conf | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 wmi/etc/collectd.d/iis.conf diff --git a/wmi/etc/collectd.d/iis.conf b/wmi/etc/collectd.d/iis.conf new file mode 100644 index 0000000..d390b3a --- /dev/null +++ b/wmi/etc/collectd.d/iis.conf @@ -0,0 +1,68 @@ +LoadPlugin wmi + + + + Statement "SELECT * FROM Win32_PerfFormattedData_W3SVC_WebService WHERE Name = \"_Total\"" + + + Type "counter" + TypeInstance "TotalGetRequests" + Value "TotalGetRequests" "value" + + + + Type "counter" + TypeInstance "TotalPostRequests" + Value "TotalPostRequests" "value" + + + + Type "counter" + TypeInstance "TotalheadRequests" + Value "TotalHeadRequests" "value" + + + + Type "counter" + TypeInstance "TotalPutRequests" + Value "TotalPutRequests" "value" + + + + Type "counter" + TypeInstance "TotalDeleteRequests" + Value "TotalDeleteRequests" "value" + + + + Type "counter" + TypeInstance "TotalOptionsRequests" + Value "TotalOptionsRequests" "value" + + + + Type "counter" + TypeInstance "TotalTraceRequests" + Value "TotalTraceRequests" "value" + + + + Type "counter" + TypeInstance "TotalConnectionAttemptsAllInstances" + Value "TotalConnectionAttemptsAllInstances" "value" + + + + Type "counter" + TypeInstance "TotalBytesTransferred" + Value "TotalBytesTransferred" "value" + + + + Type "counter" + TypeInstance "CurrentConnections" + Value "CurrentConnections" "value" + + + +