summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cace075)
raw | patch | inline | side by side (parent: cace075)
author | Benoit Mortier <opensides@users.sourceforge.net> | |
Thu, 19 Oct 2006 23:53:28 +0000 (23:53 +0000) | ||
committer | Benoit Mortier <opensides@users.sourceforge.net> | |
Thu, 19 Oct 2006 23:53:28 +0000 (23:53 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1509 f882894a-f735-0410-b71e-b25c423dba1c
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 8ee6dd4fd087aabc1c0a261b811a5f89c375b625..6d42e1d31e068c1cd7eaf2ab0f5607faa9c32874 100644 (file)
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
*
* This file contains the check_radius plugin
*
+* Tests to see if a radius server is accepting connections.
+*
+*
* License Information:
*
* This program is free software; you can redistribute it and/or modify
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 7922bfa96d57608b740c432e28daab298f12fba7..17331f92d16ed1b0fb73b480dcceab95d848ab91 100644 (file)
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
*
* This file contains the check_real plugin
*
+* This plugin tests the REAL service on the specified host.
+*
+*
* License Information:
*
* This program is free software; you can redistribute it and/or modify
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index e4da30ed846ae05a5a02a69a4ea5a38ade5ea54f..ee6d0cb795d99026e320b5a8db8dc2508aababa1 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
*
* This file contains the check_smtp plugin
*
+* This plugin will attempt to open an SMTP connection with the host.
+*
+*
* License Information:
*
* This program is free software; you can redistribute it and/or modify
print_usage (void)
{
printf (_("Usage:"));
- printf ("%s -H host [-p port] [-e expect] [-C command] [-f from addr]\n\
- [-A authtype -U authuser -P authpass]\n\
- [-w warn] [-c crit] [-t timeout] [-S] [-D days] [-n] [-v] [-4|-6]\n", progname);
+ printf ("%s -H host [-p port] [-e expect] [-C command] [-f from addr]", progname);
+ printf ("[-A authtype -U authuser -P authpass] [-w warn] [-c crit] [-t timeout]\n");
+ printf ("[-S] [-D days] [-n] [-v] [-4|-6]\n");
}
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index ba31df09bbc58d038b0d799ed0ca0752bd18e745..ce4c08482f1b47cab0452ce686a8e6f21e6a0353 100644 (file)
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
*
* This file contains the check_ssh plugin
*
+*
+* Try to connect to an SSH server at specified server and port
+*
+*
* License Information:
*
* This program is free software; you can redistribute it and/or modify
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index fa989746d025d09569e5cb0ff5e977114cbea8c8..db8ebf953668fb450fc3e59e41633e415f7a96ca 100644 (file)
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
/******************************************************************************
- *
- * Program: Swap space plugin for Nagios
- * License: GPL
- *
- * 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.
- *
- * Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net)
- *
- * $Id$
- *
- *****************************************************************************/
+*
+* Nagios check_disk plugin
+*
+* License: GPL
+* Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net)
+* Copyright (c) 2000-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_disk 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_swap";
const char *revision = "$Revision$";
-const char *copyright = "2000-2004";
+const char *copyright = "2000-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
printf (_(COPYRIGHT), copyright, email);
- printf (_("Check swap space on local machine.\n\n"));
+ printf ("%s\n", _("Check swap space on local machine."));
+ printf ("\n\n");
+
print_usage ();
printf (_(UT_HELP_VRSN));
- printf (_("\n\
- -w, --warning=INTEGER\n\
- Exit with WARNING status if less than INTEGER bytes of swap space are free\n\
- -w, --warning=PERCENT%%\n\
- Exit with WARNING status if less than PERCENT of swap space is free\n\
- -c, --critical=INTEGER\n\
- Exit with CRITICAL status if less than INTEGER bytes of swap space are free\n\
- -c, --critical=PERCENT%%\n\
- Exit with CRITCAL status if less than PERCENT of swap space is free\n\
- -a, --allswaps\n\
- Conduct comparisons for all swap partitions, one by one\n\
- -v, --verbose\n\
- Verbose output. Up to 3 levels\n"));
-
- printf (_("\n\
-On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n"));
+ printf (" %s\n", "-w, --warning=INTEGER");
+ printf (" %s\n", _("Exit with WARNING status if less than INTEGER bytes of swap space are free"));
+ printf (" %s\n", "-w, --warning=PERCENT%%");
+ printf (" %s\n", _("Exit with WARNING status if less than PERCENT of swap space is free"));
+ printf (" %s\n", "-c, --critical=INTEGER");
+ printf (" %s\n", _("Exit with CRITICAL status if less than INTEGER bytes of swap space are free"));
+ printf (" %s\n", "-c, --critical=PERCENT%%");
+ printf (" %s\n", _("Exit with CRITCAL status if less than PERCENT of swap space is free"));
+ printf (" %s\n", "-a, --allswaps");
+ printf (" %s\n", _("Conduct comparisons for all swap partitions, one by one"));
+ printf (" %s\n", "-v, --verbose");
+ printf (" %s\n", _("Verbose output. Up to 3 levels"));
+ printf ("\n");
+ printf ("%s\n", _("Notes:"));
+ printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n"));
printf (_(UT_SUPPORT));
}
void
print_usage (void)
{
- printf ("\
-Usage: %s [-av] -w <percent_free>%% -c <percent_free>%%\n\
- %s [-av] -w <bytes_free> -c <bytes_free>\n", progname, progname);
+ printf (_("Usage:"));
+ printf ("%s [-av] -w <percent_free>%% -c <percent_free>%%\n",progname);
+ printf ("%s [-av] -w <bytes_free> -c <bytes_free>\n", progname);
}
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index bbb8d111d901143d0e9b047d61aa770cb3ab7f0d..00105f9f9d6a9d707fb0bd4eb2eafb1afe213faf 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
/*****************************************************************************
-
- 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_tcp plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_tcp 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$
+*
*****************************************************************************/
/* progname "check_tcp" changes depending on symlink called */
char *progname;
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"
printf (_(UT_IPv46));
- printf (_("\
- -E, --escape\n\
- Can use \\n, \\r, \\t or \\ in send or quit string.\n\
- Default: nothing added to send, \\r\\n added to end of quit\n\
- -s, --send=STRING\n\
- String to send to the server\n\
- -e, --expect=STRING\n\
- String to expect in server response\n\
- -q, --quit=STRING\n\
- String to send server to initiate a clean close of the connection\n"));
-
- printf (_("\
- -r, --refuse=ok|warn|crit\n\
- Accept tcp refusals with states ok, warn, crit (default: crit)\n\
- -M, --mismatch=ok|warn|crit\n\
- Accept expected string mismatches with states ok, warn, crit (default: warn)\n\
- -j, --jail\n\
- Hide output from TCP socket\n\
- -m, --maxbytes=INTEGER\n\
- Close connection once more than this number of bytes are received\n\
- -d, --delay=INTEGER\n\
- Seconds to wait between sending string and polling for response\n"));
+ printf (" %s\n", "-E, --escape");
+ printf (" %s\n", _("Can use \\n, \\r, \\t or \\ in send or quit string."));
+ printf (" %s\n", _("Default: nothing added to send, \\r\\n added to end of quit"));
+ printf (" %s\n", "-s, --send=STRING");
+ printf (" %s\n", _("String to send to the server"));
+ printf (" %s\n", "-e, --expect=STRING");
+ printf (" %s\n", _("String to expect in server response"));
+ printf (" %s\n", "-q, --quit=STRING");
+ printf (" %s\n", _("String to send server to initiate a clean close of the connection"));
+ printf (" %s\n", "-r, --refuse=ok|warn|crit");
+ printf (" %s\n", _("Accept tcp refusals with states ok, warn, crit (default: crit)"));
+ printf (" %s\n", "-M, --mismatch=ok|warn|crit");
+ printf (" %s\n", _("Accept expected string mismatches with states ok, warn, crit (default: warn)"));
+ printf (" %s\n", "-j, --jail");
+ printf (" %s\n", _("Hide output from TCP socket"));
+ printf (" %s\n", "-m, --maxbytes=INTEGER");
+ printf (" %s\n", _("Close connection once more than this number of bytes are received"));
+ printf (" %s\n", "-d, --delay=INTEGER");
+ printf (" %s\n", _("Seconds to wait between sending string and polling for response"));
#ifdef HAVE_SSL
- printf (_("\
- -D, --certificate=INTEGER\n\
- Minimum number of days a certificate has to be valid.\n\
- -S, --ssl\n\
- Use SSL for the connection.\n"));
+ printf (" %s\n", "-D, --certificate=INTEGER");
+ printf (" %s\n", _("Minimum number of days a certificate has to be valid."));
+ printf (" %s\n", "-S, --ssl");
+ printf (" %s\n", _("Use SSL for the connection."));
#endif
printf (_(UT_WARN_CRIT));
void
print_usage (void)
{
- printf ("\
-Usage: %s -H host -p port [-w <warning time>] [-c <critical time>]\n\
- [-s <send string>] [-e <expect string>] [-q <quit string>]\n\
- [-m <maximum bytes>] [-d <delay>] [-t <timeout seconds>]\n\
- [-r <refuse state>] [-M <mismatch state>] [-v] [-4|-6] [-j]\n\
- [-D <days to cert expiry>] [-S <use SSL>] [-E]\n", progname);
+ printf (_("Usage:"));
+ printf ("%s -H host -p port [-w <warning time>] [-c <critical time>] [-s <send string>]\n",progname);
+ printf ("[-e <expect string>] [-q <quit string>][-m <maximum bytes>] [-d <delay>]\n");
+ printf ("[-t <timeout seconds>] [-r <refuse state>] [-M <mismatch state>] [-v] [-4|-6] [-j]\n");
+ printf ("[-D <days to cert expiry>] [-S <use SSL>] [-E]\n");
}
diff --git a/plugins/check_time.c b/plugins/check_time.c
index 84cdcd531bdb5cd5451a2ec20f41ce0359527af4..ca4205663e10176ce75454db502143547a573c1c 100644 (file)
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
*
* This file contains the check_time plugin
*
+* This plugin will check the time on the specified host.
+*
* License Information:
*
* This program is free software; you can redistribute it and/or modify
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index 110ea0a2bc2bf58530975d534dae962fc970d317..280b3fb6c0489821ee03c7eb79ca26017c48a5d3 100644 (file)
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
*
* This file contains Network UPS Tools plugin for Nagios
*
+* This plugin tests the UPS service on the specified host.Network UPS Tools
+* from www.networkupstools.org must be running for thisplugin to work.
+*
* License Information:
*
* This program is free software; you can redistribute it and/or modify
const char *progname = "check_ups";
const char *revision = "$Revision$";
-const char *copyright = "2000-2006";
+const char *copyright = "2002-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_users.c b/plugins/check_users.c
index 34d4775220eddc47ab4ee4d08fc8369c29f035c1..0c62e3b118fe41ec1057ba8b93e7072adef658c2 100644 (file)
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
* Nagios check_users plugin
*
* License: GPL
-* Copyright (c) 2002-2006 nagios-plugins team
+* Copyright (c) 2000-2006 nagios-plugins team
*
* Last Modified: $Date$
*
*
* This file contains the check_users plugin
*
+* This plugin checks the number of users currently logged in on the local
+* system and generates an error if the number exceeds the thresholds specified.
+*
* License Information:
*
* This program is free software; you can redistribute it and/or modify
diff --git a/plugins/negate.c b/plugins/negate.c
index 76bb6bbbb7d263693d7e2bfe8ec4d651ba5069cf..45c032691d07002b99f025720859a4e3ac9327ad 100644 (file)
--- a/plugins/negate.c
+++ b/plugins/negate.c
*
* This file contains the negate plugin
*
+* Negates the status of a plugin (returns OK for CRITICAL, and vice-versa)
+*
* License Information:
*
* This program is free software; you can redistribute it and/or modify
diff --git a/plugins/urlize.c b/plugins/urlize.c
index 5bff4b2f8a018ed2fd3974737a281349a4ec0782..7793e9a8604165f5a253674628d09753572d097a 100644 (file)
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
/******************************************************************************
-
- 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.
+*
+* Nagios urlize plugin
+*
+* License: GPL
+* Copyright (c) 2000-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the urlize plugin
+*
+* This plugin wraps the text output of another command (plugin)
+* in HTML <A> tags, thus displaying the plugin output in as a clickable link in
+* the Nagios status screen. The return status is the same as the invoked 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$