I am collecting CPU and LAN usage from several Windows systems using EXE/Script Advanced sensor. This sensor calls a custom bat file that outputs CPU Load, Disk activity, LAN use, RAM used, etc (all in one sensor, using different channels for each data point).
All the channels are working as they should, and graphs are being created without any problems. There are no problems with the outputted XML.
But the channels for CPU usage and net traffic are not counted in the index graph at all. I've followed the API manual, and used the CPU <unit> tag. Everything is working beautifully, except for the index graph that shows no activity at all. I am also unsure what <unit> I should select for net traffix (it's not specified in the API manual, and I want to use bytes/sec as this gives values that we are more accustomed to reading).
---------The outputted XML for CPU looks like this:--------
^<result^> ^<Channel^>CPU Load^</Channel^> ^<Value^>33.53</Value^> ^<Mode^>Absolute^</Mode^> ^<Unit^>CPU^</Unit^> ^<Float^>1^</Float^> ^</result^> ^<result^> ^<Channel^>Net Rx^</Channel^> ^<Value^>734905287^</Value^> ^<Mode^>Difference^</Mode^> ^<Unit^>BytesBandwidth^</Unit^> ^<SpeedSize^>Byte^</SpeedSize^> ^<VolumeSize^>MegaByte^</VolumeSize^> ^</result^> ^<result^> ^<Channel^>Net Tx^</Channel^> ^<Value^>89002393^</Value^> ^<Mode^>Difference^</Mode^> ^<Unit^>BytesBandwidth^</Unit^> ^<SpeedSize^>Byte^</SpeedSize^> ^<VolumeSize^>MegaByte^</VolumeSize^> ^</result^> ^<result^> ^<Channel^>Net Total</Channel^> ^<Value^>823907680^</Value^> ^<Mode^>Difference^</Mode^> ^<Unit^>BytesBandwidth^</Unit^> ^<SpeedSize^>Byte^</SpeedSize^> ^<VolumeSize^>MegaByte^</VolumeSize^> ^</result^>
----------FYI, in the sensor details table it would look like this:--------
CPU Load 2 33,5 % 0,0 % 100,0 % Net Rx 12 153,17 MByte 2 610,18 KByte/s 0,68 KByte/s 81 027,68 KByte/s Net Total 14 160,48 MByte 2 734,77 KByte/s 1,15 KByte/s 145 770,91 KByte/s LAN Tx 13 7,31 MByte 124,59 KByte/s 0,46 KByte/s 98 249,38 KByte/s
Article Comments
Ok, my next question is if there's any way to easily disable the index graphs so they arent displayed? (There's no point in having them take up screen space on my system if they aren't displaying anything useful anymore.)
Dec, 2014 - Permalink
It's only possible for groups I'm afraid: How can I hide the "2 Days", "30 Days" and "365 Days" graphs on the group pages?.
Dec, 2014 - Permalink
Hello,
Thank you very much for your KB-Post. Sorry, the CPU & Traffic Index-Graphs on devices rely on a certain default set of native sensors. This is hard coded, and it's not possible to include other sensor types into the calculations of the index graphs.
best regards.
Dec, 2014 - Permalink