diff options
-rw-r--r-- | plugins-root/check_dhcp.c | 51 | ||||
-rw-r--r-- | plugins-root/check_icmp.c | 53 | ||||
-rw-r--r-- | plugins-root/pst3.c | 22 |
3 files changed, 59 insertions, 67 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index bc2f4bbe..a41a86e9 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c @@ -1,49 +1,44 @@ -/****************************************************************************** -* +/***************************************************************************** +* * Nagios check_dhcp plugin -* +* * License: GPL * Copyright (c) 2001-2004 Ethan Galstad (nagios@nagios.org) -* Copyright (c) 2001-2006 Nagios Plugin Development Team -* +* Copyright (c) 2001-2007 Nagios Plugin Development Team +* * Last Modified: $Date$ -* +* * Description: -* +* * This file contains the check_dhcp plugin -* -* This plugin tests the availability of DHCP servers on a network. -* -* -* License Information: -* -* This program is free software; you can redistribute it and/or modify +* +* This plugin tests the availability of DHCP servers on a network. +* +* Unicast mode was originally implemented by Heiti of Boras Kommun with +* general improvements as well as usability fixes and "forward"-porting by +* Andreas Ericsson of OP5 AB. +* +* +* 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 +* the Free Software Foundation, either version 3 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. -* +* along with this program. If not, see <http://www.gnu.org/licenses/>. +* * $Id$ -* -* ------------------------------------------------------------------------ -* Unicast mode was originally implemented by Heiti of Boras Kommun with -* general improvements as well as usability fixes and "forward"-porting by -* Andreas Ericsson of OP5 AB. -* ------------------------------------------------------------------------ -* +* *****************************************************************************/ const char *progname = "check_dhcp"; const char *revision = "$Revision$"; -const char *copyright = "2001-2006"; +const char *copyright = "2001-2007"; const char *email = "nagiosplug-devel@lists.sourceforge.net"; #include "common.h" diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 49b40f9d..8e7f6d0b 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c @@ -1,43 +1,40 @@ - /****************************************************************************** -* +/***************************************************************************** +* * Nagios check_icmp plugin -* +* * License: GPL -* Copyright (c) 2005-2007 nagios-plugins team -* +* Copyright (c) 2005-2008 Nagios Plugins Development Team * Original Author : Andreas Ericsson <ae@op5.se> -* +* * Last Modified: $Date$ -* +* * Description: -* +* * This file contains the check_icmp plugin -* -* Relevant RFC's: 792 (ICMP), 791 (IP) -* -* This program was modeled somewhat after the check_icmp program, -* which was in turn a hack of fping (www.fping.org) but has been -* completely rewritten since to generate higher precision rta values, -* and support several different modes as well as setting ttl to control. -* redundant routes. The only remainders of fping is currently a few -* function names. -* -* License Information: -* -* This program is free software; you can redistribute it and/or modify +* +* Relevant RFC's: 792 (ICMP), 791 (IP) +* +* This program was modeled somewhat after the check_icmp program, +* which was in turn a hack of fping (www.fping.org) but has been +* completely rewritten since to generate higher precision rta values, +* and support several different modes as well as setting ttl to control. +* redundant routes. The only remainders of fping is currently a few +* function names. +* +* +* 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 +* the Free Software Foundation, either version 3 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. -* +* along with this program. If not, see <http://www.gnu.org/licenses/>. +* * $Id$ * *****************************************************************************/ @@ -46,7 +43,7 @@ /* char *progname = "check_icmp"; */ char *progname; const char *revision = "$Revision$"; -const char *copyright = "2005-2007"; +const char *copyright = "2005-2008"; const char *email = "nagiosplug-devel@lists.sourceforge.net"; /** nagios plugins basic includes */ diff --git a/plugins-root/pst3.c b/plugins-root/pst3.c index ace3113c..bf4b40d3 100644 --- a/plugins-root/pst3.c +++ b/plugins-root/pst3.c @@ -1,15 +1,15 @@ /* pst3.c - * - * Third version to get process arg info; this time by using - * a combination of reading the /proc/<pid>/psinfo structures - * and reading the complete arg vector from kernel memory structures. - * - * Developed and tested under Solaris 5.8 (both 32 and 64 bit modes). - * - * NOTE: This program must be setuid-root (or run by root) to work! - * - * Written: 2005-04-28 R.W.Ingraham - */ +* +* Third version to get process arg info; this time by using +* a combination of reading the /proc/<pid>/psinfo structures +* and reading the complete arg vector from kernel memory structures. +* +* Developed and tested under Solaris 5.8 (both 32 and 64 bit modes). +* +* NOTE: This program must be setuid-root (or run by root) to work! +* +* Written: 2005-04-28 R.W.Ingraham +*/ #define _KMEMUSER 1 |