From 33564078e7be6300da64efd158afb9c0ed9e5c7b Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Thu, 23 Oct 2008 20:25:39 +0000 Subject: [PATCH] change metric name in meta service (OMS => value) git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@6892 6bcd3966-0018-0410-8128-fd23d134de7e --- centreon-plugins/src/check_meta_service | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/centreon-plugins/src/check_meta_service b/centreon-plugins/src/check_meta_service index 756f60393..edda18754 100644 --- a/centreon-plugins/src/check_meta_service +++ b/centreon-plugins/src/check_meta_service @@ -82,59 +82,59 @@ sub return_value($$$$){ if ($warning < $critical){ # Bon sens if ($result < $warning){ if ($output) { - print $output. "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print $output. "|value=" . $result . ";".$warning.";".$critical."\n"; }else { - print "OK result : " . $result . "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print "OK result : " . $result . "|value=" . $result . ";".$warning.";".$critical."\n"; } exit $ERRORS{'OK'}; } elsif (($result >= $warning) && ($result < $critical)){ if ($output) { - print $output. "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print $output. "|value=" . $result . ";".$warning.";".$critical."\n"; }else { - print "WARNING result : " . $result . "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print "WARNING result : " . $result . "|value=" . $result . ";".$warning.";".$critical."\n"; } exit $ERRORS{'WARNING'}; } elsif ($result >= $critical){ if ($output) { - print $output. "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print $output. "|value=" . $result . ";".$warning.";".$critical."\n"; }else { - print "CRITICAL result : " . $result . "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print "CRITICAL result : " . $result . "|value=" . $result . ";".$warning.";".$critical."\n"; } exit $ERRORS{'CRITICAL'}; } } else { # sens inverse if ($result < $critical){ if ($output) { - print $output. "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print $output. "|value=" . $result . ";".$warning.";".$critical."\n"; }else { - print "CRITICAL result : " . $result . "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print "CRITICAL result : " . $result . "|value=" . $result . ";".$warning.";".$critical."\n"; } exit $ERRORS{'CRITICAL'}; } elsif ($result >= $critical && $result < $warning){ if ($output) { - print $output. "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print $output. "|value=" . $result . ";".$warning.";".$critical."\n"; }else { - print "WARNING result : " . $result . "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print "WARNING result : " . $result . "|value=" . $result . ";".$warning.";".$critical."\n"; } exit $ERRORS{'WARNING'}; } elsif ($result >= $warning){ if ($output) { - print $output. "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print $output. "|value=" . $result . ";".$warning.";".$critical."\n"; }else { - print "OK result : " . $result . "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print "OK result : " . $result . "|value=" . $result . ";".$warning.";".$critical."\n"; } exit $ERRORS{'OK'}; } else{ if ($output) { - print $output. "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print $output. "|value=" . $result . ";".$warning.";".$critical."\n"; }else { - print "OK result : " . $result . "|OMS=" . $result . ";".$warning.";".$critical."\n"; + print "OK result : " . $result . "|value=" . $result . ";".$warning.";".$critical."\n"; } exit $ERRORS{'OK'}; } } } elsif (!defined($warning) || !defined($critical)) { - print "Result : " . $result . "|OMS=" . $result . "\n"; + print "Result : " . $result . "|value=" . $result . "\n"; exit $ERRORS{'OK'}; } else { print "ERROR : warnig level = critical level";