<p>Hi.</p>

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

<p>As the plugin changes the UOM reported depending on the value, this unfortunately also affects the way for instance pnp4gnagios depicts the values:<br>
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.</p>

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

<p>in=707.000000B/s;50000000.000000;90000000.000000;0.000000<br>
out=1.786133KB/s;50000000.000000;90000000.000000;0.000000</p>

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

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

<p>Regards</p>

<p>Jens Hyllegaard</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1405">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2TPQbZQCIAFHvYv3gnwlmhx6MOhJks5pnu3GgaJpZM4HiuBG.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1405"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>