From 37f62753dfb4138c50f2c4785784e6d31f186d74 Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Thu, 21 May 2009 11:35:52 +0000 Subject: [PATCH] r448 git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@8146 6bcd3966-0018-0410-8128-fd23d134de7e --- src/check_centreon_snmp_cpu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/check_centreon_snmp_cpu b/src/check_centreon_snmp_cpu index 1e124c7d2..84b6f4d47 100644 --- a/src/check_centreon_snmp_cpu +++ b/src/check_centreon_snmp_cpu @@ -209,6 +209,8 @@ if ($opt_l == 0) { $str .= " cpu$i=".$cpulist[$i]."%"; } } + +# Display Ouptut print $str."\n"; undef($str); exit $ERRORS{$status}; @@ -222,6 +224,7 @@ sub print_usage () { print " -C (--community) SNMP read community (defaults to public,\n"; print " -c (--critical) Three critical tresholds (defaults : 95)\n"; print " -w (--warning) Three warning tresholds (defaults : 90)\n"; + print " -l Display only cpu average\n"; print " -v (--snmp_version) 1 for SNMP v1 (default)\n"; print " 2 for SNMP v2c\n"; print " -k (--key) snmp V3 key\n"; @@ -234,7 +237,7 @@ sub print_usage () { sub print_help () { print "##############################################\n"; print "# Copyright (c) 2004-2009 Merethis #\n"; - print "# Bugs to http://trac.centreon.com/ #\n"; + print "# Bugs to http://forge.centreon.com/ #\n"; print "##############################################\n"; print_usage(); print "\n";