diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-20 11:17:03 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-20 11:17:03 +0000 |
commit | f2d66913f9451674bb7b6dec514cf2fdff9698bc (patch) | |
tree | 1f2d685ee02370308f319fabf88ee976b5abac8d /plugins/check_snmp.c | |
parent | f9394308c9c372bcf419a311c61ba420247ae613 (diff) | |
download | monitoring-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.c | 58 |
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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_snmp plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_snmp plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * License Information: |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | 16 | * This program is free software; you can redistribute it and/or modify | |
17 | $Id$ | 17 | * it under the terms of the GNU General Public License as published by |
18 | 18 | * the Free Software Foundation; either version 2 of the License, or | |
19 | * (at your option) any later version. | ||
20 | * | ||
21 | * This program is distributed in the hope that it will be useful, | ||
22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
24 | * GNU General Public License for more details. | ||
25 | * | ||
26 | * You should have received a copy of the GNU General Public License | ||
27 | * along with this program; if not, write to the Free Software | ||
28 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
29 | * | ||
30 | * $Id$ | ||
31 | * | ||
19 | ******************************************************************************/ | 32 | ******************************************************************************/ |
20 | 33 | ||
21 | const char *progname = "check_snmp"; | 34 | const char *progname = "check_snmp"; |
22 | const char *revision = "$Revision$"; | 35 | const char *revision = "$Revision$"; |
23 | const char *copyright = "1999-2004"; | 36 | const char *copyright = "1999-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 37 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
25 | 38 | ||
26 | #include "common.h" | 39 | #include "common.h" |
@@ -884,8 +897,9 @@ print_help (void) | |||
884 | 897 | ||
885 | printf (COPYRIGHT, copyright, email); | 898 | printf (COPYRIGHT, copyright, email); |
886 | 899 | ||
887 | printf (_("\ | 900 | printf ("%s\n", _("Check status of remote machines and obtain sustem information via SNMP")); |
888 | Check status of remote machines and obtain sustem information via SNMP\n\n")); | 901 | |
902 | printf ("\n\n"); | ||
889 | 903 | ||
890 | print_usage (); | 904 | print_usage (); |
891 | 905 | ||
@@ -992,8 +1006,8 @@ Check status of remote machines and obtain sustem information via SNMP\n\n")); | |||
992 | void | 1006 | void |
993 | print_usage (void) | 1007 | print_usage (void) |
994 | { | 1008 | { |
995 | printf ("\ | 1009 | printf (_("Usage:")); |
996 | Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n\ | 1010 | printf ("%s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n\ |
997 | [-C community] [-s string] [-r regex] [-R regexi]\n\ | 1011 | [-C community] [-s string] [-r regex] [-R regexi]\n\ |
998 | [-t timeout] [-e retries]\n\ | 1012 | [-t timeout] [-e retries]\n\ |
999 | [-l label] [-u units] [-p port-number] [-d delimiter]\n\ | 1013 | [-l label] [-u units] [-p port-number] [-d delimiter]\n\ |