mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 13:45:18 +02:00
improve meta service plugin
git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@12955 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
parent
e0550f2252
commit
d43e52a02a
@ -414,6 +414,13 @@ if (defined($warning) && defined($critical)) {
|
||||
}
|
||||
}
|
||||
|
||||
my $metric = "";
|
||||
if (defined($metric_select)) {
|
||||
$metric = $metric_select;
|
||||
} else {
|
||||
$metric = "value";
|
||||
}
|
||||
|
||||
if (!defined($display) || !$display) {
|
||||
if ($calculation eq "AVE") {
|
||||
$msg .= "Average - ";
|
||||
@ -424,10 +431,10 @@ if (!defined($display) || !$display) {
|
||||
} elsif ($calculation eq "MAX") {
|
||||
$msg .= "Max - ";
|
||||
}
|
||||
$msg .= "value : " . $res . "|value=".$res;
|
||||
$msg .= $metric." : " . $res . "|".$metric."=".$res;
|
||||
} else {
|
||||
$msg = sprintf($display, $res);
|
||||
$msg .= "|value=".$res;
|
||||
$msg .= "|".$metric."=".$res;
|
||||
}
|
||||
|
||||
##############
|
||||
|
Loading…
x
Reference in New Issue
Block a user