From: Benoit Mortier Date: Thu, 19 Oct 2006 00:25:16 +0000 (+0000) Subject: first pass at cleaning localization for new release X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=082cfc29e3673abf595d70cd05f0a483947c22d5;p=nagiosplug.git 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 --- diff --git a/plugins/check_apt.c b/plugins/check_apt.c index 528dd60..9bc1249 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 - * (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 b1688d0..1d39985 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 68b9a23..77df3c2 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 6563e10..93af7dc 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 af7f8a3..dfd6c9c 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 cdaff97..25ca4a8 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 32f2e6a..a785b51 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 632237a..31a76bd 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 8eadc62..6810f5c 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 \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 611b265..14d27b3 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 - * - * 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] - * 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 - * 1998 Gadi Oxman - * - * 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 +* 1998 Gadi Oxman +* +* Copyright (c) 2000 Robert Dale +* 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] + * 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 7f8b7fd..c33746b 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 -b [-p ] [-a ] [-D ]\n\ - [-P ] [-w ] [-c ]\n\ - [-t timeout]%s\n", -//(Note: all times are in seconds.)\n", - progname, + printf (" %s -H -b [-p ] [-a ] [-D ]",progname); + printf ("[-P ] [-w ] [-c ] [-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 145b9b0..562eaf5 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 f98239c..12e367b 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 877072c..adaf9e2 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 \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 , a WARNING status is returned. If either the\n\ -incoming or outgoing rates exceed the or thresholds (in\n\ -Bytes/sec), a CRITICAL status results. If either of the rates exceed\n\ -the or 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 , a WARNING status is returned. If either the")); + printf ("%s\n", _("incoming or outgoing rates exceed the or thresholds (in")); + printf ("%s\n", _("Bytes/sec), a CRITICAL status results. If either of the rates exceed")); + printf ("%s\n", _("the or 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 \",\"\n\ - -c, --critical\n\ - Critical threshold pair \",\"\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 ,")); + printf (" %s\n", "-c, --critical"); + printf (" %s\n", _("Critical threshold pair ,")); + + 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 or thresholds (in Bytes/sec), a WARNING status results.\n\n")); void print_usage (void) { - printf ("\ -Usage: %s -F -a -v -w \n\ - -c [-e expire_minutes] [-t timeout] [-v]\n", progname); + printf (_("Usage")); + printf (" %s -F -a -v -w ",progname); + printf ("-c [-e expire_minutes] [-t timeout] [-v]\n"); } diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 8c7e4ef..e10211f 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 e129366..ecb7e7f 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 c7be780..a6ae71f 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 e90cd57..9e4ad67 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 29d2861..26543f4 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 - ****************************************************************************** - 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 +* 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 f93dee3..91797dc 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 = MB of free space on Volume \n\ - VMU = MB used space on Volume \n\ - VMP = MB of purgeable space on Volume \n\ - VPF = percent free space on volume \n\ - VKF = KB of free space on volume \n\ - VPP = percent purgeable space on volume \n\ - VKP = KB of purgeable space on volume \n\ - VPNP = percent not yet purgeable space on volume \n\ - VKNP = KB of not yet purgeable space on volume \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 = number of entries in the SAP table for SAP type \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 = Returns the current value for a NRM health item\n\ - NRMM = Returns the current memory stats from NRM\n\ - NRMS = Returns the current Swapfile stats from NRM\n\ - NSS1 = Statistics from _Admin:Manage_NSS\\GeneralStats.xml\n\ - NSS2 = Statistics from _Admin:Manage_NSS\\BufferCache.xml\n\ - NSS3 = Statistics from _Admin:Manage_NSS\\NameCache.xml\n\ - NSS4 = Statistics from _Admin:Manage_NSS\\FileStats.xml\n\ - NSS5 = Statistics from _Admin:Manage_NSS\\ObjectCache.xml\n\ - NSS6 = Statistics from _Admin:Manage_NSS\\Thread.xml\n\ - NSS7 = Statistics from _Admin:Manage_NSS\\AuthorizationCache.xml\n\ - 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 = MB of free space on Volume ")); + printf (" %s\n", _(" VMU = MB used space on Volume ")); + printf (" %s\n", _(" VMP = MB of purgeable space on Volume ")); + printf (" %s\n", _(" VPF = percent free space on volume ")); + printf (" %s\n", _(" VKF = KB of free space on volume ")); + printf (" %s\n", _(" VPP = percent purgeable space on volume ")); + printf (" %s\n", _(" VKP = KB of purgeable space on volume ")); + printf (" %s\n", _(" VPNP = percent not yet purgeable space on volume ")); + printf (" %s\n", _(" VKNP = KB of not yet purgeable space on volume ")); + 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 = number of entries in the SAP table for SAP type ")); + 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 = Returns the current value for a NRM health item")); + printf (" %s\n", _(" NRMM = Returns the current memory stats from NRM")); + printf (" %s\n", _(" NRMS = Returns the current Swapfile stats from NRM")); + printf (" %s\n", _(" NSS1 = Statistics from _Admin:Manage_NSS\\GeneralStats.xml")); + printf (" %s\n", _(" NSS3 = Statistics from _Admin:Manage_NSS\\NameCache.xml")); + printf (" %s\n", _(" NSS4 = Statistics from _Admin:Manage_NSS\\FileStats.xml")); + printf (" %s\n", _(" NSS5 = Statistics from _Admin:Manage_NSS\\ObjectCache.xml")); + printf (" %s\n", _(" NSS6 = Statistics from _Admin:Manage_NSS\\Thread.xml")); + printf (" %s\n", _(" NSS7 = Statistics from _Admin:Manage_NSS\\AuthorizationCache.xml")); + printf (" %s\n", _(" 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 490490e..2aca8ea 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 f258708..41c5141 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 4168f35..750b055 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 82a21eb..31a2bed 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 "); 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\