-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
The performance data unit is missing for perf checks that provide *BytesPerSecond values, which leads to incorrect graph visualization.
Example:
root@localhost /home/zet/git-repos/check_vsphere # /usr/lib64/meg/plugins/check_vsphere perf --disable-ssl-verification --sessionfile /tmp/check_vsphere.192.168.0.160.session --host 192.168.0.170 --user monitoring --password mysecretpassword --vimtype HostSystem --vimname myesxhost.local --perfcounter disk:usage:average
OK: Counter disk:usage:average on HostSystem:myesxhost.local reported 24365 Kilobytes per second
| 'disk:usage:average'=24365.0;;;;
'monplugin_time'=0.186355s
I have fixed this and will provide the fix via a pull request:
root@localhost /home/zet/git-repos/check_vsphere # ./check_vsphere perf --disable-ssl-verification --sessionfile /tmp/check_vsphere.192.168.0.160.session --host 192.168.0.170 --user monitoring --password mysecretpassword --vimtype HostSystem --vimname myesxhost.local --perfcounter disk:usage:average
OK: Counter disk:usage:average on HostSystem:myesxhost.local reported 24365 Kilobytes per second
| 'disk:usage:average'=24365.0KB;;;;
'monplugin_time'=0.194689s
Metadata
Metadata
Assignees
Labels
No labels