aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorGravatar Benoit Mortier <opensides@users.sourceforge.net> 2006-06-20 11:17:03 +0000
committerGravatar Benoit Mortier <opensides@users.sourceforge.net> 2006-06-20 11:17:03 +0000
commitf2d66913f9451674bb7b6dec514cf2fdff9698bc (patch)
tree1f2d685ee02370308f319fabf88ee976b5abac8d /plugins/check_snmp.c
parentf9394308c9c372bcf419a311c61ba420247ae613 (diff)
downloadmonitoring-plugins-f2d66913f9451674bb7b6dec514cf2fdff9698bc.tar.gz
cleaning help and usage + license
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1435 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c58
1 files changed, 36 insertions, 22 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 9ff3439e..e2b4555c 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -1,26 +1,39 @@
/******************************************************************************
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- $Id$
-
+*
+* Nagios check_snmp plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_snmp plugin
+*
+* License Information:
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+* $Id$
+*
******************************************************************************/
const char *progname = "check_snmp";
const char *revision = "$Revision$";
-const char *copyright = "1999-2004";
+const char *copyright = "1999-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
@@ -884,8 +897,9 @@ print_help (void)
printf (COPYRIGHT, copyright, email);
- printf (_("\
-Check status of remote machines and obtain sustem information via SNMP\n\n"));
+ printf ("%s\n", _("Check status of remote machines and obtain sustem information via SNMP"));
+
+ printf ("\n\n");
print_usage ();
@@ -992,8 +1006,8 @@ Check status of remote machines and obtain sustem information via SNMP\n\n"));
void
print_usage (void)
{
- printf ("\
-Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n\
+ printf (_("Usage:"));
+ printf ("%s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n\
[-C community] [-s string] [-r regex] [-R regexi]\n\
[-t timeout] [-e retries]\n\
[-l label] [-u units] [-p port-number] [-d delimiter]\n\