windows_exporter/collector
Steve Zook c156f2bcbe protect against emtpy wmi query result sets
If an WMI query were to return an empty result set, trying to access the
first element in the result set would result in a `panic: runtime error:
index out of range` error.

add logic to explicitly check if the result set size is 0 and return an
error rather.

Fixes https://github.com/martinlindhe/wmi_exporter/issues/240
2018-08-07 15:47:39 -04:00
..
ad.go protect against emtpy wmi query result sets 2018-08-07 15:47:39 -04:00
cpu.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
cs.go protect against emtpy wmi query result sets 2018-08-07 15:47:39 -04:00
dns.go protect against emtpy wmi query result sets 2018-08-07 15:47:39 -04:00
hyperv.go Harmonize query call layout 2018-06-06 11:35:13 +02:00
iis.go protect against emtpy wmi query result sets 2018-08-07 15:47:39 -04:00
logical_disk.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
msmq.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
mssql.go protect against emtpy wmi query result sets 2018-08-07 15:47:39 -04:00
net_test.go add network collector 2016-09-27 16:17:03 +02:00
net.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
netframework_clrexceptions.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
netframework_clrinterop.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
netframework_clrjit.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
netframework_clrloading.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
netframework_clrlocksandthreads.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
netframework_clrmemory.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
netframework_clrremoting.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
netframework_clrsecurity.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
os.go protect against emtpy wmi query result sets 2018-08-07 15:47:39 -04:00
process.go add worker process name to w3wp processes 2018-07-23 07:53:50 -04:00
service.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
system.go protect against emtpy wmi query result sets 2018-08-07 15:47:39 -04:00
tcp.go protect against emtpy wmi query result sets 2018-08-07 15:47:39 -04:00
textfile_test.go Strip carriage-returns from textfile input 2018-05-15 20:58:58 +02:00
textfile.go Strip carriage-returns from textfile input 2018-05-15 20:58:58 +02:00
vmware.go protect against emtpy wmi query result sets 2018-08-07 15:47:39 -04:00
wmi_test.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00
wmi.go Refactor wmi query generator to use wildcard selector 2018-06-06 10:38:36 +02:00