From 31621c5b37b63c56d56d4ef14b0a6db8c2e20af8 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 8 Jan 2019 14:19:33 +0100 Subject: [PATCH] add help message for extend perfdata system --- centreon/plugins/output.pm | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/centreon/plugins/output.pm b/centreon/plugins/output.pm index 017cce038..3fdcbc296 100644 --- a/centreon/plugins/output.pm +++ b/centreon/plugins/output.pm @@ -1010,10 +1010,26 @@ Filter perfdata that match the regexp. Put max perfdata (if it exist) in a specific perfdata (without values: same with '_max' suffix) (Multiple options) -=item B<--change-perfdata> +=item B<--change-perfdata> B<--extend-perfdata> -Change perfdata name (Multiple option) -Syntax: regexp_matching,regexp_substitute +Change or extend perfdata. +Syntax: --extend-perfdata=searchlabel,newlabel,target[,newuom] + +Common examples: + +=over 4 + +Change storage free perfdata in used: --change-perfdata=free,used,invert() + +Change storage free perfdata in used: --change-perfdata=used,free,invert() + +Scale traffic values automaticaly: --change-perfdata=traffic,,scale(auto) + +Scale traffic values in Mbps: --change-perfdata=traffic_in,,scale(Mbps),mbps + +Change traffic values in percent: --change-perfdata=traffic_in,,percent() + +=back =item B<--range-perfdata>