I'm trying to run telegraf on WIndows Server 2003 32 bit. When adding inputs.diskio, I got an exception "Invalid class"
Without this line in the conf, everything works fine.
# Read metrics about disk IO by device
[[inputs.diskio]]
Don't crash
Crash
Error message
2017-10-26T14:20:10Z E! error getting disk io info: Exception occurred. (Invalid class )
Is there a stack trace printed, if so can you add it?
@danielnelson No there's no stack trace. Only this message.
This is the complete output with the disk and diskio module enabled
* Plugin: inputs.swap, Collection 1
> swap,host=xxxx total=0i,used=0i,free=0i,used_percent=0 1509123178000000
000
> swap,host=xxxx in=0i,out=0i 1509123178000000000
* Plugin: inputs.cpu, Collection 1
* Plugin: inputs.cpu, Collection 2
> cpu,host=xxxx usage_user=0,usage_nice=0,usage_iowait=0,usage_irq=0,usag
e_steal=0,usage_system=0,usage_idle=100,usage_softirq=0,usage_guest=0,usage_gues
t_nice=0 1509123178000000000
> cpu,host=xxxx usage_idle=100,usage_iowait=0,usage_irq=0,usage_softirq=0
,usage_steal=0,usage_guest=0,usage_user=0,usage_system=0,usage_nice=0,usage_gues
t_nice=0 1509123178000000000
* Plugin: inputs.disk, Collection 1
> disk,host=xxxx,path=C:,device=C:,fstype=NTFS inodes_free=0i,inodes_used
=0i,total=22689083392i,free=3203522560i,used=19485560832i,used_percent=85.880775
76933082,inodes_total=0i 1509123178000000000
> disk,path=E:,device=E:,fstype=NTFS,host=xxxx inodes_used=0i,total=10734
268416i,free=6600749056i,used=4133519360i,used_percent=38.50769516661954,inodes_
total=0i,inodes_free=0i 1509123178000000000
> disk,path=F:,device=F:,fstype=NTFS,host=xxxx total=536863989760i,free=5
36757846016i,used=106143744i,used_percent=0.01977106791004004,inodes_total=0i,in
odes_free=0i,inodes_used=0i 1509123178000000000
> disk,path=H:,device=H:,fstype=NTFS,host=xxxx used_percent=72.5487681412
0992,inodes_total=0i,inodes_free=0i,inodes_used=0i,total=146468237312i,free=4020
7335424i,used=106260901888i 1509123178000000000
* Plugin: inputs.diskio, Collection 1
2017-10-27T16:52:58Z E! error getting disk io info: Exception occurred. (Invalid
class )
@danielnelson I've resolved the issue for the "Invalid class".
It's a wmi error. I've resolved it using these command to fix the server WMI.
winmgmt /resyncperf
winmgmt /clearadap
Reference : http://www.neolisk.com/techblog/wmiquery-incorrectclassonwindows2003r2
Most helpful comment
@danielnelson I've resolved the issue for the "Invalid class".
It's a wmi error. I've resolved it using these command to fix the server WMI.
Reference : http://www.neolisk.com/techblog/wmiquery-incorrectclassonwindows2003r2