Skip to content

Missing perfdata units for perf checks reporting *BytesPerSecond values #30

@ccztux

Description

@ccztux

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions