summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
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 @@
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
21const char *progname = "check_snmp"; 34const char *progname = "check_snmp";
22const char *revision = "$Revision$"; 35const char *revision = "$Revision$";
23const char *copyright = "1999-2004"; 36const char *copyright = "1999-2006";
24const char *email = "nagiosplug-devel@lists.sourceforge.net"; 37const 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"));
888Check 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"));
992void 1006void
993print_usage (void) 1007print_usage (void)
994{ 1008{
995 printf ("\ 1009 printf (_("Usage:"));
996Usage: %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\