diff options
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | * check_apt.c: check for available updates in apt package management systems | 2 | * |
3 | * original author: sean finney <seanius@seanius.net> | 3 | * Nagios check_apt plugin |
4 | * (with some common bits stolen from check_nagios.c) | 4 | * |
5 | ****************************************************************************** | 5 | * License: GPL |
6 | 6 | * Copyright (c) 1999-2006 nagios-plugins team | |
7 | This program is free software; you can redistribute it and/or modify | 7 | * |
8 | it under the terms of the GNU General Public License as published by | 8 | * Original author: sean finney |
9 | the Free Software Foundation; either version 2 of the License, or | 9 | * |
10 | (at your option) any later version. | 10 | * Last Modified: $Date$ |
11 | 11 | * | |
12 | This program is distributed in the hope that it will be useful, | 12 | * Description: |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | * This file contains the check_apt plugin |
15 | GNU General Public License for more details. | 15 | * |
16 | 16 | * check for available updates in apt package management systems | |
17 | You should have received a copy of the GNU General Public License | 17 | * |
18 | along with this program; if not, write to the Free Software | 18 | * License Information: |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 19 | * |
20 | * This program is free software; you can redistribute it and/or modify | ||
21 | * it under the terms of the GNU General Public License as published by | ||
22 | * the Free Software Foundation; either version 2 of the License, or | ||
23 | * (at your option) any later version. | ||
24 | * | ||
25 | * This program is distributed in the hope that it will be useful, | ||
26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
28 | * GNU General Public License for more details. | ||
29 | * | ||
30 | * You should have received a copy of the GNU General Public License | ||
31 | * along with this program; if not, write to the Free Software | ||
32 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
20 | 33 | ||
21 | $Id$ | 34 | $Id$ |
22 | 35 | ||
@@ -196,66 +209,6 @@ int process_arguments (int argc, char **argv) { | |||
196 | } | 209 | } |
197 | 210 | ||
198 | 211 | ||
199 | /* informative help message */ | ||
200 | void print_help(void){ | ||
201 | print_revision(progname, revision); | ||
202 | printf(_(COPYRIGHT), copyright, email); | ||
203 | printf(_("\ | ||
204 | This plugin checks for software updates on systems that use\n\ | ||
205 | package management systems based on the apt-get(8) command\n\ | ||
206 | found in Debian GNU/Linux\n\ | ||
207 | \n\n")); | ||
208 | print_usage(); | ||
209 | printf(_(UT_HELP_VRSN)); | ||
210 | printf(_(UT_TIMEOUT), timeout_interval); | ||
211 | printf(_("\n\ | ||
212 | -U, --upgrade=OPTS\n\ | ||
213 | [Default] Perform an upgrade. If an optional OPTS argument is provided,\n\ | ||
214 | apt-get will be run with these command line options instead of the\n\ | ||
215 | default (%s).\n\ | ||
216 | Note that you may be required to have root privileges if you do not use\n\ | ||
217 | the default options.\n\ | ||
218 | -d, --dist-upgrade=OPTS\n\ | ||
219 | Perform a dist-upgrade instead of normal upgrade. Like with -U OPTS\n\ | ||
220 | can be provided to override the default options.\n\ | ||
221 | -n, --no-upgrade\n\ | ||
222 | Do not run the upgrade. Probably not useful (without -u at least).\n\ | ||
223 | -i, --include=REGEXP\n\ | ||
224 | Include only packages matching REGEXP. Can be specified multiple times;\n\ | ||
225 | the values will be combined together. Any patches matching this list\n\ | ||
226 | cause the plugin to return WARNING status. Others will be ignored.\n\ | ||
227 | Default is to include all packages.\n\ | ||
228 | -e, --exclude=REGEXP\n\ | ||
229 | Exclude packages matching REGEXP from the list of packages that would\n\ | ||
230 | otherwise be included. Can be specified multiple times; the values\n\ | ||
231 | will be combined together. Default is to exclude no packages.\n\ | ||
232 | -c, --critical=REGEXP\n\ | ||
233 | If the full package information of any of the upgradable packages match\n\ | ||
234 | this REGEXP, the plugin will return CRITICAL status. Can be specified\n\ | ||
235 | multiple times like above. Default is a regexp matching security\n\ | ||
236 | upgrades for Debian and Ubuntu:\n\ | ||
237 | \t%s\n\ | ||
238 | Note that the package must first match the include list before its\n\ | ||
239 | information is compared against the critical list.\n\ | ||
240 | \n\n"), | ||
241 | UPGRADE_DEFAULT_OPTS, SECURITY_RE); | ||
242 | printf(_("\ | ||
243 | The following options require root privileges and should be used with care: \ | ||
244 | \n\n")); | ||
245 | printf(_("\ | ||
246 | -u, --update=OPTS\n\ | ||
247 | First perform an 'apt-get update'. An optional OPTS parameter overrides\n\ | ||
248 | the default options. Note: you may also need to adjust the global \n\ | ||
249 | timeout (with -t) to prevent the plugin from timing out if apt-get\n\ | ||
250 | upgrade is expected to take longer than the default timeout.\n\ | ||
251 | \n\n")); | ||
252 | } | ||
253 | |||
254 | /* simple usage heading */ | ||
255 | void print_usage(void){ | ||
256 | printf ("Usage: %s [[-d|-u|-U]opts] [-n] [-t timeout]\n", progname); | ||
257 | } | ||
258 | |||
259 | /* run an apt-get upgrade */ | 212 | /* run an apt-get upgrade */ |
260 | int run_upgrade(int *pkgcount, int *secpkgcount){ | 213 | int run_upgrade(int *pkgcount, int *secpkgcount){ |
261 | int i=0, result=STATE_UNKNOWN, regres=0, pc=0, spc=0; | 214 | 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){ | |||
445 | sprintf(cmd, "%s %s %s", PATH_TO_APTGET, opts_ptr, aptcmd); | 398 | sprintf(cmd, "%s %s %s", PATH_TO_APTGET, opts_ptr, aptcmd); |
446 | return cmd; | 399 | return cmd; |
447 | } | 400 | } |
401 | |||
402 | /* informative help message */ | ||
403 | void | ||
404 | print_help (void) | ||
405 | { | ||
406 | print_revision(progname, revision); | ||
407 | |||
408 | printf(_(COPYRIGHT), copyright, email); | ||
409 | |||
410 | printf("%s\n", _("This plugin checks for software updates on systems that use")); | ||
411 | printf("%s\n", _("package management systems based on the apt-get(8) command")); | ||
412 | printf("%s\n", _("found in Debian GNU/Linux")); | ||
413 | |||
414 | print_usage(); | ||
415 | |||
416 | printf(_(UT_HELP_VRSN)); | ||
417 | |||
418 | printf(_(UT_TIMEOUT), timeout_interval); | ||
419 | |||
420 | printf(_("\n\ | ||
421 | -U, --upgrade=OPTS\n\ | ||
422 | [Default] Perform an upgrade. If an optional OPTS argument is provided,\n\ | ||
423 | apt-get will be run with these command line options instead of the\n\ | ||
424 | default (%s).\n\ | ||
425 | Note that you may be required to have root privileges if you do not use\n\ | ||
426 | the default options.\n\ | ||
427 | -d, --dist-upgrade=OPTS\n\ | ||
428 | Perform a dist-upgrade instead of normal upgrade. Like with -U OPTS\n\ | ||
429 | can be provided to override the default options.\n\ | ||
430 | -n, --no-upgrade\n\ | ||
431 | Do not run the upgrade. Probably not useful (without -u at least).\n\ | ||
432 | -i, --include=REGEXP\n\ | ||
433 | Include only packages matching REGEXP. Can be specified multiple times;\n\ | ||
434 | the values will be combined together. Any patches matching this list\n\ | ||
435 | cause the plugin to return WARNING status. Others will be ignored.\n\ | ||
436 | Default is to include all packages.\n\ | ||
437 | -e, --exclude=REGEXP\n\ | ||
438 | Exclude packages matching REGEXP from the list of packages that would\n\ | ||
439 | otherwise be included. Can be specified multiple times; the values\n\ | ||
440 | will be combined together. Default is to exclude no packages.\n\ | ||
441 | -c, --critical=REGEXP\n\ | ||
442 | If the full package information of any of the upgradable packages match\n\ | ||
443 | this REGEXP, the plugin will return CRITICAL status. Can be specified\n\ | ||
444 | multiple times like above. Default is a regexp matching security\n\ | ||
445 | upgrades for Debian and Ubuntu:\n\ | ||
446 | \t%s\n\ | ||
447 | Note that the package must first match the include list before its\n\ | ||
448 | information is compared against the critical list.\n\ | ||
449 | \n\n"), | ||
450 | UPGRADE_DEFAULT_OPTS, SECURITY_RE); | ||
451 | |||
452 | printf ("%s\n\n", _("The following options require root privileges and should be used with care:")); | ||
453 | printf (" %s\n", "-u, --update=OPTS"); | ||
454 | printf (" %s\n", _("First perform an 'apt-get update'. An optional OPTS parameter overrides")); | ||
455 | printf (" %s\n", _("the default options. Note: you may also need to adjust the global")); | ||
456 | printf (" %s\n", _("timeout (with -t) to prevent the plugin from timing out if apt-get")); | ||
457 | printf (" %s\n", _("upgrade is expected to take longer than the default timeout.")); | ||
458 | } | ||
459 | |||
460 | |||
461 | /* simple usage heading */ | ||
462 | void | ||
463 | print_usage(void) | ||
464 | { | ||
465 | printf ("Usage: %s [[-d|-u|-U]opts] [-n] [-t timeout]\n", progname); | ||
466 | } | ||
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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | The Nagios Plugins are free software; you can redistribute them | 3 | * Nagios check_by_ssh plugin |
4 | and/or modify them under the terms of the GNU General Public | 4 | * |
5 | License as published by the Free Software Foundation; either | 5 | * License: GPL |
6 | version 2 of the License, or (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, but | 8 | * Last Modified: $Date$ |
9 | WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 10 | * Description: |
11 | General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_by_ssh plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * License Information: |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | 16 | * This program is free software; you can redistribute it and/or modify | |
17 | $Id$ | 17 | * it under the terms of the GNU General Public License as published by |
18 | 18 | * the Free Software Foundation; either version 2 of the License, or | |
19 | *****************************************************************************/ | 19 | * (at your option) any later version. |
20 | * | ||
21 | * This program is distributed in the hope that it will be useful, | ||
22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
24 | * GNU General Public License for more details. | ||
25 | * | ||
26 | * You should have received a copy of the GNU General Public License | ||
27 | * along with this program; if not, write to the Free Software | ||
28 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
29 | * | ||
30 | * $Id$ | ||
31 | * | ||
32 | ******************************************************************************/ | ||
20 | 33 | ||
21 | const char *progname = "check_by_ssh"; | 34 | const char *progname = "check_by_ssh"; |
22 | const char *revision = "$Revision$"; | 35 | 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 @@ | |||
1 | /***************************************************************************** | 1 | /***************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_dig plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_dig plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * License Information: |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | 16 | * This program is free software; you can redistribute it and/or modify | |
17 | $Id$ | 17 | * it under the terms of the GNU General Public License as published by |
18 | 18 | * the Free Software Foundation; either version 2 of the License, or | |
19 | * (at your option) any later version. | ||
20 | * | ||
21 | * This program is distributed in the hope that it will be useful, | ||
22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
24 | * GNU General Public License for more details. | ||
25 | * | ||
26 | * You should have received a copy of the GNU General Public License | ||
27 | * along with this program; if not, write to the Free Software | ||
28 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
29 | * | ||
30 | * $Id$ | ||
31 | * | ||
19 | *****************************************************************************/ | 32 | *****************************************************************************/ |
20 | 33 | ||
21 | /* Hackers note: | 34 | /* Hackers note: |
@@ -26,7 +39,7 @@ | |||
26 | 39 | ||
27 | const char *progname = "check_dig"; | 40 | const char *progname = "check_dig"; |
28 | const char *revision = "$Revision$"; | 41 | const char *revision = "$Revision$"; |
29 | const char *copyright = "2002-2005"; | 42 | const char *copyright = "2002-2006"; |
30 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 43 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
31 | 44 | ||
32 | #include "common.h" | 45 | #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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_dns plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_dns plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * LIMITATION: nslookup on Solaris 7 can return output over 2 lines, which will not |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * be picked up by this plugin |
16 | 16 | * | |
17 | LIMITATION: nslookup on Solaris 7 can return output over 2 lines, which will not | 17 | * License Information: |
18 | be picked up by this plugin | 18 | * |
19 | 19 | * This program is free software; you can redistribute it and/or modify | |
20 | $Id$ | 20 | * it under the terms of the GNU General Public License as published by |
21 | 21 | * the Free Software Foundation; either version 2 of the License, or | |
22 | * (at your option) any later version. | ||
23 | * | ||
24 | * This program is distributed in the hope that it will be useful, | ||
25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
27 | * GNU General Public License for more details. | ||
28 | * | ||
29 | * You should have received a copy of the GNU General Public License | ||
30 | * along with this program; if not, write to the Free Software | ||
31 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
32 | * | ||
33 | * | ||
34 | * $Id$ | ||
35 | * | ||
22 | ******************************************************************************/ | 36 | ******************************************************************************/ |
23 | 37 | ||
24 | const char *progname = "check_dns"; | 38 | const char *progname = "check_dns"; |
25 | const char *revision = "$Revision$"; | 39 | const char *revision = "$Revision$"; |
26 | const char *copyright = "2000-2005"; | 40 | const char *copyright = "2000-2006"; |
27 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 41 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
28 | 42 | ||
29 | #include "common.h" | 43 | #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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_dummy plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_dummy plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * This plugin will simply return the state corresponding to the numeric value |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | * | ||
17 | * License Information: | ||
18 | * | ||
19 | * This program is free software; you can redistribute it and/or modify | ||
20 | * it under the terms of the GNU General Public License as published by | ||
21 | * the Free Software Foundation; either version 2 of the License, or | ||
22 | * (at your option) any later version. | ||
23 | * | ||
24 | * This program is distributed in the hope that it will be useful, | ||
25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
27 | * GNU General Public License for more details. | ||
28 | * | ||
29 | * You should have received a copy of the GNU General Public License | ||
30 | * along with this program; if not, write to the Free Software | ||
31 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 32 | ||
17 | $Id$ | 33 | $Id$ |
18 | 34 | ||
@@ -20,7 +36,7 @@ | |||
20 | 36 | ||
21 | const char *progname = "check_dummy"; | 37 | const char *progname = "check_dummy"; |
22 | const char *revision = "$Revision$"; | 38 | const char *revision = "$Revision$"; |
23 | const char *copyright = "1999-2005"; | 39 | const char *copyright = "1999-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 40 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
25 | 41 | ||
26 | #include "common.h" | 42 | #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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_fping plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_disk plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * This plugin will use the fping command to ping the specified host for a fast check |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | * | ||
17 | * License Information: | ||
18 | * | ||
19 | * This program is free software; you can redistribute it and/or modify | ||
20 | * it under the terms of the GNU General Public License as published by | ||
21 | * the Free Software Foundation; either version 2 of the License, or | ||
22 | * (at your option) any later version. | ||
23 | * | ||
24 | * This program is distributed in the hope that it will be useful, | ||
25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
27 | * GNU General Public License for more details. | ||
28 | * | ||
29 | * You should have received a copy of the GNU General Public License | ||
30 | * along with this program; if not, write to the Free Software | ||
31 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 32 | ||
17 | $Id$ | 33 | $Id$ |
18 | 34 | ||
@@ -20,7 +36,7 @@ | |||
20 | 36 | ||
21 | const char *progname = "check_fping"; | 37 | const char *progname = "check_fping"; |
22 | const char *revision = "$Revision$"; | 38 | const char *revision = "$Revision$"; |
23 | const char *copyright = "2000-2004"; | 39 | const char *copyright = "2000-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 40 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
25 | 41 | ||
26 | #include "common.h" | 42 | #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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | * | 2 | * |
3 | * Nagios check_game plugin | ||
4 | * | ||
5 | * License: GPL | ||
6 | * Copyright (c) 1999-2006 nagios-plugins team | ||
7 | * | ||
8 | * Last Modified: $Date$ | ||
9 | * | ||
10 | * Description: | ||
11 | * | ||
12 | * This file contains the check_game plugin | ||
13 | * | ||
14 | * This plugin tests game server connections with the specified host. | ||
15 | * using the qstat program | ||
16 | * | ||
17 | * License Information: | ||
18 | * | ||
3 | * This program is free software; you can redistribute it and/or modify | 19 | * This program is free software; you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 20 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation; either version 2 of the License, or | 21 | * the Free Software Foundation; either version 2 of the License, or |
@@ -19,7 +35,7 @@ | |||
19 | 35 | ||
20 | const char *progname = "check_game"; | 36 | const char *progname = "check_game"; |
21 | const char *revision = "$Revision$"; | 37 | const char *revision = "$Revision$"; |
22 | const char *copyright = "2002-2005"; | 38 | const char *copyright = "2002-2006"; |
23 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 39 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
24 | 40 | ||
25 | #include "common.h" | 41 | #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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | * | 2 | * |
3 | * Nagios check_hpjd plugin | ||
4 | * | ||
5 | * License: GPL | ||
6 | * Copyright (c) 1999-2006 nagios-plugins team | ||
7 | * | ||
8 | * Last Modified: $Date$ | ||
9 | * | ||
10 | * Description: | ||
11 | * | ||
12 | * This file contains the check_hpjd plugin | ||
13 | * | ||
14 | * This plugin tests the STATUS of an HP printer with a JetDirect card. | ||
15 | * Net-snmp must be installed on the computer running the plugin. | ||
16 | * | ||
17 | * | ||
18 | * License Information: | ||
19 | * | ||
3 | * This program is free software; you can redistribute it and/or modify | 20 | * This program is free software; you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 21 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation; either version 2 of the License, or | 22 | * 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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_http plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_http plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * This plugin tests the HTTP service on the specified host. It can test |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * normal (http) and secure (https) servers, follow redirects, search for |
16 | * strings and regular expressions, check connection times, and report on | ||
17 | * certificate expiration times. | ||
18 | * | ||
19 | * | ||
20 | * License Information: | ||
21 | * | ||
22 | * This program is free software; you can redistribute it and/or modify | ||
23 | * it under the terms of the GNU General Public License as published by | ||
24 | * the Free Software Foundation; either version 2 of the License, or | ||
25 | * (at your option) any later version. | ||
26 | * | ||
27 | * This program is distributed in the hope that it will be useful, | ||
28 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
29 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
30 | * GNU General Public License for more details. | ||
31 | * | ||
32 | * You should have received a copy of the GNU General Public License | ||
33 | * along with this program; if not, write to the Free Software | ||
34 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 35 | ||
17 | $Id$ | 36 | $Id$ |
18 | 37 | ||
@@ -21,7 +40,7 @@ | |||
21 | 40 | ||
22 | const char *progname = "check_http"; | 41 | const char *progname = "check_http"; |
23 | const char *revision = "$Revision$"; | 42 | const char *revision = "$Revision$"; |
24 | const char *copyright = "1999-2005"; | 43 | const char *copyright = "1999-2006"; |
25 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 44 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
26 | 45 | ||
27 | #include "common.h" | 46 | #include "common.h" |
@@ -1217,11 +1236,10 @@ print_help (void) | |||
1217 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); | 1236 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); |
1218 | printf (COPYRIGHT, copyright, email); | 1237 | printf (COPYRIGHT, copyright, email); |
1219 | 1238 | ||
1220 | printf (_("\ | 1239 | printf ("%s\n", _("This plugin tests the HTTP service on the specified host. It can test")); |
1221 | This plugin tests the HTTP service on the specified host. It can test\n\ | 1240 | printf ("%s\n", _("normal (http) and secure (https) servers, follow redirects, search for")); |
1222 | normal (http) and secure (https) servers, follow redirects, search for\n\ | 1241 | printf ("%s\n", _("strings and regular expressions, check connection times, and report on")); |
1223 | strings and regular expressions, check connection times, and report on\n\ | 1242 | printf ("%s\n", _("certificate expiration times.")); |
1224 | certificate expiration times.")); | ||
1225 | 1243 | ||
1226 | printf ("\n\n"); | 1244 | printf ("\n\n"); |
1227 | 1245 | ||
@@ -1302,7 +1320,7 @@ certificate expiration times.")); | |||
1302 | 1320 | ||
1303 | printf (_(UT_VERBOSE)); | 1321 | printf (_(UT_VERBOSE)); |
1304 | 1322 | ||
1305 | printf (_("\ | 1323 | printf (_("\ |
1306 | This plugin will attempt to open an HTTP connection with the host. Successful\n\ | 1324 | This plugin will attempt to open an HTTP connection with the host. Successful\n\ |
1307 | connects return STATE_OK, refusals and timeouts return STATE_CRITICAL, other\n\ | 1325 | connects return STATE_OK, refusals and timeouts return STATE_CRITICAL, other\n\ |
1308 | errors return STATE_UNKNOWN. Successful connects, but incorrect reponse\n\ | 1326 | 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 @@ | |||
1 | /* | 1 | /****************************************************************************** |
2 | * check_ide-smart v.1 - hacked version of ide-smart for Nagios | 2 | * Nagios check_ide_smart plugin |
3 | * Copyright (C) 2000 Robert Dale <rdale@digital-mission.com> | 3 | * |
4 | * | 4 | * License: GPL |
5 | * Nagios - http://www.nagios.org | 5 | * |
6 | * | 6 | * ide-smart 1.3 - IDE S.M.A.R.T. checking tool |
7 | * Notes: | 7 | * Copyright (C) 1998-1999 Ragnar Hojland Espinosa <ragnar@lightside.dhis.org> |
8 | * ide-smart has the same functionality as before. Some return | 8 | * 1998 Gadi Oxman <gadio@netvision.net.il> |
9 | * values were changed, otherwise the --nagios option was added. | 9 | * |
10 | * | 10 | * Copyright (c) 2000 Robert Dale <rdale@digital-mission.com> |
11 | * Run with: check_ide-smart --nagios [-d] <DRIVE> | 11 | * Copyright (c) 2000-2006 nagios-plugins team |
12 | * Where DRIVE is an IDE drive, ie. /dev/hda, /dev/hdb, /dev/hdc | 12 | * |
13 | * | 13 | * Last Modified: $Date$ |
14 | * - Returns 0 on no errors | 14 | * |
15 | * - Returns 1 on advisories | 15 | * Description: |
16 | * - Returns 2 on prefailure | 16 | * |
17 | * - Returns -1 not too often | 17 | * This file contains the check_ide_smart plugin |
18 | * | 18 | * |
19 | * ide-smart 1.3 - IDE S.M.A.R.T. checking tool | 19 | * This plugin checks a local hard drive with the (Linux specific) SMART interface |
20 | * Copyright (C) 1998-1999 Ragnar Hojland Espinosa <ragnar@lightside.dhis.org> | 20 | * |
21 | * 1998 Gadi Oxman <gadio@netvision.net.il> | 21 | * |
22 | * | 22 | * License Information: |
23 | * This program is free software; you can redistribute it and/or modify | 23 | * |
24 | * it under the terms of the GNU General Public License as published by | 24 | * This program is free software; you can redistribute it and/or modify |
25 | * the Free Software Foundation; either version 2 of the License, or | 25 | * it under the terms of the GNU General Public License as published by |
26 | * (at your option) any later version. | 26 | * the Free Software Foundation; either version 2 of the License, or |
27 | * | 27 | * (at your option) any later version. |
28 | * This program is distributed in the hope that it will be useful, | 28 | * |
29 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 29 | * This program is distributed in the hope that it will be useful, |
30 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 30 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
31 | * GNU General Public License for more details. | 31 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
32 | * | 32 | * GNU General Public License for more details. |
33 | * You should have received a copy of the GNU General Public License | 33 | * |
34 | * along with this program; if not, write to the Free Software | 34 | * You should have received a copy of the GNU General Public License |
35 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 35 | * along with this program; if not, write to the Free Software |
36 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
36 | * | 37 | * |
37 | * $Id$ | 38 | * $Id$ |
38 | */ | 39 | */ |
@@ -525,6 +526,17 @@ print_help (void) | |||
525 | printf (_(UT_SUPPORT)); | 526 | printf (_(UT_SUPPORT)); |
526 | } | 527 | } |
527 | 528 | ||
529 | /* todo : add to the long nanual as example | ||
530 | * | ||
531 | * Run with: check_ide-smart --nagios [-d] <DRIVE> | ||
532 | * Where DRIVE is an IDE drive, ie. /dev/hda, /dev/hdb, /dev/hdc | ||
533 | * | ||
534 | * - Returns 0 on no errors | ||
535 | * - Returns 1 on advisories | ||
536 | * - Returns 2 on prefailure | ||
537 | * - Returns -1 not too often | ||
538 | */ | ||
539 | |||
528 | 540 | ||
529 | void | 541 | void |
530 | print_usage (void) | 542 | 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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_ldap plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_ldap plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * License Information: |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | * This program is free software; you can redistribute it and/or modify | ||
17 | * it under the terms of the GNU General Public License as published by | ||
18 | * the Free Software Foundation; either version 2 of the License, or | ||
19 | * (at your option) any later version. | ||
20 | * | ||
21 | * This program is distributed in the hope that it will be useful, | ||
22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
24 | * GNU General Public License for more details. | ||
25 | * | ||
26 | * You should have received a copy of the GNU General Public License | ||
27 | * along with this program; if not, write to the Free Software | ||
28 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 29 | ||
17 | $Id$ | 30 | $Id$ |
18 | 31 | ||
@@ -388,16 +401,17 @@ print_help (void) | |||
388 | printf (_(UT_SUPPORT)); | 401 | printf (_(UT_SUPPORT)); |
389 | } | 402 | } |
390 | 403 | ||
404 | /* todo | ||
405 | * add option -4 and -6 to the long manual | ||
406 | * | ||
407 | */ | ||
391 | 408 | ||
392 | void | 409 | void |
393 | print_usage (void) | 410 | print_usage (void) |
394 | { | 411 | { |
395 | printf (_("Usage:")); | 412 | printf (_("Usage:")); |
396 | printf ("\%s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\ | 413 | printf (" %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]",progname); |
397 | [-P <password>] [-w <warn_time>] [-c <crit_time>]\n\ | 414 | printf ("[-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]\n", |
398 | [-t timeout]%s\n", | ||
399 | //(Note: all times are in seconds.)\n", | ||
400 | progname, | ||
401 | #ifdef HAVE_LDAP_SET_OPTION | 415 | #ifdef HAVE_LDAP_SET_OPTION |
402 | " [-2|-3] [-4|-6]" | 416 | " [-2|-3] [-4|-6]" |
403 | #else | 417 | #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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_load plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_load plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * This plugin tests the current system load average. |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | * | ||
17 | * License Information: | ||
18 | * | ||
19 | * This program is free software; you can redistribute it and/or modify | ||
20 | * it under the terms of the GNU General Public License as published by | ||
21 | * the Free Software Foundation; either version 2 of the License, or | ||
22 | * (at your option) any later version. | ||
23 | * | ||
24 | * This program is distributed in the hope that it will be useful, | ||
25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
27 | * GNU General Public License for more details. | ||
28 | * | ||
29 | * You should have received a copy of the GNU General Public License | ||
30 | * along with this program; if not, write to the Free Software | ||
31 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 32 | ||
17 | $Id$ | 33 | $Id$ |
18 | 34 | ||
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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_mrtg plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_mrtg plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * This plugin will check either the average or maximum value of one of the |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * two variables recorded in an MRTG log file. |
16 | * | ||
17 | * | ||
18 | * License Information: | ||
19 | * | ||
20 | * This program is free software; you can redistribute it and/or modify | ||
21 | * it under the terms of the GNU General Public License as published by | ||
22 | * the Free Software Foundation; either version 2 of the License, or | ||
23 | * (at your option) any later version. | ||
24 | * | ||
25 | * This program is distributed in the hope that it will be useful, | ||
26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
28 | * GNU General Public License for more details. | ||
29 | * | ||
30 | * You should have received a copy of the GNU General Public License | ||
31 | * along with this program; if not, write to the Free Software | ||
32 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 33 | ||
17 | $Id$ | 34 | $Id$ |
18 | 35 | ||
@@ -20,7 +37,7 @@ | |||
20 | 37 | ||
21 | const char *progname = "check_mrtg"; | 38 | const char *progname = "check_mrtg"; |
22 | const char *revision = "$Revision$"; | 39 | const char *revision = "$Revision$"; |
23 | const char *copyright = "1999-2004"; | 40 | const char *copyright = "1999-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 41 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
25 | 42 | ||
26 | #include "common.h" | 43 | #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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_mrtgtraf plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_mtrgtraf plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * This plugin will check the incoming/outgoing transfer rates of a router |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * switch, etc recorded in an MRTG log. |
16 | * | ||
17 | * | ||
18 | * License Information: | ||
19 | * | ||
20 | * This program is free software; you can redistribute it and/or modify | ||
21 | * it under the terms of the GNU General Public License as published by | ||
22 | * the Free Software Foundation; either version 2 of the License, or | ||
23 | * (at your option) any later version. | ||
24 | * | ||
25 | * This program is distributed in the hope that it will be useful, | ||
26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
28 | * GNU General Public License for more details. | ||
29 | * | ||
30 | * You should have received a copy of the GNU General Public License | ||
31 | * along with this program; if not, write to the Free Software | ||
32 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 33 | ||
17 | $Id$ | 34 | $Id$ |
18 | 35 | ||
@@ -23,7 +40,7 @@ | |||
23 | 40 | ||
24 | const char *progname = "check_mrtgtraf"; | 41 | const char *progname = "check_mrtgtraf"; |
25 | const char *revision = "$Revision$"; | 42 | const char *revision = "$Revision$"; |
26 | const char *copyright = "1999-2004"; | 43 | const char *copyright = "1999-2006"; |
27 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 44 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
28 | 45 | ||
29 | int process_arguments (int, char **); | 46 | int process_arguments (int, char **); |
@@ -317,38 +334,38 @@ print_help (void) | |||
317 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); | 334 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); |
318 | printf (COPYRIGHT, copyright, email); | 335 | printf (COPYRIGHT, copyright, email); |
319 | 336 | ||
320 | printf (_("\n\ | 337 | printf ("%s\n", _("This plugin will check the incoming/outgoing transfer rates of a router,")); |
321 | This plugin will check the incoming/outgoing transfer rates of a router,\n\ | 338 | printf ("%s\n", _("switch, etc recorded in an MRTG log. If the newest log entry is older")); |
322 | switch, etc recorded in an MRTG log. If the newest log entry is older\n\ | 339 | printf ("%s\n", _("than <expire_minutes>, a WARNING status is returned. If either the")); |
323 | than <expire_minutes>, a WARNING status is returned. If either the\n\ | 340 | printf ("%s\n", _("incoming or outgoing rates exceed the <icl> or <ocl> thresholds (in")); |
324 | incoming or outgoing rates exceed the <icl> or <ocl> thresholds (in\n\ | 341 | printf ("%s\n", _("Bytes/sec), a CRITICAL status results. If either of the rates exceed")); |
325 | Bytes/sec), a CRITICAL status results. If either of the rates exceed\n\ | 342 | printf ("%s\n", _("the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.")); |
326 | the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.\n\n")); | 343 | |
344 | printf ("\n\n"); | ||
327 | 345 | ||
328 | print_usage (); | 346 | print_usage (); |
329 | 347 | ||
330 | printf (_(UT_HELP_VRSN)); | 348 | printf (_(UT_HELP_VRSN)); |
331 | 349 | ||
332 | printf (_("\ | 350 | printf (" %s\n", "-F, --filename=STRING"); |
333 | -F, --filename=STRING\n\ | 351 | printf (" %s\n", _("File to read log from")); |
334 | File to read log from\n\ | 352 | printf (" %s\n", "-e, --expires=INTEGER"); |
335 | -e, --expires=INTEGER\n\ | 353 | printf (" %s\n", _("Minutes after which log expires")); |
336 | Minutes after which log expires\n\ | 354 | printf (" %s\n", "-a, --aggregation=(AVG|MAX)"); |
337 | -a, --aggregation=(AVG|MAX)\n\ | 355 | printf (" %s\n", _("Test average or maximum")); |
338 | Test average or maximum\n\ | 356 | printf (" %s\n", "-w, --warning"); |
339 | -w, --warning\n\ | 357 | printf (" %s\n", _("Warning threshold pair <incoming>,<outgoing>")); |
340 | Warning threshold pair \"<incoming>,<outgoing>\"\n\ | 358 | printf (" %s\n", "-c, --critical"); |
341 | -c, --critical\n\ | 359 | printf (" %s\n", _("Critical threshold pair <incoming>,<outgoing>")); |
342 | Critical threshold pair \"<incoming>,<outgoing>\"\n")); | 360 | |
343 | 361 | printf ("%s\n", _("Notes:")); | |
344 | printf (_("Notes:\n\ | 362 | printf (" %s\n", _("- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from")); |
345 | - MRTG stands for Multi Router Traffic Grapher. It can be downloaded from\n\ | 363 | printf (" %s\n", _(" http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html")); |
346 | http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html\n\ | 364 | printf (" %s\n", _("- While MRTG can monitor things other than traffic rates, this")); |
347 | - While MRTG can monitor things other than traffic rates, this\n\ | 365 | printf (" %s\n", _(" plugin probably won't work with much else without modification.")); |
348 | plugin probably won't work with much else without modification.\n\ | 366 | printf (" %s\n", _("- The calculated i/o rates are a little off from what MRTG actually")); |
349 | - The calculated i/o rates are a little off from what MRTG actually\n\ | 367 | printf (" %s\n", _(" reports. I'm not sure why this is right now, but will look into it")); |
350 | reports. I'm not sure why this is right now, but will look into it\n\ | 368 | printf (" %s\n", _(" for future enhancements of this plugin.")); |
351 | for future enhancements of this plugin.\n")); | ||
352 | 369 | ||
353 | printf (_(UT_SUPPORT)); | 370 | printf (_(UT_SUPPORT)); |
354 | } | 371 | } |
@@ -358,7 +375,7 @@ the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.\n\n")); | |||
358 | void | 375 | void |
359 | print_usage (void) | 376 | print_usage (void) |
360 | { | 377 | { |
361 | printf ("\ | 378 | printf (_("Usage")); |
362 | Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair>\n\ | 379 | printf (" %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair>",progname); |
363 | -c <critical_pair> [-e expire_minutes] [-t timeout] [-v]\n", progname); | 380 | printf ("-c <critical_pair> [-e expire_minutes] [-t timeout] [-v]\n"); |
364 | } | 381 | } |
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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | * | 2 | * |
3 | * CHECK_MYSQL.C | 3 | * Nagios check_mysql plugin |
4 | * | 4 | * |
5 | * Program: Mysql plugin for Nagios | ||
6 | * License: GPL | 5 | * License: GPL |
7 | * Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at) | 6 | * Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at) |
8 | * portions (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net) | 7 | * Copyright (c) 1999-2006 nagios-plugins team |
8 | * Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net) | ||
9 | * | 9 | * |
10 | * $Id$ | 10 | * Last Modified: $Date$ |
11 | * | 11 | * |
12 | * Description: | 12 | * Description: |
13 | * | 13 | * |
14 | * This plugin is for testing a mysql server. | 14 | * This file contains the check_mysql plugin |
15 | * | ||
16 | * This program tests connections to a mysql server | ||
17 | * | ||
18 | * | ||
19 | * License Information: | ||
20 | * | ||
21 | * This program is free software; you can redistribute it and/or modify | ||
22 | * it under the terms of the GNU General Public License as published by | ||
23 | * the Free Software Foundation; either version 2 of the License, or | ||
24 | * (at your option) any later version. | ||
25 | * | ||
26 | * This program is distributed in the hope that it will be useful, | ||
27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
29 | * GNU General Public License for more details. | ||
30 | * | ||
31 | * You should have received a copy of the GNU General Public License | ||
32 | * along with this program; if not, write to the Free Software | ||
33 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
34 | * | ||
35 | * $Id$ | ||
36 | * | ||
15 | ******************************************************************************/ | 37 | ******************************************************************************/ |
16 | 38 | ||
17 | const char *progname = "check_mysql"; | 39 | 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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | * | 2 | * |
3 | * CHECK_MYSQL_QUERY.C | 3 | * Nagios check_mysql_query plugin |
4 | * | 4 | * |
5 | * Program: Mysql plugin for Nagios | ||
6 | * License: GPL | 5 | * License: GPL |
7 | * Copyright (c) 2006 Nagios Plugins Team, after Didi Rieder (check_mysql) | 6 | * Copyright (c) 2006 nagios-plugins team, after Didi Rieder (check_mysql) |
8 | * | 7 | * |
9 | * $Id$ | 8 | * Last Modified: $Date$ |
10 | * | 9 | * |
11 | * Description: | 10 | * Description: |
11 | * | ||
12 | * This file contains the check_mysql_query plugin | ||
13 | * | ||
12 | * This plugin is for running arbitrary SQL and checking the results | 14 | * This plugin is for running arbitrary SQL and checking the results |
13 | * | 15 | * |
16 | * License Information: | ||
17 | * | ||
18 | * This program is free software; you can redistribute it and/or modify | ||
19 | * it under the terms of the GNU General Public License as published by | ||
20 | * the Free Software Foundation; either version 2 of the License, or | ||
21 | * (at your option) any later version. | ||
22 | * | ||
23 | * This program is distributed in the hope that it will be useful, | ||
24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
26 | * GNU General Public License for more details. | ||
27 | * | ||
28 | * You should have received a copy of the GNU General Public License | ||
29 | * along with this program; if not, write to the Free Software | ||
30 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
31 | * CHECK_MYSQL_QUERY.C | ||
32 | * | ||
33 | * $Id$ | ||
34 | * | ||
14 | ******************************************************************************/ | 35 | ******************************************************************************/ |
15 | 36 | ||
16 | const char *progname = "check_mysql_query"; | 37 | 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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_nagios plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_nagios plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * This plugin checks the status of the Nagios process on the local machine |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * The plugin will check to make sure the Nagios status log is no older than |
16 | * the number of minutes specified by the expires option. | ||
17 | * It also checks the process table for a process matching the command argument. | ||
18 | * | ||
19 | * | ||
20 | * License Information: | ||
21 | * | ||
22 | * This program is free software; you can redistribute it and/or modify | ||
23 | * it under the terms of the GNU General Public License as published by | ||
24 | * the Free Software Foundation; either version 2 of the License, or | ||
25 | * (at your option) any later version. | ||
26 | * | ||
27 | * This program is distributed in the hope that it will be useful, | ||
28 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
29 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
30 | * GNU General Public License for more details. | ||
31 | * | ||
32 | * You should have received a copy of the GNU General Public License | ||
33 | * along with this program; if not, write to the Free Software | ||
34 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 35 | ||
17 | $Id$ | 36 | $Id$ |
18 | 37 | ||
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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | * | 2 | * |
3 | * CHECK_NT.C | 3 | * Nagios check_nt plugin |
4 | * | 4 | * |
5 | * Program: Windows NT plugin for Nagios | 5 | * License: GPL |
6 | * License: GPL | 6 | * Copyright (c) 2000-2002 Yves Rubin (rubiyz@yahoo.com) |
7 | * Copyright (c) 2000-2002 Yves Rubin (rubiyz@yahoo.com) | 7 | * Copyright (c) 2003-2006 nagios-plugins team |
8 | * | 8 | * |
9 | * Description: | 9 | * Last Modified: $Date$ |
10 | * | 10 | * |
11 | * This requires NSClient software to run on NT (http://nsclient.ready2run.nl/) | 11 | * Description: |
12 | * | 12 | * |
13 | * License Information: | 13 | * This file contains the check_nt plugin |
14 | * | 14 | * |
15 | * This program is free software; you can redistribute it and/or modify | 15 | * This plugin collects data from the NSClient service running on a |
16 | * it under the terms of the GNU General Public License as published by | 16 | * Windows NT/2000/XP/2003 server. |
17 | * the Free Software Foundation; either version 2 of the License, or | 17 | * This requires NSClient software to run on NT (http://nsclient.ready2run.nl/) |
18 | * (at your option) any later version. | 18 | * |
19 | * | 19 | * License Information: |
20 | * This program is distributed in the hope that it will be useful, | 20 | * |
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 21 | * This program is free software; you can redistribute it and/or modify |
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 22 | * it under the terms of the GNU General Public License as published by |
23 | * GNU General Public License for more details. | 23 | * the Free Software Foundation; either version 2 of the License, or |
24 | * | 24 | * (at your option) any later version. |
25 | * You should have received a copy of the GNU General Public License | 25 | * |
26 | * along with this program; if not, write to the Free Software | 26 | * This program is distributed in the hope that it will be useful, |
27 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
28 | * | 28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
29 | * $Id$ | 29 | * GNU General Public License for more details. |
30 | * | 30 | * |
31 | *****************************************************************************/ | 31 | * You should have received a copy of the GNU General Public License |
32 | * along with this program; if not, write to the Free Software | ||
33 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
34 | * | ||
35 | * $Id$ | ||
36 | * | ||
37 | *****************************************************************************/ | ||
32 | 38 | ||
33 | const char *progname = "check_nt"; | 39 | const char *progname = "check_nt"; |
34 | const char *revision = "$Revision$"; | 40 | 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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | check_ntp.c: utility to check ntp servers independant of any commandline | 2 | * |
3 | programs or external libraries. | 3 | * Nagios check_ntp plugin |
4 | original author: sean finney <seanius@seanius.net> | 4 | * |
5 | ****************************************************************************** | 5 | * License: GPL |
6 | This program is free software; you can redistribute it and/or modify | 6 | * Copyright (c) 2006 sean finney <seanius@seanius.net> |
7 | it under the terms of the GNU General Public License as published by | 7 | * Copyright (c) 2006 nagios-plugins team |
8 | the Free Software Foundation; either version 2 of the License, or | 8 | * |
9 | (at your option) any later version. | 9 | * Last Modified: $Date$ |
10 | 10 | * | |
11 | This program is distributed in the hope that it will be useful, | 11 | * Description: |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | * This file contains the check_ntp plugin |
14 | GNU General Public License for more details. | 14 | * |
15 | 15 | * This plugin to check ntp servers independant of any commandline | |
16 | You should have received a copy of the GNU General Public License | 16 | * programs or external libraries. |
17 | along with this program; if not, write to the Free Software | 17 | * |
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | * |
19 | * License Information: | ||
20 | * | ||
21 | * This program is free software; you can redistribute it and/or modify | ||
22 | * it under the terms of the GNU General Public License as published by | ||
23 | * the Free Software Foundation; either version 2 of the License, or | ||
24 | * (at your option) any later version. | ||
25 | * | ||
26 | * This program is distributed in the hope that it will be useful, | ||
27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
29 | * GNU General Public License for more details. | ||
30 | * | ||
31 | * You should have received a copy of the GNU General Public License | ||
32 | * along with this program; if not, write to the Free Software | ||
33 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
19 | 34 | ||
20 | $Id$ | 35 | $Id$ |
21 | 36 | ||
@@ -777,7 +792,7 @@ int main(int argc, char *argv[]){ | |||
777 | void print_help(void){ | 792 | void print_help(void){ |
778 | print_revision(progname, revision); | 793 | print_revision(progname, revision); |
779 | 794 | ||
780 | printf ("Copyright (c) 1999 Ethan Galstad\n"); | 795 | printf ("Copyright (c) 2006 Sean Finney\n"); |
781 | printf (COPYRIGHT, copyright, email); | 796 | printf (COPYRIGHT, copyright, email); |
782 | 797 | ||
783 | printf ("%s\n", _("This plugin checks the selected ntp server")); | 798 | 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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_nwstat plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 2000-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_nwstat plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * This plugin attempts to contact the MRTGEXT NLM running on a |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * Novell server to gather the requested system information. |
16 | * | ||
17 | * | ||
18 | * License Information: | ||
19 | * | ||
20 | * This program is free software; you can redistribute it and/or modify | ||
21 | * it under the terms of the GNU General Public License as published by | ||
22 | * the Free Software Foundation; either version 2 of the License, or | ||
23 | * (at your option) any later version. | ||
24 | * | ||
25 | * This program is distributed in the hope that it will be useful, | ||
26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
28 | * GNU General Public License for more details. | ||
29 | * | ||
30 | * You should have received a copy of the GNU General Public License | ||
31 | * along with this program; if not, write to the Free Software | ||
32 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 33 | ||
17 | $Id$ | 34 | $Id$ |
18 | 35 | ||
@@ -1596,82 +1613,70 @@ void print_help(void) | |||
1596 | 1613 | ||
1597 | printf (_(UT_HOST_PORT), 'p', myport); | 1614 | printf (_(UT_HOST_PORT), 'p', myport); |
1598 | 1615 | ||
1599 | printf (_("\ | 1616 | printf (" %s\n", "-v, --variable=STRING"); |
1600 | -v, --variable=STRING\n\ | 1617 | printf (" %s\n", _("Variable to check. Valid variables include:")); |
1601 | Variable to check. Valid variables include:\n\ | 1618 | printf (" %s\n", _("LOAD1 = 1 minute average CPU load")); |
1602 | LOAD1 = 1 minute average CPU load\n\ | 1619 | printf (" %s\n", _("LOAD5 = 5 minute average CPU load")); |
1603 | LOAD5 = 5 minute average CPU load\n\ | 1620 | printf (" %s\n", _("LOAD15 = 15 minute average CPU load")); |
1604 | LOAD15 = 15 minute average CPU load\n\ | 1621 | printf (" %s\n", _("CSPROCS = number of current service processes (NW 5.x only)")); |
1605 | CSPROCS = number of current service processes (NW 5.x only)\n\ | 1622 | printf (" %s\n", _("ABENDS = number of abended threads (NW 5.x only)")); |
1606 | ABENDS = number of abended threads (NW 5.x only)\n\ | 1623 | printf (" %s\n", _("UPTIME = server uptime")); |
1607 | UPTIME = server uptime\n")); | 1624 | printf (" %s\n", _("LTCH = percent long term cache hits")); |
1608 | 1625 | printf (" %s\n", _("CBUFF = current number of cache buffers")); | |
1609 | printf (_("\ | 1626 | printf (" %s\n", _("CDBUFF = current number of dirty cache buffers")); |
1610 | LTCH = percent long term cache hits\n\ | 1627 | printf (" %s\n", _("DCB = dirty cache buffers as a percentage of the total")); |
1611 | CBUFF = current number of cache buffers\n\ | 1628 | printf (" %s\n", _("TCB = dirty cache buffers as a percentage of the original")); |
1612 | CDBUFF = current number of dirty cache buffers\n\ | 1629 | printf (" %s\n", _("OFILES = number of open files")); |
1613 | DCB = dirty cache buffers as a percentage of the total\n\ | 1630 | printf (" %s\n", _(" VMF<vol> = MB of free space on Volume <vol>")); |
1614 | TCB = dirty cache buffers as a percentage of the original\n")); | 1631 | printf (" %s\n", _(" VMU<vol> = MB used space on Volume <vol>")); |
1615 | 1632 | printf (" %s\n", _(" VMP<vol> = MB of purgeable space on Volume <vol>")); | |
1616 | printf (_("\ | 1633 | printf (" %s\n", _(" VPF<vol> = percent free space on volume <vol>")); |
1617 | OFILES = number of open files\n\ | 1634 | printf (" %s\n", _(" VKF<vol> = KB of free space on volume <vol>")); |
1618 | VMF<vol> = MB of free space on Volume <vol>\n\ | 1635 | printf (" %s\n", _(" VPP<vol> = percent purgeable space on volume <vol>")); |
1619 | VMU<vol> = MB used space on Volume <vol>\n\ | 1636 | printf (" %s\n", _(" VKP<vol> = KB of purgeable space on volume <vol>")); |
1620 | VMP<vol> = MB of purgeable space on Volume <vol>\n\ | 1637 | printf (" %s\n", _(" VPNP<vol> = percent not yet purgeable space on volume <vol>")); |
1621 | VPF<vol> = percent free space on volume <vol>\n\ | 1638 | printf (" %s\n", _(" VKNP<vol> = KB of not yet purgeable space on volume <vol>")); |
1622 | VKF<vol> = KB of free space on volume <vol>\n\ | 1639 | printf (" %s\n", _(" LRUM = LRU sitting time in minutes")); |
1623 | VPP<vol> = percent purgeable space on volume <vol>\n\ | 1640 | printf (" %s\n", _(" LRUS = LRU sitting time in seconds")); |
1624 | VKP<vol> = KB of purgeable space on volume <vol>\n\ | 1641 | printf (" %s\n", _(" DSDB = check to see if DS Database is open")); |
1625 | VPNP<vol> = percent not yet purgeable space on volume <vol>\n\ | 1642 | printf (" %s\n", _(" DSVER = NDS version")); |
1626 | VKNP<vol> = KB of not yet purgeable space on volume <vol>\n")); | 1643 | printf (" %s\n", _(" UPRB = used packet receive buffers")); |
1627 | 1644 | printf (" %s\n", _(" PUPRB = percent (of max) used packet receive buffers")); | |
1628 | printf (_("\ | 1645 | printf (" %s\n", _(" SAPENTRIES = number of entries in the SAP table")); |
1629 | LRUM = LRU sitting time in minutes\n\ | 1646 | printf (" %s\n", _(" SAPENTRIES<n> = number of entries in the SAP table for SAP type <n>")); |
1630 | LRUS = LRU sitting time in seconds\n\ | 1647 | printf (" %s\n", _(" TSYNC = timesync status")); |
1631 | DSDB = check to see if DS Database is open\n\ | 1648 | printf (" %s\n", _(" LOGINS = check to see if logins are enabled")); |
1632 | DSVER = NDS version\n\ | 1649 | printf (" %s\n", _(" CONNS = number of currently licensed connections")); |
1633 | UPRB = used packet receive buffers\n\ | 1650 | printf (" %s\n", _(" NRMH = NRM Summary Status")); |
1634 | PUPRB = percent (of max) used packet receive buffers\n\ | 1651 | printf (" %s\n", _(" NRMP<stat> = Returns the current value for a NRM health item")); |
1635 | SAPENTRIES = number of entries in the SAP table\n\ | 1652 | printf (" %s\n", _(" NRMM<stat> = Returns the current memory stats from NRM")); |
1636 | SAPENTRIES<n> = number of entries in the SAP table for SAP type <n>\n")); | 1653 | printf (" %s\n", _(" NRMS<stat> = Returns the current Swapfile stats from NRM")); |
1637 | 1654 | printf (" %s\n", _(" NSS1<stat> = Statistics from _Admin:Manage_NSS\\GeneralStats.xml")); | |
1638 | printf (_("\ | 1655 | printf (" %s\n", _(" NSS3<stat> = Statistics from _Admin:Manage_NSS\\NameCache.xml")); |
1639 | TSYNC = timesync status\n\ | 1656 | printf (" %s\n", _(" NSS4<stat> = Statistics from _Admin:Manage_NSS\\FileStats.xml")); |
1640 | LOGINS = check to see if logins are enabled\n\ | 1657 | printf (" %s\n", _(" NSS5<stat> = Statistics from _Admin:Manage_NSS\\ObjectCache.xml")); |
1641 | CONNS = number of currently licensed connections\n\ | 1658 | printf (" %s\n", _(" NSS6<stat> = Statistics from _Admin:Manage_NSS\\Thread.xml")); |
1642 | NRMH = NRM Summary Status\n\ | 1659 | printf (" %s\n", _(" NSS7<stat> = Statistics from _Admin:Manage_NSS\\AuthorizationCache.xml")); |
1643 | NRMP<stat> = Returns the current value for a NRM health item\n\ | 1660 | printf (" %s\n", _(" NLM:<nlm> = check if NLM is loaded and report version")); |
1644 | NRMM<stat> = Returns the current memory stats from NRM\n\ | 1661 | printf (" %s\n", _(" (e.g. NLM:TSANDS.NLM)")); |
1645 | NRMS<stat> = Returns the current Swapfile stats from NRM\n\ | 1662 | printf ("\n"); |
1646 | NSS1<stat> = Statistics from _Admin:Manage_NSS\\GeneralStats.xml\n\ | 1663 | printf (" %s\n", "-w, --warning=INTEGER"); |
1647 | NSS2<stat> = Statistics from _Admin:Manage_NSS\\BufferCache.xml\n\ | 1664 | printf (" %s\n", _("Threshold which will result in a warning status")); |
1648 | NSS3<stat> = Statistics from _Admin:Manage_NSS\\NameCache.xml\n\ | 1665 | printf (" %s\n", "-c, --critical=INTEGER"); |
1649 | NSS4<stat> = Statistics from _Admin:Manage_NSS\\FileStats.xml\n\ | 1666 | printf (" %s\n", _("Threshold which will result in a critical status")); |
1650 | NSS5<stat> = Statistics from _Admin:Manage_NSS\\ObjectCache.xml\n\ | 1667 | printf (" %s\n", "-o, --osversion"); |
1651 | NSS6<stat> = Statistics from _Admin:Manage_NSS\\Thread.xml\n\ | 1668 | printf (" %s\n", _("Include server version string in results")); |
1652 | NSS7<stat> = Statistics from _Admin:Manage_NSS\\AuthorizationCache.xml\n\ | ||
1653 | NLM:<nlm> = check if NLM is loaded and report version\n\ | ||
1654 | (e.g. \"NLM:TSANDS.NLM\")\n")); | ||
1655 | |||
1656 | printf (_("\ | ||
1657 | -w, --warning=INTEGER\n\ | ||
1658 | Threshold which will result in a warning status\n\ | ||
1659 | -c, --critical=INTEGER\n\ | ||
1660 | Threshold which will result in a critical status\n\ | ||
1661 | -o, --osversion\n\ | ||
1662 | Include server version string in results\n")); | ||
1663 | 1669 | ||
1664 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); | 1670 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); |
1665 | 1671 | ||
1666 | printf ("\n"); | 1672 | printf ("\n"); |
1667 | printf ("%s\n", _("Notes:")); | 1673 | printf ("%s\n", _("Notes:")); |
1668 | printf (_("\ | 1674 | printf (" %s\n", _("- This plugin requres that the MRTGEXT.NLM file from James Drews' MRTG")); |
1669 | - This plugin requres that the MRTGEXT.NLM file from James Drews' MRTG\n\ | 1675 | printf (" %s\n", _(" extension for NetWare be loaded on the Novell servers you wish to check.")); |
1670 | extension for NetWare be loaded on the Novell servers you wish to check.\n\ | 1676 | printf (" %s\n", _(" (available from http://www.engr.wisc.edu/~drews/mrtg/)")); |
1671 | (available from http://www.engr.wisc.edu/~drews/mrtg/)\n\ | 1677 | printf (" %s\n", _("- Values for critical thresholds should be lower than warning thresholds")); |
1672 | - Values for critical thresholds should be lower than warning thresholds\n\ | 1678 | printf (" %s\n", _(" when the following variables are checked: VPF, VKF, LTCH, CBUFF, DCB, ")); |
1673 | when the following variables are checked: VPF, VKF, LTCH, CBUFF, DCB, \n\ | 1679 | printf (" %S\n", _(" TCB, LRUS and LRUM.\n")); |
1674 | TCB, LRUS and LRUM.\n")); | ||
1675 | 1680 | ||
1676 | printf (_(UT_SUPPORT)); | 1681 | printf (_(UT_SUPPORT)); |
1677 | } | 1682 | } |
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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_overcr plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 2000-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_overcr plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * This plugin attempts to contact the Over-CR collector daemon running on the |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * remote UNIX server in order to gather the requested system information. |
16 | * | ||
17 | * | ||
18 | * License Information: | ||
19 | * | ||
20 | * This program is free software; you can redistribute it and/or modify | ||
21 | * it under the terms of the GNU General Public License as published by | ||
22 | * the Free Software Foundation; either version 2 of the License, or | ||
23 | * (at your option) any later version. | ||
24 | * | ||
25 | * This program is distributed in the hope that it will be useful, | ||
26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
28 | * GNU General Public License for more details. | ||
29 | * | ||
30 | * You should have received a copy of the GNU General Public License | ||
31 | * along with this program; if not, write to the Free Software | ||
32 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 33 | ||
17 | $Id$ | 34 | $Id$ |
18 | 35 | ||
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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_pgsql plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 1999-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_pgsql plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * Test whether a PostgreSQL Database is accepting connections. |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | * | ||
17 | * License Information: | ||
18 | * | ||
19 | * This program is free software; you can redistribute it and/or modify | ||
20 | * it under the terms of the GNU General Public License as published by | ||
21 | * the Free Software Foundation; either version 2 of the License, or | ||
22 | * (at your option) any later version. | ||
23 | * | ||
24 | * This program is distributed in the hope that it will be useful, | ||
25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
27 | * GNU General Public License for more details. | ||
28 | * | ||
29 | * You should have received a copy of the GNU General Public License | ||
30 | * along with this program; if not, write to the Free Software | ||
31 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 32 | ||
17 | $Id$ | 33 | $Id$ |
18 | 34 | ||
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 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_ping plugin |
4 | it under the terms of the GNU General Public License as published by | 4 | * |
5 | the Free Software Foundation; either version 2 of the License, or | 5 | * License: GPL |
6 | (at your option) any later version. | 6 | * Copyright (c) 2000-2006 nagios-plugins team |
7 | 7 | * | |
8 | This program is distributed in the hope that it will be useful, | 8 | * Last Modified: $Date$ |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * Description: |
11 | GNU General Public License for more details. | 11 | * |
12 | 12 | * This file contains the check_ping plugin | |
13 | You should have received a copy of the GNU General Public License | 13 | * |
14 | along with this program; if not, write to the Free Software | 14 | * Use the ping program to check connection statistics for a remote host. |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | * | ||
17 | * License Information: | ||
18 | * | ||
19 | * This program is free software; you can redistribute it and/or modify | ||
20 | * it under the terms of the GNU General Public License as published by | ||
21 | * the Free Software Foundation; either version 2 of the License, or | ||
22 | * (at your option) any later version. | ||
23 | * | ||
24 | * This program is distributed in the hope that it will be useful, | ||
25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
27 | * GNU General Public License for more details. | ||
28 | * | ||
29 | * You should have received a copy of the GNU General Public License | ||
30 | * along with this program; if not, write to the Free Software | ||
31 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
16 | 32 | ||
17 | $Id$ | 33 | $Id$ |
18 | 34 | ||
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 @@ | |||
11 | * | 11 | * |
12 | * This file contains the check_procs plugin | 12 | * This file contains the check_procs plugin |
13 | * | 13 | * |
14 | * Checks all processes and generates WARNING or CRITICAL states if the specified | ||
15 | * metric is outside the required threshold ranges. The metric defaults to number | ||
16 | * of processes. Search filters can be applied to limit the processes to check. | ||
17 | * | ||
14 | * License Information: | 18 | * License Information: |
15 | * | 19 | * |
16 | * This program is free software; you can redistribute it and/or modify | 20 | * This program is free software; you can redistribute it and/or modify |
@@ -665,11 +669,12 @@ print_help (void) | |||
665 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"); | 669 | printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"); |
666 | printf (COPYRIGHT, copyright, email); | 670 | printf (COPYRIGHT, copyright, email); |
667 | 671 | ||
668 | printf(_("\ | 672 | printf ("%s\n", _("Checks all processes and generates WARNING or CRITICAL states if the specified")); |
669 | Checks all processes and generates WARNING or CRITICAL states if the specified\n\ | 673 | printf ("%s\n", _("metric is outside the required threshold ranges. The metric defaults to number")); |
670 | metric is outside the required threshold ranges. The metric defaults to number\n\ | 674 | printf ("%s\n", _("of processes. Search filters can be applied to limit the processes to check.")); |
671 | of processes. Search filters can be applied to limit the processes to check.\n\n")); | ||
672 | 675 | ||
676 | printf ("\n\n"); | ||
677 | |||
673 | print_usage (); | 678 | print_usage (); |
674 | 679 | ||
675 | printf(_("\n\ | 680 | printf(_("\n\ |