summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 584562a)
raw | patch | inline | side by side (parent: 584562a)
author | Benoit Mortier <opensides@users.sourceforge.net> | |
Thu, 19 Oct 2006 00:25:16 +0000 (00:25 +0000) | ||
committer | Benoit Mortier <opensides@users.sourceforge.net> | |
Thu, 19 Oct 2006 00:25:16 +0000 (00:25 +0000) |
first pass at making all the headre be the same licence, plugin, etc...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1499 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1499 f882894a-f735-0410-b71e-b25c423dba1c
24 files changed:
diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index 528dd60c60d402ae2b83be633571cbf8afe9e2af..9bc1249f2e3ff766146f658fa6af9c75138a39ea 100644 (file)
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
/******************************************************************************
- * check_apt.c: check for available updates in apt package management systems
- * original author: sean finney <seanius@seanius.net>
- * (with some common bits stolen from check_nagios.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 check_apt plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Original author: sean finney
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_apt plugin
+*
+* check for available updates in apt package management systems
+*
+* 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$
}
-/* informative help message */
-void print_help(void){
- print_revision(progname, revision);
- printf(_(COPYRIGHT), copyright, email);
- printf(_("\
-This plugin checks for software updates on systems that use\n\
-package management systems based on the apt-get(8) command\n\
-found in Debian GNU/Linux\n\
-\n\n"));
- print_usage();
- printf(_(UT_HELP_VRSN));
- printf(_(UT_TIMEOUT), timeout_interval);
- printf(_("\n\
- -U, --upgrade=OPTS\n\
- [Default] Perform an upgrade. If an optional OPTS argument is provided,\n\
- apt-get will be run with these command line options instead of the\n\
- default (%s).\n\
- Note that you may be required to have root privileges if you do not use\n\
- the default options.\n\
- -d, --dist-upgrade=OPTS\n\
- Perform a dist-upgrade instead of normal upgrade. Like with -U OPTS\n\
- can be provided to override the default options.\n\
- -n, --no-upgrade\n\
- Do not run the upgrade. Probably not useful (without -u at least).\n\
- -i, --include=REGEXP\n\
- Include only packages matching REGEXP. Can be specified multiple times;\n\
- the values will be combined together. Any patches matching this list\n\
- cause the plugin to return WARNING status. Others will be ignored.\n\
- Default is to include all packages.\n\
- -e, --exclude=REGEXP\n\
- Exclude packages matching REGEXP from the list of packages that would\n\
- otherwise be included. Can be specified multiple times; the values\n\
- will be combined together. Default is to exclude no packages.\n\
- -c, --critical=REGEXP\n\
- If the full package information of any of the upgradable packages match\n\
- this REGEXP, the plugin will return CRITICAL status. Can be specified\n\
- multiple times like above. Default is a regexp matching security\n\
- upgrades for Debian and Ubuntu:\n\
- \t%s\n\
- Note that the package must first match the include list before its\n\
- information is compared against the critical list.\n\
- \n\n"),
- UPGRADE_DEFAULT_OPTS, SECURITY_RE);
- printf(_("\
-The following options require root privileges and should be used with care: \
-\n\n"));
- printf(_("\
- -u, --update=OPTS\n\
- First perform an 'apt-get update'. An optional OPTS parameter overrides\n\
- the default options. Note: you may also need to adjust the global \n\
- timeout (with -t) to prevent the plugin from timing out if apt-get\n\
- upgrade is expected to take longer than the default timeout.\n\
-\n\n"));
-}
-
-/* simple usage heading */
-void print_usage(void){
- printf ("Usage: %s [[-d|-u|-U]opts] [-n] [-t timeout]\n", progname);
-}
-
/* run an apt-get upgrade */
int run_upgrade(int *pkgcount, int *secpkgcount){
int i=0, result=STATE_UNKNOWN, regres=0, pc=0, spc=0;
sprintf(cmd, "%s %s %s", PATH_TO_APTGET, opts_ptr, aptcmd);
return cmd;
}
+
+/* informative help message */
+void
+print_help (void)
+{
+ print_revision(progname, revision);
+
+ printf(_(COPYRIGHT), copyright, email);
+
+ printf("%s\n", _("This plugin checks for software updates on systems that use"));
+ printf("%s\n", _("package management systems based on the apt-get(8) command"));
+ printf("%s\n", _("found in Debian GNU/Linux"));
+
+ print_usage();
+
+ printf(_(UT_HELP_VRSN));
+
+ printf(_(UT_TIMEOUT), timeout_interval);
+
+ printf(_("\n\
+ -U, --upgrade=OPTS\n\
+ [Default] Perform an upgrade. If an optional OPTS argument is provided,\n\
+ apt-get will be run with these command line options instead of the\n\
+ default (%s).\n\
+ Note that you may be required to have root privileges if you do not use\n\
+ the default options.\n\
+ -d, --dist-upgrade=OPTS\n\
+ Perform a dist-upgrade instead of normal upgrade. Like with -U OPTS\n\
+ can be provided to override the default options.\n\
+ -n, --no-upgrade\n\
+ Do not run the upgrade. Probably not useful (without -u at least).\n\
+ -i, --include=REGEXP\n\
+ Include only packages matching REGEXP. Can be specified multiple times;\n\
+ the values will be combined together. Any patches matching this list\n\
+ cause the plugin to return WARNING status. Others will be ignored.\n\
+ Default is to include all packages.\n\
+ -e, --exclude=REGEXP\n\
+ Exclude packages matching REGEXP from the list of packages that would\n\
+ otherwise be included. Can be specified multiple times; the values\n\
+ will be combined together. Default is to exclude no packages.\n\
+ -c, --critical=REGEXP\n\
+ If the full package information of any of the upgradable packages match\n\
+ this REGEXP, the plugin will return CRITICAL status. Can be specified\n\
+ multiple times like above. Default is a regexp matching security\n\
+ upgrades for Debian and Ubuntu:\n\
+ \t%s\n\
+ Note that the package must first match the include list before its\n\
+ information is compared against the critical list.\n\
+ \n\n"),
+ UPGRADE_DEFAULT_OPTS, SECURITY_RE);
+
+ printf ("%s\n\n", _("The following options require root privileges and should be used with care:"));
+ printf (" %s\n", "-u, --update=OPTS");
+ printf (" %s\n", _("First perform an 'apt-get update'. An optional OPTS parameter overrides"));
+ printf (" %s\n", _("the default options. Note: you may also need to adjust the global"));
+ printf (" %s\n", _("timeout (with -t) to prevent the plugin from timing out if apt-get"));
+ printf (" %s\n", _("upgrade is expected to take longer than the default timeout."));
+}
+
+
+/* simple usage heading */
+void
+print_usage(void)
+{
+ printf ("Usage: %s [[-d|-u|-U]opts] [-n] [-t timeout]\n", progname);
+}
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index b1688d0e830a699ebfae6cb4db7081870bab879a..1d39985fa85f207cb03293ae0c7459c9ac2df234 100644 (file)
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
/******************************************************************************
-
- The Nagios Plugins are free software; you can redistribute them
- and/or modify them 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_by_ssh plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_by_ssh 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_by_ssh";
const char *revision = "$Revision$";
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 68b9a23be4eff75409d065bd632d384c3d2d61da..77df3c2e99c4f0a8cd73ab8624edc636347c2262 100644 (file)
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.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_dig plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_dig 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$
+*
*****************************************************************************/
/* Hackers note:
const char *progname = "check_dig";
const char *revision = "$Revision$";
-const char *copyright = "2002-2005";
+const char *copyright = "2002-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 6563e10372367e08e8cd3793d7253349000843af..93af7dc56765eb6f52e5f4fa331dbf8d04ad7c17 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.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.
-
- LIMITATION: nslookup on Solaris 7 can return output over 2 lines, which will not
- be picked up by this plugin
-
- $Id$
-
+*
+* Nagios check_dns plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_dns plugin
+*
+* LIMITATION: nslookup on Solaris 7 can return output over 2 lines, which will not
+* be picked up by this 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_dns";
const char *revision = "$Revision$";
-const char *copyright = "2000-2005";
+const char *copyright = "2000-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c
index af7f8a3dd3a24dd91220941838d4a6f2254d3431..dfd6c9c2602780e7c3bc003b55df71f8804dd840 100644 (file)
--- a/plugins/check_dummy.c
+++ b/plugins/check_dummy.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 check_dummy plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_dummy plugin
+*
+* This plugin will simply return the state corresponding to the numeric value
+*
+*
+* 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_dummy";
const char *revision = "$Revision$";
-const char *copyright = "1999-2005";
+const char *copyright = "1999-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index cdaff9733622dfa883e72e49ce373d15c8e5a4a6..25ca4a8d3fe4fc888e02a04efab444eca481ecae 100644 (file)
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.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 check_fping plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_disk plugin
+*
+* This plugin will use the fping command to ping the specified host for a fast check
+*
+*
+* 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_fping";
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"
diff --git a/plugins/check_game.c b/plugins/check_game.c
index 32f2e6a91f414a9269e9f7583f7489cc1e18771d..a785b511317508c655db4670638586517e72932b 100644 (file)
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
/******************************************************************************
*
+* Nagios check_game plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_game plugin
+*
+* This plugin tests game server connections with the specified host.
+* using the qstat program
+*
+* 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
const char *progname = "check_game";
const char *revision = "$Revision$";
-const char *copyright = "2002-2005";
+const char *copyright = "2002-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 632237acd12a8018e37449c3b4970f51aa6c5c7e..31a76bd2870fdff4e39f96b1a4546d29d1e3469b 100644 (file)
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
/******************************************************************************
*
+* Nagios check_hpjd plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_hpjd plugin
+*
+* This plugin tests the STATUS of an HP printer with a JetDirect card.
+* Net-snmp must be installed on the computer running the 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
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 8eadc62ed9e495375e6ed3be50034d969164018f..6810f5c1686f6df3a0b287828213380a6bfba410 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.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 check_http plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_http plugin
+*
+* This plugin tests the HTTP service on the specified host. It can test
+* normal (http) and secure (https) servers, follow redirects, search for
+* strings and regular expressions, check connection times, and report on
+* certificate expiration times.
+*
+*
+* 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_http";
const char *revision = "$Revision$";
-const char *copyright = "1999-2005";
+const char *copyright = "1999-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
printf (COPYRIGHT, copyright, email);
- printf (_("\
-This plugin tests the HTTP service on the specified host. It can test\n\
-normal (http) and secure (https) servers, follow redirects, search for\n\
-strings and regular expressions, check connection times, and report on\n\
-certificate expiration times."));
+ printf ("%s\n", _("This plugin tests the HTTP service on the specified host. It can test"));
+ printf ("%s\n", _("normal (http) and secure (https) servers, follow redirects, search for"));
+ printf ("%s\n", _("strings and regular expressions, check connection times, and report on"));
+ printf ("%s\n", _("certificate expiration times."));
printf ("\n\n");
printf (_(UT_VERBOSE));
- printf (_("\
+ printf (_("\
This plugin will attempt to open an HTTP connection with the host. Successful\n\
connects return STATE_OK, refusals and timeouts return STATE_CRITICAL, other\n\
errors return STATE_UNKNOWN. Successful connects, but incorrect reponse\n\
index 611b2652213126ddb0977a46c17a967bf200b832..14d27b33a181526206e22ec39fb706c79cae8c96 100644 (file)
-/*
- * check_ide-smart v.1 - hacked version of ide-smart for Nagios
- * Copyright (C) 2000 Robert Dale <rdale@digital-mission.com>
- *
- * Nagios - http://www.nagios.org
- *
- * Notes:
- * ide-smart has the same functionality as before. Some return
- * values were changed, otherwise the --nagios option was added.
- *
- * Run with: check_ide-smart --nagios [-d] <DRIVE>
- * Where DRIVE is an IDE drive, ie. /dev/hda, /dev/hdb, /dev/hdc
- *
- * - Returns 0 on no errors
- * - Returns 1 on advisories
- * - Returns 2 on prefailure
- * - Returns -1 not too often
- *
- * ide-smart 1.3 - IDE S.M.A.R.T. checking tool
- * Copyright (C) 1998-1999 Ragnar Hojland Espinosa <ragnar@lightside.dhis.org>
- * 1998 Gadi Oxman <gadio@netvision.net.il>
- *
- * 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 check_ide_smart plugin
+*
+* License: GPL
+*
+* ide-smart 1.3 - IDE S.M.A.R.T. checking tool
+* Copyright (C) 1998-1999 Ragnar Hojland Espinosa <ragnar@lightside.dhis.org>
+* 1998 Gadi Oxman <gadio@netvision.net.il>
+*
+* Copyright (c) 2000 Robert Dale <rdale@digital-mission.com>
+* Copyright (c) 2000-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_ide_smart plugin
+*
+* This plugin checks a local hard drive with the (Linux specific) SMART interface
+*
+*
+* 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$
*/
printf (_(UT_SUPPORT));
}
+ /* todo : add to the long nanual as example
+ *
+ * Run with: check_ide-smart --nagios [-d] <DRIVE>
+ * Where DRIVE is an IDE drive, ie. /dev/hda, /dev/hdb, /dev/hdc
+ *
+ * - Returns 0 on no errors
+ * - Returns 1 on advisories
+ * - Returns 2 on prefailure
+ * - Returns -1 not too often
+ */
+
void
print_usage (void)
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index 7f8b7fd94f44de07e1f74fc42e54018c40a080c4..c33746b92bc8a48fd7aa94928f60268a9cd502e8 100644 (file)
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.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 check_ldap plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_ldap 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$
printf (_(UT_SUPPORT));
}
+/* todo
+* add option -4 and -6 to the long manual
+*
+*/
void
print_usage (void)
{
printf (_("Usage:"));
- printf ("\%s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\
- [-P <password>] [-w <warn_time>] [-c <crit_time>]\n\
- [-t timeout]%s\n",
-//(Note: all times are in seconds.)\n",
- progname,
+ printf (" %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]",progname);
+ printf ("[-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]\n",
#ifdef HAVE_LDAP_SET_OPTION
" [-2|-3] [-4|-6]"
#else
diff --git a/plugins/check_load.c b/plugins/check_load.c
index 145b9b0103656df3a05397d533b0ff5f6e54a5bd..562eaf5d449066b5fcb857b28958e45277308f13 100644 (file)
--- a/plugins/check_load.c
+++ b/plugins/check_load.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 check_load plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_load plugin
+*
+* This plugin tests the current system load average.
+*
+*
+* 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$
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index f98239c77deee0af5b6312d966150c92e140e8ad..12e367bd4a9652d13e5dd3f4d3321fc5369837fe 100644 (file)
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.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 check_mrtg plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_mrtg plugin
+*
+* This plugin will check either the average or maximum value of one of the
+* two variables recorded in an MRTG log file.
+*
+*
+* 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_mrtg";
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"
index 877072ce2e89f72582815b6924747717bed0658e..adaf9e25b9f700e8ddca216bec704006fe5a081f 100644 (file)
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.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 check_mrtgtraf plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_mtrgtraf plugin
+*
+* This plugin will check the incoming/outgoing transfer rates of a router
+* switch, etc recorded in an MRTG log.
+*
+*
+* 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_mrtgtraf";
const char *revision = "$Revision$";
-const char *copyright = "1999-2004";
+const char *copyright = "1999-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
int process_arguments (int, char **);
printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
printf (COPYRIGHT, copyright, email);
- printf (_("\n\
-This plugin will check the incoming/outgoing transfer rates of a router,\n\
-switch, etc recorded in an MRTG log. If the newest log entry is older\n\
-than <expire_minutes>, a WARNING status is returned. If either the\n\
-incoming or outgoing rates exceed the <icl> or <ocl> thresholds (in\n\
-Bytes/sec), a CRITICAL status results. If either of the rates exceed\n\
-the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.\n\n"));
+ printf ("%s\n", _("This plugin will check the incoming/outgoing transfer rates of a router,"));
+ printf ("%s\n", _("switch, etc recorded in an MRTG log. If the newest log entry is older"));
+ printf ("%s\n", _("than <expire_minutes>, a WARNING status is returned. If either the"));
+ printf ("%s\n", _("incoming or outgoing rates exceed the <icl> or <ocl> thresholds (in"));
+ printf ("%s\n", _("Bytes/sec), a CRITICAL status results. If either of the rates exceed"));
+ printf ("%s\n", _("the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results."));
+
+ printf ("\n\n");
print_usage ();
printf (_(UT_HELP_VRSN));
- printf (_("\
- -F, --filename=STRING\n\
- File to read log from\n\
- -e, --expires=INTEGER\n\
- Minutes after which log expires\n\
- -a, --aggregation=(AVG|MAX)\n\
- Test average or maximum\n\
- -w, --warning\n\
- Warning threshold pair \"<incoming>,<outgoing>\"\n\
- -c, --critical\n\
- Critical threshold pair \"<incoming>,<outgoing>\"\n"));
-
- printf (_("Notes:\n\
-- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from\n\
- http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html\n\
-- While MRTG can monitor things other than traffic rates, this\n\
- plugin probably won't work with much else without modification.\n\
-- The calculated i/o rates are a little off from what MRTG actually\n\
- reports. I'm not sure why this is right now, but will look into it\n\
- for future enhancements of this plugin.\n"));
+ printf (" %s\n", "-F, --filename=STRING");
+ printf (" %s\n", _("File to read log from"));
+ printf (" %s\n", "-e, --expires=INTEGER");
+ printf (" %s\n", _("Minutes after which log expires"));
+ printf (" %s\n", "-a, --aggregation=(AVG|MAX)");
+ printf (" %s\n", _("Test average or maximum"));
+ printf (" %s\n", "-w, --warning");
+ printf (" %s\n", _("Warning threshold pair <incoming>,<outgoing>"));
+ printf (" %s\n", "-c, --critical");
+ printf (" %s\n", _("Critical threshold pair <incoming>,<outgoing>"));
+
+ printf ("%s\n", _("Notes:"));
+ printf (" %s\n", _("- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from"));
+ printf (" %s\n", _(" http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"));
+ printf (" %s\n", _("- While MRTG can monitor things other than traffic rates, this"));
+ printf (" %s\n", _(" plugin probably won't work with much else without modification."));
+ printf (" %s\n", _("- The calculated i/o rates are a little off from what MRTG actually"));
+ printf (" %s\n", _(" reports. I'm not sure why this is right now, but will look into it"));
+ printf (" %s\n", _(" for future enhancements of this plugin."));
printf (_(UT_SUPPORT));
}
void
print_usage (void)
{
- printf ("\
-Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair>\n\
- -c <critical_pair> [-e expire_minutes] [-t timeout] [-v]\n", progname);
+ printf (_("Usage"));
+ printf (" %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair>",progname);
+ printf ("-c <critical_pair> [-e expire_minutes] [-t timeout] [-v]\n");
}
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 8c7e4ef044586bc2b1c918acf1e6a5e5c1d168ea..e10211faf3396440f6fa7756410f16be4f9825e1 100644 (file)
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
/******************************************************************************
*
-* CHECK_MYSQL.C
+* Nagios check_mysql plugin
*
-* Program: Mysql plugin for Nagios
* License: GPL
-* Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at)
-* portions (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net)
+* Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at)
+* Copyright (c) 1999-2006 nagios-plugins team
+* Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net)
*
-* $Id$
+* Last Modified: $Date$
*
* Description:
*
-* This plugin is for testing a mysql server.
+* This file contains the check_mysql plugin
+*
+* This program tests connections to a mysql server
+*
+*
+* 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_mysql";
index e1293666fee310c3567c84aed86e859314f44ef7..ecb7e7fe83cf32f1b529729178b803d2f1b92052 100644 (file)
/******************************************************************************
*
-* CHECK_MYSQL_QUERY.C
+* Nagios check_mysql_query plugin
*
-* Program: Mysql plugin for Nagios
* License: GPL
-* Copyright (c) 2006 Nagios Plugins Team, after Didi Rieder (check_mysql)
-*
-* $Id$
+* Copyright (c) 2006 nagios-plugins team, after Didi Rieder (check_mysql)
+*
+* Last Modified: $Date$
*
* Description:
+*
+* This file contains the check_mysql_query plugin
+*
* This plugin is for running arbitrary SQL and checking the results
*
+* 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.
+* CHECK_MYSQL_QUERY.C
+*
+* $Id$
+*
******************************************************************************/
const char *progname = "check_mysql_query";
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index c7be780f95d2a2e74a2ea154baf5fd29caef7d5a..a6ae71f2e172986636ac5dc2a477804e753a4593 100644 (file)
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.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 check_nagios plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_nagios plugin
+*
+* This plugin checks the status of the Nagios process on the local machine
+* The plugin will check to make sure the Nagios status log is no older than
+* the number of minutes specified by the expires option.
+* It also checks the process table for a process matching the command argument.
+*
+*
+* 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$
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index e90cd578a56a43cb019a484c636d3e9d9ee3fa5d..9e4ad67ca6ec049b34967bad2bbe8fa26212352a 100644 (file)
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
/******************************************************************************
- *
- * CHECK_NT.C
- *
- * Program: Windows NT plugin for Nagios
- * License: GPL
- * Copyright (c) 2000-2002 Yves Rubin (rubiyz@yahoo.com)
- *
- * Description:
- *
- * This requires NSClient software to run on NT (http://nsclient.ready2run.nl/)
- *
- * 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$
- *
- *****************************************************************************/
+*
+* Nagios check_nt plugin
+*
+* License: GPL
+* Copyright (c) 2000-2002 Yves Rubin (rubiyz@yahoo.com)
+* Copyright (c) 2003-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_nt plugin
+*
+* This plugin collects data from the NSClient service running on a
+* Windows NT/2000/XP/2003 server.
+* This requires NSClient software to run on NT (http://nsclient.ready2run.nl/)
+*
+* 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_nt";
const char *revision = "$Revision$";
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 29d286136f64a88ca10a51655aeeed2701fe93af..26543f4da18caaf5b09e142a54564e8fbb19ae87 100644 (file)
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
/******************************************************************************
- check_ntp.c: utility to check ntp servers independant of any commandline
- programs or external libraries.
- original author: sean finney <seanius@seanius.net>
- ******************************************************************************
- 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 check_ntp plugin
+*
+* License: GPL
+* Copyright (c) 2006 sean finney <seanius@seanius.net>
+* Copyright (c) 2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_ntp plugin
+*
+* This plugin to check ntp servers independant of any commandline
+* programs or external libraries.
+*
+*
+* 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$
void print_help(void){
print_revision(progname, revision);
- printf ("Copyright (c) 1999 Ethan Galstad\n");
+ printf ("Copyright (c) 2006 Sean Finney\n");
printf (COPYRIGHT, copyright, email);
printf ("%s\n", _("This plugin checks the selected ntp server"));
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index f93dee383376847ca70b406332aa59329764c4b1..91797dc816f5c9d298dee0fd37e31985c5013687 100644 (file)
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.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 check_nwstat plugin
+*
+* License: GPL
+* Copyright (c) 2000-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_nwstat plugin
+*
+* This plugin attempts to contact the MRTGEXT NLM running on a
+* Novell server to gather the requested system information.
+*
+*
+* 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$
printf (_(UT_HOST_PORT), 'p', myport);
- printf (_("\
- -v, --variable=STRING\n\
- Variable to check. Valid variables include:\n\
- LOAD1 = 1 minute average CPU load\n\
- LOAD5 = 5 minute average CPU load\n\
- LOAD15 = 15 minute average CPU load\n\
- CSPROCS = number of current service processes (NW 5.x only)\n\
- ABENDS = number of abended threads (NW 5.x only)\n\
- UPTIME = server uptime\n"));
-
- printf (_("\
- LTCH = percent long term cache hits\n\
- CBUFF = current number of cache buffers\n\
- CDBUFF = current number of dirty cache buffers\n\
- DCB = dirty cache buffers as a percentage of the total\n\
- TCB = dirty cache buffers as a percentage of the original\n"));
-
- printf (_("\
- OFILES = number of open files\n\
- VMF<vol> = MB of free space on Volume <vol>\n\
- VMU<vol> = MB used space on Volume <vol>\n\
- VMP<vol> = MB of purgeable space on Volume <vol>\n\
- VPF<vol> = percent free space on volume <vol>\n\
- VKF<vol> = KB of free space on volume <vol>\n\
- VPP<vol> = percent purgeable space on volume <vol>\n\
- VKP<vol> = KB of purgeable space on volume <vol>\n\
- VPNP<vol> = percent not yet purgeable space on volume <vol>\n\
- VKNP<vol> = KB of not yet purgeable space on volume <vol>\n"));
-
- printf (_("\
- LRUM = LRU sitting time in minutes\n\
- LRUS = LRU sitting time in seconds\n\
- DSDB = check to see if DS Database is open\n\
- DSVER = NDS version\n\
- UPRB = used packet receive buffers\n\
- PUPRB = percent (of max) used packet receive buffers\n\
- SAPENTRIES = number of entries in the SAP table\n\
- SAPENTRIES<n> = number of entries in the SAP table for SAP type <n>\n"));
-
- printf (_("\
- TSYNC = timesync status\n\
- LOGINS = check to see if logins are enabled\n\
- CONNS = number of currently licensed connections\n\
- NRMH = NRM Summary Status\n\
- NRMP<stat> = Returns the current value for a NRM health item\n\
- NRMM<stat> = Returns the current memory stats from NRM\n\
- NRMS<stat> = Returns the current Swapfile stats from NRM\n\
- NSS1<stat> = Statistics from _Admin:Manage_NSS\\GeneralStats.xml\n\
- NSS2<stat> = Statistics from _Admin:Manage_NSS\\BufferCache.xml\n\
- NSS3<stat> = Statistics from _Admin:Manage_NSS\\NameCache.xml\n\
- NSS4<stat> = Statistics from _Admin:Manage_NSS\\FileStats.xml\n\
- NSS5<stat> = Statistics from _Admin:Manage_NSS\\ObjectCache.xml\n\
- NSS6<stat> = Statistics from _Admin:Manage_NSS\\Thread.xml\n\
- NSS7<stat> = Statistics from _Admin:Manage_NSS\\AuthorizationCache.xml\n\
- NLM:<nlm> = check if NLM is loaded and report version\n\
- (e.g. \"NLM:TSANDS.NLM\")\n"));
-
- printf (_("\
- -w, --warning=INTEGER\n\
- Threshold which will result in a warning status\n\
- -c, --critical=INTEGER\n\
- Threshold which will result in a critical status\n\
- -o, --osversion\n\
- Include server version string in results\n"));
+ printf (" %s\n", "-v, --variable=STRING");
+ printf (" %s\n", _("Variable to check. Valid variables include:"));
+ printf (" %s\n", _("LOAD1 = 1 minute average CPU load"));
+ printf (" %s\n", _("LOAD5 = 5 minute average CPU load"));
+ printf (" %s\n", _("LOAD15 = 15 minute average CPU load"));
+ printf (" %s\n", _("CSPROCS = number of current service processes (NW 5.x only)"));
+ printf (" %s\n", _("ABENDS = number of abended threads (NW 5.x only)"));
+ printf (" %s\n", _("UPTIME = server uptime"));
+ printf (" %s\n", _("LTCH = percent long term cache hits"));
+ printf (" %s\n", _("CBUFF = current number of cache buffers"));
+ printf (" %s\n", _("CDBUFF = current number of dirty cache buffers"));
+ printf (" %s\n", _("DCB = dirty cache buffers as a percentage of the total"));
+ printf (" %s\n", _("TCB = dirty cache buffers as a percentage of the original"));
+ printf (" %s\n", _("OFILES = number of open files"));
+ printf (" %s\n", _(" VMF<vol> = MB of free space on Volume <vol>"));
+ printf (" %s\n", _(" VMU<vol> = MB used space on Volume <vol>"));
+ printf (" %s\n", _(" VMP<vol> = MB of purgeable space on Volume <vol>"));
+ printf (" %s\n", _(" VPF<vol> = percent free space on volume <vol>"));
+ printf (" %s\n", _(" VKF<vol> = KB of free space on volume <vol>"));
+ printf (" %s\n", _(" VPP<vol> = percent purgeable space on volume <vol>"));
+ printf (" %s\n", _(" VKP<vol> = KB of purgeable space on volume <vol>"));
+ printf (" %s\n", _(" VPNP<vol> = percent not yet purgeable space on volume <vol>"));
+ printf (" %s\n", _(" VKNP<vol> = KB of not yet purgeable space on volume <vol>"));
+ printf (" %s\n", _(" LRUM = LRU sitting time in minutes"));
+ printf (" %s\n", _(" LRUS = LRU sitting time in seconds"));
+ printf (" %s\n", _(" DSDB = check to see if DS Database is open"));
+ printf (" %s\n", _(" DSVER = NDS version"));
+ printf (" %s\n", _(" UPRB = used packet receive buffers"));
+ printf (" %s\n", _(" PUPRB = percent (of max) used packet receive buffers"));
+ printf (" %s\n", _(" SAPENTRIES = number of entries in the SAP table"));
+ printf (" %s\n", _(" SAPENTRIES<n> = number of entries in the SAP table for SAP type <n>"));
+ printf (" %s\n", _(" TSYNC = timesync status"));
+ printf (" %s\n", _(" LOGINS = check to see if logins are enabled"));
+ printf (" %s\n", _(" CONNS = number of currently licensed connections"));
+ printf (" %s\n", _(" NRMH = NRM Summary Status"));
+ printf (" %s\n", _(" NRMP<stat> = Returns the current value for a NRM health item"));
+ printf (" %s\n", _(" NRMM<stat> = Returns the current memory stats from NRM"));
+ printf (" %s\n", _(" NRMS<stat> = Returns the current Swapfile stats from NRM"));
+ printf (" %s\n", _(" NSS1<stat> = Statistics from _Admin:Manage_NSS\\GeneralStats.xml"));
+ printf (" %s\n", _(" NSS3<stat> = Statistics from _Admin:Manage_NSS\\NameCache.xml"));
+ printf (" %s\n", _(" NSS4<stat> = Statistics from _Admin:Manage_NSS\\FileStats.xml"));
+ printf (" %s\n", _(" NSS5<stat> = Statistics from _Admin:Manage_NSS\\ObjectCache.xml"));
+ printf (" %s\n", _(" NSS6<stat> = Statistics from _Admin:Manage_NSS\\Thread.xml"));
+ printf (" %s\n", _(" NSS7<stat> = Statistics from _Admin:Manage_NSS\\AuthorizationCache.xml"));
+ printf (" %s\n", _(" NLM:<nlm> = check if NLM is loaded and report version"));
+ printf (" %s\n", _(" (e.g. NLM:TSANDS.NLM)"));
+ printf ("\n");
+ printf (" %s\n", "-w, --warning=INTEGER");
+ printf (" %s\n", _("Threshold which will result in a warning status"));
+ printf (" %s\n", "-c, --critical=INTEGER");
+ printf (" %s\n", _("Threshold which will result in a critical status"));
+ printf (" %s\n", "-o, --osversion");
+ printf (" %s\n", _("Include server version string in results"));
printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
printf ("\n");
printf ("%s\n", _("Notes:"));
- printf (_("\
-- This plugin requres that the MRTGEXT.NLM file from James Drews' MRTG\n\
- extension for NetWare be loaded on the Novell servers you wish to check.\n\
- (available from http://www.engr.wisc.edu/~drews/mrtg/)\n\
-- Values for critical thresholds should be lower than warning thresholds\n\
- when the following variables are checked: VPF, VKF, LTCH, CBUFF, DCB, \n\
- TCB, LRUS and LRUM.\n"));
+ printf (" %s\n", _("- This plugin requres that the MRTGEXT.NLM file from James Drews' MRTG"));
+ printf (" %s\n", _(" extension for NetWare be loaded on the Novell servers you wish to check."));
+ printf (" %s\n", _(" (available from http://www.engr.wisc.edu/~drews/mrtg/)"));
+ printf (" %s\n", _("- Values for critical thresholds should be lower than warning thresholds"));
+ printf (" %s\n", _(" when the following variables are checked: VPF, VKF, LTCH, CBUFF, DCB, "));
+ printf (" %S\n", _(" TCB, LRUS and LRUM.\n"));
printf (_(UT_SUPPORT));
}
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index 490490eb0c62564685a57929c601fa4b2df06b2b..2aca8ea5dde8ddcdb00fecc16e068db23e8f78fe 100644 (file)
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.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 check_overcr plugin
+*
+* License: GPL
+* Copyright (c) 2000-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_overcr plugin
+*
+* This plugin attempts to contact the Over-CR collector daemon running on the
+* remote UNIX server in order to gather the requested system information.
+*
+*
+* 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$
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index f258708cdc468f28e41a8f5e87ee487a87b02ec4..41c51413342e6b7b33e35a0421643cb3c64a839e 100644 (file)
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.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 check_pgsql plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_pgsql plugin
+*
+* Test whether a PostgreSQL Database is accepting connections.
+*
+*
+* 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$
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 4168f3523cc5322f75628fc02540312c1a3b8fab..750b055455610a3bc3c4ccd56c8e0aa5a67ce286 100644 (file)
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.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 check_ping plugin
+*
+* License: GPL
+* Copyright (c) 2000-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_ping plugin
+*
+* Use the ping program to check connection statistics for a remote host.
+*
+*
+* 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$
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 82a21eb2f333e02a3c8881c5d07ddd9ae2777e6c..31a2bed922d130527ec6abaec8bd90e04b918f85 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
*
* This file contains the check_procs plugin
*
+* Checks all processes and generates WARNING or CRITICAL states if the specified
+* metric is outside the required threshold ranges. The metric defaults to number
+* of processes. Search filters can be applied to limit the processes to check.
+*
* License Information:
*
* This program is free software; you can redistribute it and/or modify
printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>");
printf (COPYRIGHT, copyright, email);
- printf(_("\
-Checks all processes and generates WARNING or CRITICAL states if the specified\n\
-metric is outside the required threshold ranges. The metric defaults to number\n\
-of processes. Search filters can be applied to limit the processes to check.\n\n"));
+ printf ("%s\n", _("Checks all processes and generates WARNING or CRITICAL states if the specified"));
+ printf ("%s\n", _("metric is outside the required threshold ranges. The metric defaults to number"));
+ printf ("%s\n", _("of processes. Search filters can be applied to limit the processes to check."));
+ printf ("\n\n");
+
print_usage ();
printf(_("\n\