|
@@ -1,45 +1,43 @@
|
|
|
-/******************************************************************************
|
|
|
|
|
-*
|
|
|
|
|
|
|
+/*****************************************************************************
|
|
|
|
|
+*
|
|
|
* Nagios check_ups plugin
|
|
* Nagios check_ups plugin
|
|
|
-*
|
|
|
|
|
|
|
+*
|
|
|
* License: GPL
|
|
* License: GPL
|
|
|
* Copyright (c) 2000 Tom Shields
|
|
* Copyright (c) 2000 Tom Shields
|
|
|
* 2004 Alain Richard <alain.richard@equation.fr>
|
|
* 2004 Alain Richard <alain.richard@equation.fr>
|
|
|
* 2004 Arnaud Quette <arnaud.quette@mgeups.com>
|
|
* 2004 Arnaud Quette <arnaud.quette@mgeups.com>
|
|
|
-* Copyright (c) 2002-2006 nagios-plugins team
|
|
|
|
|
-*
|
|
|
|
|
|
|
+* Copyright (c) 2002-2007 Nagios Plugins Development Team
|
|
|
|
|
+*
|
|
|
* Last Modified: $Date$
|
|
* Last Modified: $Date$
|
|
|
-*
|
|
|
|
|
|
|
+*
|
|
|
* Description:
|
|
* Description:
|
|
|
-*
|
|
|
|
|
|
|
+*
|
|
|
* This file contains Network UPS Tools plugin for Nagios
|
|
* This file contains Network UPS Tools plugin for Nagios
|
|
|
-*
|
|
|
|
|
-* This plugin tests the UPS service on the specified host.Network UPS Tools
|
|
|
|
|
-* from www.networkupstools.org must be running for thisplugin to work.
|
|
|
|
|
-*
|
|
|
|
|
-* License Information:
|
|
|
|
|
-*
|
|
|
|
|
-* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
|
|
+*
|
|
|
|
|
+* This plugin tests the UPS service on the specified host.Network UPS Tools
|
|
|
|
|
+* from www.networkupstools.org must be running for thisplugin to work.
|
|
|
|
|
+*
|
|
|
|
|
+*
|
|
|
|
|
+* 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
|
|
* 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.
|
|
* (at your option) any later version.
|
|
|
-*
|
|
|
|
|
|
|
+*
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
* GNU General Public License for more details.
|
|
* GNU General Public License for more details.
|
|
|
-*
|
|
|
|
|
|
|
+*
|
|
|
* You should have received a copy of the GNU General Public License
|
|
* You should have received a copy of the GNU General Public License
|
|
|
-* along with this program; if not, write to the Free Software
|
|
|
|
|
-* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
-*
|
|
|
|
|
-* $Id$
|
|
|
|
|
-*
|
|
|
|
|
-******************************************************************************/
|
|
|
|
|
|
|
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
+*
|
|
|
|
|
+* $Id$
|
|
|
|
|
+*
|
|
|
|
|
+*****************************************************************************/
|
|
|
|
|
|
|
|
const char *progname = "check_ups";
|
|
const char *progname = "check_ups";
|
|
|
const char *revision = "$Revision$";
|
|
const char *revision = "$Revision$";
|
|
|
-const char *copyright = "2002-2006";
|
|
|
|
|
|
|
+const char *copyright = "2000-2007";
|
|
|
const char *email = "nagiosplug-devel@lists.sourceforge.net";
|
|
const char *email = "nagiosplug-devel@lists.sourceforge.net";
|
|
|
|
|
|
|
|
#include "common.h"
|
|
#include "common.h"
|