centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
311 stars 274 forks source link

change perfdata traffic bs to mbps #4733

Closed sistemmsn closed 11 months ago

sistemmsn commented 12 months ago

According to the documentation, it shows you several examples for the conversion from b/s to mb/s but it gives an error if you should do anything else about it.

image

https://docs.centreon.com/pp/integrations/plugin-packs/procedures/applications-monitoring-speedtest/

omercier commented 11 months ago

Hi, The bug is actually in the help message: Bash interpretes the parenthesis, hence the error message. Try with this syntax, it should work fine: --change-perfdata='traffic_in,,scale(Mbps),Mbps'. We'll fix the help message, thanks!