diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-10-19 00:25:16 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-10-19 00:25:16 +0000 |
commit | 082cfc29e3673abf595d70cd05f0a483947c22d5 (patch) | |
tree | ad3b7e973e4cb01c1fc02999da2ad3b0640f1b99 /plugins | |
parent | 584562a48ea731a3bf98d66c6602c64e1e72c63a (diff) | |
download | monitoring-plugins-082cfc29e3673abf595d70cd05f0a483947c22d5.tar.gz |
first pass at cleaning localization for new release
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_apt.c | 175 | ||||
-rw-r--r-- | plugins/check_by_ssh.c | 49 | ||||
-rw-r--r-- | plugins/check_dig.c | 49 | ||||
-rw-r--r-- | plugins/check_dns.c | 56 | ||||
-rw-r--r-- | plugins/check_dummy.c | 46 | ||||
-rw-r--r-- | plugins/check_fping.c | 46 | ||||
-rw-r--r-- | plugins/check_game.c | 18 | ||||
-rw-r--r-- | plugins/check_hpjd.c | 17 | ||||
-rw-r--r-- | plugins/check_http.c | 60 | ||||
-rw-r--r-- | plugins/check_ide_smart.c | 82 | ||||
-rw-r--r-- | plugins/check_ldap.c | 52 | ||||
-rw-r--r-- | plugins/check_load.c | 44 | ||||
-rw-r--r-- | plugins/check_mrtg.c | 47 | ||||
-rw-r--r-- | plugins/check_mrtgtraf.c | 107 | ||||
-rw-r--r-- | plugins/check_mysql.c | 34 | ||||
-rw-r--r-- | plugins/check_mysql_query.c | 31 | ||||
-rw-r--r-- | plugins/check_nagios.c | 47 | ||||
-rw-r--r-- | plugins/check_nt.c | 66 | ||||
-rw-r--r-- | plugins/check_ntp.c | 51 | ||||
-rw-r--r-- | plugins/check_nwstat.c | 175 | ||||
-rw-r--r-- | plugins/check_overcr.c | 45 | ||||
-rw-r--r-- | plugins/check_pgsql.c | 44 | ||||
-rw-r--r-- | plugins/check_ping.c | 44 | ||||
-rw-r--r-- | plugins/check_procs.c | 13 |
24 files changed, 879 insertions, 519 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c index 528dd60c..9bc1249f 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c @@ -1,22 +1,35 @@ /****************************************************************************** - * 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$ @@ -196,66 +209,6 @@ int process_arguments (int argc, char **argv) { } -/* 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; @@ -445,3 +398,69 @@ char* construct_cmdline(upgrade_type u, const char *opts){ 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 b1688d0e..1d39985f 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c @@ -1,22 +1,35 @@ /****************************************************************************** - - 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 68b9a23b..77df3c2e 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c @@ -1,21 +1,34 @@ /***************************************************************************** - - 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: @@ -26,7 +39,7 @@ 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 6563e103..93af7dc5 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c @@ -1,29 +1,43 @@ /****************************************************************************** - - 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 af7f8a3d..dfd6c9c2 100644 --- a/plugins/check_dummy.c +++ b/plugins/check_dummy.c @@ -1,18 +1,34 @@ /****************************************************************************** - - 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$ @@ -20,7 +36,7 @@ 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 cdaff973..25ca4a8d 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c @@ -1,18 +1,34 @@ /****************************************************************************** - - 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$ @@ -20,7 +36,7 @@ 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 32f2e6a9..a785b511 100644 --- a/plugins/check_game.c +++ b/plugins/check_game.c @@ -1,5 +1,21 @@ /****************************************************************************** * +* 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 @@ -19,7 +35,7 @@ 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 632237ac..31a76bd2 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c @@ -1,5 +1,22 @@ /****************************************************************************** * +* 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 8eadc62e..6810f5c1 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -1,18 +1,37 @@ /****************************************************************************** - - 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$ @@ -21,7 +40,7 @@ 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" @@ -1217,11 +1236,10 @@ print_help (void) 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"); @@ -1302,7 +1320,7 @@ certificate expiration times.")); 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\ diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c index 611b2652..14d27b33 100644 --- a/plugins/check_ide_smart.c +++ b/plugins/check_ide_smart.c @@ -1,38 +1,39 @@ -/* - * 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$ */ @@ -525,6 +526,17 @@ print_help (void) 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 7f8b7fd9..c33746b9 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -1,18 +1,31 @@ /****************************************************************************** - - 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$ @@ -388,16 +401,17 @@ print_help (void) 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 145b9b01..562eaf5d 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c @@ -1,18 +1,34 @@ /****************************************************************************** - - 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 f98239c7..12e367bd 100644 --- a/plugins/check_mrtg.c +++ b/plugins/check_mrtg.c @@ -1,18 +1,35 @@ /****************************************************************************** - - 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$ @@ -20,7 +37,7 @@ 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" diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c index 877072ce..adaf9e25 100644 --- a/plugins/check_mrtgtraf.c +++ b/plugins/check_mrtgtraf.c @@ -1,18 +1,35 @@ /****************************************************************************** - - 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$ @@ -23,7 +40,7 @@ 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 **); @@ -317,38 +334,38 @@ print_help (void) 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)); } @@ -358,7 +375,7 @@ the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.\n\n")); 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 8c7e4ef0..e10211fa 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -1,17 +1,39 @@ /****************************************************************************** * -* 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"; diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c index e1293666..ecb7e7fe 100644 --- a/plugins/check_mysql_query.c +++ b/plugins/check_mysql_query.c @@ -1,16 +1,37 @@ /****************************************************************************** * -* 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 c7be780f..a6ae71f2 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c @@ -1,18 +1,37 @@ /****************************************************************************** - - 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 e90cd578..9e4ad67c 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c @@ -1,34 +1,40 @@ /****************************************************************************** - * - * 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 29d28613..26543f4d 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c @@ -1,21 +1,36 @@ /****************************************************************************** - 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$ @@ -777,7 +792,7 @@ int main(int argc, char *argv[]){ 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 f93dee38..91797dc8 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c @@ -1,18 +1,35 @@ /****************************************************************************** - - 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$ @@ -1596,82 +1613,70 @@ void print_help(void) 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 490490eb..2aca8ea5 100644 --- a/plugins/check_overcr.c +++ b/plugins/check_overcr.c @@ -1,18 +1,35 @@ /****************************************************************************** - - 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 f258708c..41c51413 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c @@ -1,18 +1,34 @@ /****************************************************************************** - - 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 4168f352..750b0554 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c @@ -1,18 +1,34 @@ /****************************************************************************** - - 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 82a21eb2..31a2bed9 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -11,6 +11,10 @@ * * 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 @@ -665,11 +669,12 @@ print_help (void) 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\ |