Error in performance data in check_mrtgtraf (#1405)

Jens Hyllegaard notifications at github.com
Thu Feb 25 13:40:38 CET 2016


Hi.

I just noticed that the returned warning/critical values do not change
depending on the unit of measure used.

As the plugin changes the UOM reported depending on the value, this
unfortunately also affects the way for instance pnp4gnagios depicts the
values:
So when I set a warning value of e.g 400mbit or 50000000 bytes then that
value should be changed in the reported performance data, otherwise
pnp4nagios would take the value of 50000000 as KB whenever  that is the UOM
stated in the returned value.

Here are some examples:
in=483.012695KB/s;50000000.000000;90000000.000000;0.000000
out=951.377930KB/s;50000000.000000;90000000.000000;0.000000

in=707.000000B/s;50000000.000000;90000000.000000;0.000000
out=1.786133KB/s;50000000.000000;90000000.000000;0.000000

In the plugin guidelines:
https://www.monitoring-plugins.org/doc/guidelines.html#AEN201
point 9 states that "warn and crit are in the range format (see Section
2.5). Must be the same UOM"

Unfortunately I am not proficient in C, so I can't create a patch.

Regards

Jens Hyllegaard

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/issues/1405
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20160225/0f3e2534/attachment.html>


More information about the Devel mailing list