[Nagiosplug-checkins] nagiosplug/plugins check_disk.c, 1.67, 1.68 check_time.c, 1.26, 1.27 check_udp.c, 1.25, 1.26 check_ups.c, 1.28, 1.29 check_users.c, 1.19, 1.20 gethostbyname.c, 1.2, 1.3 gethostbyname.h, 1.2, 1.3 negate.c, 1.24, 1.25 netutils.c, 1.30, 1.31 popen.c, 1.14, 1.15 runcmd.c, 1.3, 1.4 sslutils.c, 1.2, 1.3 urlize.c, 1.18, 1.19 utils.c, 1.47, 1.48

Benoit Mortier opensides at users.sourceforge.net
Sun Jun 18 21:36:50 CEST 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv310/plugins

Modified Files:
	check_disk.c check_time.c check_udp.c check_ups.c 
	check_users.c gethostbyname.c gethostbyname.h negate.c 
	netutils.c popen.c runcmd.c sslutils.c urlize.c utils.c 
Log Message:

updating help and usage and license



Index: gethostbyname.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/gethostbyname.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gethostbyname.c	1 Dec 2004 23:54:51 -0000	1.2
+++ gethostbyname.c	18 Jun 2006 19:36:48 -0000	1.3
@@ -1,25 +1,36 @@
-/*
- *  This file is a ghastly hack because nobody can agree on
- *  gethostbyname_r()'s prototype.
- *
- *  Copyright (C) 2001,2002  Brian Stafford  <brian at stafford.uklinux.net>
- *
- *  This library is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public
- *  License as published by the Free Software Foundation; either
- *  version 2.1 of the License, or (at your option) any later version.
- *
- *  This library 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
- *  Lesser General Public License for more details.
- *
- *  You should have received a copy of the GNU Lesser General Public
- *  License along with this library; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
- * $Id$
- */
+/******************************************************************************
+*
+* Nagios gethostbyname_r()'s prototype.
+*
+* License: GPL
+* Copyright (C) 2001,2002  Brian Stafford  <brian at stafford.uklinux.net>
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+*  This file is a ghastly hack because nobody can agree on
+*  gethostbyname_r()'s prototype.
+*
+* License Information:
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+* $Id$
+*
+*****************************************************************************/
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>

Index: popen.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/popen.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- popen.c	17 Feb 2006 09:08:08 -0000	1.14
+++ popen.c	18 Jun 2006 19:36:48 -0000	1.15
@@ -1,13 +1,21 @@
-/******************************************************************************
- * popen.c
+/****************************************************************************
+ *
+ * Nagios plugins popen
+ *
+ * License: GPL
+ * Copyright (c) 2005 nagios-plugins team
+ *
+ * Last Modified: $Date$
+ *
+ * Description:
  *
  * A safe alternative to popen
  * 
  * Provides spopen and spclose
-
-FILE * spopen(const char *);
-int spclose(FILE *);
-
+ *
+ * FILE * spopen(const char *);
+ * int spclose(FILE *);
+ *
  *
  * Code taken with liitle modification from "Advanced Programming for the Unix
  * Environment" by W. Richard Stevens
@@ -16,6 +24,22 @@
  * path passed to the exec'd program are esstially empty. (popen create a shell
  * and passes the environment to it).
  *
+ * License Information:
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
+ *
  * $Id$
  *
  ******************************************************************************/
@@ -121,7 +145,7 @@
 	argv = malloc (sizeof(char*)*argc);
 	
 	if (argv == NULL) {
-		printf (_("Could not malloc argv array in popen()\n"));
+		printf ("%s\n", _("Could not malloc argv array in popen()"));
 		return NULL;
 	}
 
@@ -131,7 +155,7 @@
 		str += strspn (str, " \t\r\n");	/* trim any leading whitespace */
 
 		if (i >= argc - 2) {
-			printf (_("CRITICAL - You need more args!!!\n"));
+			printf ("%s\n",_("CRITICAL - You need more args!!!"));
 			return (NULL);
 		}
 
@@ -278,7 +302,7 @@
 			printf (_("CRITICAL - Plugin timed out after %d seconds\n"),
 						timeout_interval);
 		} else {
-			printf (_("CRITICAL - popen timeout received, but no child process\n"));
+			printf ("%s\n", _("CRITICAL - popen timeout received, but no child process"));
 		}
 		exit (STATE_CRITICAL);
 	}

Index: netutils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- netutils.c	31 Oct 2005 20:03:19 -0000	1.30
+++ netutils.c	18 Jun 2006 19:36:48 -0000	1.31
@@ -76,7 +76,7 @@
 
 	send_result = send (sd, send_buffer, strlen (send_buffer), 0);
 	if (send_result<0 || (size_t)send_result!=strlen(send_buffer)) {
-		printf (_("Send failed\n"));
+		printf ("%s\n", _("Send failed"));
 		result = STATE_WARNING;
 	}
 
@@ -93,7 +93,7 @@
 		if (!FD_ISSET (sd, &readfds)) {	/* it hasn't */
 			if (!recv_length) {
 				strcpy (recv_buffer, "");
-				printf (_("No data was received from host!\n"));
+				printf ("%s\n", _("No data was received from host!"));
 				result = STATE_WARNING;
 			}
 			else {										/* this one failed, but previous ones worked */
@@ -190,7 +190,7 @@
 			*sd = socket (r->ai_family, socktype, r->ai_protocol);
 
 			if (*sd < 0) {
-				printf (_("Socket creation failed\n"));
+				printf ("%s\n", _("Socket creation failed"));
 				freeaddrinfo (r);
 				return STATE_UNKNOWN;
 			}
@@ -267,7 +267,7 @@
 
 	send_result = send (sd, send_buffer, strlen (send_buffer), 0);
 	if (send_result<0 || (size_t)send_result!=strlen(send_buffer)) {
-		printf (_("Send failed\n"));
+		printf ("%s\n", _("Send failed"));
 		result = STATE_WARNING;
 	}
 
@@ -282,7 +282,7 @@
 	/* make sure some data has arrived */
 	if (!FD_ISSET (sd, &readfds)) {
 		strcpy (recv_buffer, "");
-		printf (_("No data was received from host!\n"));
+		printf ("%s\n", _("No data was received from host!"));
 		result = STATE_WARNING;
 	}
 
@@ -291,7 +291,7 @@
 		if (recv_result == -1) {
 			strcpy (recv_buffer, "");
 			if (proto != IPPROTO_TCP)
-				printf (_("Receive failed\n"));
+				printf ("%s\n", _("Receive failed"));
 			result = STATE_WARNING;
 		}
 		else

Index: gethostbyname.h
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/gethostbyname.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gethostbyname.h	1 Dec 2004 23:54:51 -0000	1.2
+++ gethostbyname.h	18 Jun 2006 19:36:48 -0000	1.3
@@ -1,25 +1,35 @@
-/*
- *  This file is a ghastly hack because nobody can agree on
- *  gethostbyname_r()'s prototype.
- *
- *  Copyright (C) 2001,2002  Brian Stafford  <brian at stafford.uklinux.net>
- *
- *  This library is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU Lesser General Public
- *  License as published by the Free Software Foundation; either
- *  version 2.1 of the License, or (at your option) any later version.
- *
- *  This library 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
- *  Lesser General Public License for more details.
- *
- *  You should have received a copy of the GNU Lesser General Public
- *  License along with this library; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
- * $Id$
- */
+/******************************************************************************
+*
+* Nagios gethostbyname_r()'s prototype.
+*
+* License: GPL
+* Copyright (C) 2001,2002  Brian Stafford  <brian at stafford.uklinux.net>
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+*  This file is a ghastly hack because nobody can agree on
+*  gethostbyname_r()'s prototype.
+*
+* License Information:
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+* $Id$
+*****************************************************************************/
 
 /*************************************************************************
    Usage:

Index: utils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/utils.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- utils.c	27 Apr 2006 13:25:09 -0000	1.47
+++ utils.c	18 Jun 2006 19:36:48 -0000	1.48
@@ -360,7 +360,7 @@
 	if (_set_thresholds(my_thresholds, warn_string, critical_string) == 0) {
 		return;
 	} else {
-		usage("Range format incorrect");
+		usage(_("Range format incorrect"));
 	}
 }
 

Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- check_disk.c	14 Jun 2006 18:48:59 -0000	1.67
+++ check_disk.c	18 Jun 2006 19:36:48 -0000	1.68
@@ -1,27 +1,40 @@
 /******************************************************************************
-
- The Nagios Plugins are free software; you can redistribute them
- and/or modify them under the terms of the GNU General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
- 
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- $Id$
- 
+*
+* Nagios check_disk plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_disk plugin
+*
+* License Information:
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+* $Id$
+* 
 *****************************************************************************/
 
 const char *progname = "check_disk";
 const char *program_name = "check_disk";  /* Required for coreutils libs */
 const char *revision = "$Revision$";
-const char *copyright = "1999-2005";
+const char *copyright = "1999-2006";
 const char *email = "nagiosplug-devel at lists.sourceforge.net";
 
  /*
@@ -704,8 +717,8 @@
   printf ("Copyright (c) 1999 Ethan Galstad <nagios at nagios.org>\n");
   printf (COPYRIGHT, copyright, email);
 
-  printf (_("This plugin checks the amount of used disk space on a mounted file system"));
-  printf (_("and generates an alert if free space is less than one of the threshold values"));
+  printf ("%s\n", _("This plugin checks the amount of used disk space on a mounted file system"));
+  printf ("%s\n", _("and generates an alert if free space is less than one of the threshold values"));
 
   printf ("\n\n");
 

Index: check_ups.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ups.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- check_ups.c	6 Oct 2005 12:16:06 -0000	1.28
+++ check_ups.c	18 Jun 2006 19:36:48 -0000	1.29
@@ -1,35 +1,42 @@
 /******************************************************************************
-
- check_ups
-
- Program: Network UPS Tools plugin for Nagios
- License: GPL
- Copyright (c) 2000 Tom Shields
-               2004 Alain Richard <alain.richard at equation.fr>
-               2004 Arnaud Quette <arnaud.quette at mgeups.com>
-
- 
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or (at
- your option) any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- $Id$
- 
+*
+* Nagios check_ups plugin
+*
+* License: GPL
+* Copyright (c) 2000 Tom Shields
+*               2004 Alain Richard <alain.richard at equation.fr>
+*               2004 Arnaud Quette <arnaud.quette at mgeups.com>
+* Copyright (c) 2002-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains Network UPS Tools plugin for Nagios
+*
+* License Information:
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+*  $Id$
+*
 ******************************************************************************/
 
 const char *progname = "check_ups";
 const char *revision = "$Revision$";
-const char *copyright = "2000-2004";
+const char *copyright = "2000-2006";
 const char *email = "nagiosplug-devel at lists.sourceforge.net";
 
 #include "common.h"
@@ -338,7 +345,7 @@
 	res=get_ups_variable ("ups.status", recv_buffer, sizeof (recv_buffer));
 	if (res == NOSUCHVAR) return OK;
 	if (res != STATE_OK) {
-		printf (_("Invalid response received from host\n"));
+		printf ("%s\n", _("Invalid response received from host"));
 		return ERROR;
 	}
 
@@ -398,7 +405,7 @@
 	if (process_tcp_request
 			(server_address, server_port, send_buffer, temp_buffer,
 			 sizeof (temp_buffer)) != STATE_OK) {
-		printf (_("Invalid response received from host\n"));
+		printf ("%s\n", _("Invalid response received from host"));
 		return ERROR;
 	}
 
@@ -416,7 +423,7 @@
 	}
 
 	if (strcmp (ptr, "ERR DATA-STALE") == 0) {
-		printf (_("CRITICAL - UPS data is stale\n"));
+		printf ("%s\n", _("CRITICAL - UPS data is stale"));
 		return ERROR;
 	}
 
@@ -428,7 +435,7 @@
 	ptr = temp_buffer + strlen (varname) + strlen (ups_name) + 6;
 	len = strlen(ptr);
 	if (len < 2 || ptr[0] != '"' || ptr[len-1] != '"') {
-		printf (_("Error: unable to parse variable\n"));
+		printf ("%s\n", _("Error: unable to parse variable"));
 		return ERROR;
 	}
 	strncpy (buf, ptr+1, len - 2);
@@ -573,7 +580,7 @@
 validate_arguments (void)
 {
 	if (! ups_name) {
-		printf (_("Error : no ups indicated\n"));
+		printf ("%s\n", _("Error : no ups indicated"));
 		return ERROR;
 	}
 	return OK;
@@ -593,9 +600,10 @@
 	printf ("Copyright (c) 2004 Arnaud Quette <arnaud.quette at mgeups.com>\n");
 	printf (COPYRIGHT, copyright, email);
 
-	printf (_("This plugin tests the UPS service on the specified host.\n\
-Network UPS Tools from www.networkupstools.org must be running for this\n\
-plugin to work.\n\n"));
+	printf ("%s\n", _("This plugin tests the UPS service on the specified host.Network UPS Tools "));
+  printf ("%s\n", _("from www.networkupstools.org must be running for thisplugin to work."));
+
+  printf ("\n\n");
 
 	print_usage ();
 
@@ -603,13 +611,10 @@
 
 	printf (_(UT_HOST_PORT), 'p', myport);
 
-	printf (_("\
- -u, --ups=STRING\n\
-    Name of UPS\n"));
-
-	printf (_("\
- -T, --temperature\n\
-    Output of temperatures in Celsius\n"));
+	printf (" %s\n", "-u, --ups=STRING");
+  printf ("    %s\n", _("Name of UPS"));
+  printf (" %s\n", "-T, --temperature");
+  printf ("    %s\n", _("Output of temperatures in Celsius"));
 
 	printf (_(UT_WARN_CRIT));
 
@@ -617,24 +622,23 @@
 
 	printf (_(UT_VERBOSE));
 
-	printf (_("\
-This plugin attempts to determine the status of a UPS (Uninterruptible Power\n\
-Supply) on a local or remote host. If the UPS is online or calibrating, the\n\
-plugin will return an OK state. If the battery is on it will return a WARNING\n\
-state.  If the UPS is off or has a low battery the plugin will return a CRITICAL\n\
-state.\n\n"));
+  printf ("\n");
+  printf ("%s\n", _("Notes:"));
+  
+	printf ("%s\n", _("This plugin attempts to determine the status of a UPS (Uninterruptible Power"));
+  printf ("%s\n", _("Supply) on a local or remote host. If the UPS is online or calibrating, the"));
+  printf ("%s\n", _("plugin will return an OK state. If the battery is on it will return a WARNING"));
+  printf ("%s\n", _("state.If the UPS is off or has a low battery the plugin will return a CRITICAL"));
+  printf ("%s\n\n", _("state."));
 
-	printf (_("\
-You may also specify a variable to check [such as temperature, utility voltage,\n\
-battery load, etc.]  as well as warning and critical thresholds for the value of\n\
-that variable.  If the remote host has multiple UPS that are being monitored you\n\
-will have to use the [ups] option to specify which UPS to check.\n\n"));
+	printf ("%s\n", _("You may also specify a variable to check [such as temperature, utility voltage,"));
+  printf ("%s\n", _("battery load, etc.]  as well as warning and critical thresholds for the value of"));
+  printf ("%s\n", _("that variable.  If the remote host has multiple UPS that are being monitored you"));
+  printf ("%s\n", _("will have to use the [ups] option to specify which UPS to check."));
 
-	printf (_("Notes:\n\n\
-This plugin requires that the UPSD daemon distributed with Russel Kroll's\n\
-Smart UPS Tools be installed on the remote host.  If you do not have the\n\
-package installed on your system, you can download it from\n\
-http://www.networkupstools.org\n\n"));
+	printf ("%s\n", _("This plugin requires that the UPSD daemon distributed with Russel Kroll's"));
+  printf ("%s\n", _("Smart UPS Tools be installed on the remote host.  If you do not have the"));
+  printf ("%s\n", _("package installed on your system, you can download it from http://www.networkupstools.org"));
 
 	printf (_(UT_SUPPORT));
 }
@@ -643,7 +647,6 @@
 void
 print_usage (void)
 {
-	printf ("\
-Usage: %s -H host -u ups [-p port] [-v variable]\n\
-                  [-wv warn_value] [-cv crit_value] [-to to_sec] [-T]\n", progname);
+  printf (_("Usage:"));
+	printf ("%s -H host -u ups [-p port] [-v variable] [-w warn_value] [-c crit_value] [-to to_sec] [-T]\n", progname);
 }

Index: check_time.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_time.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- check_time.c	25 May 2005 17:42:35 -0000	1.26
+++ check_time.c	18 Jun 2006 19:36:48 -0000	1.27
@@ -1,26 +1,40 @@
 /******************************************************************************
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- $Id$
- 
+*
+* Nagios check_time plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_time plugin
+*
+* License Information:
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+*
+* $Id$
+* 
 ******************************************************************************/
 
 const char *progname = "check_time";
 const char *revision = "$Revision$";
-const char *copyright = "1999-2004";
+const char *copyright = "1999-2006";
 const char *email = "nagiosplug-devel at lists.sourceforge.net";
 
 #include "common.h"
@@ -324,7 +338,9 @@
 	printf ("Copyright (c) 1999 Ethan Galstad\n");
 	printf (COPYRIGHT, copyright, email);
 
-	printf (_("This plugin will check the time on the specified host.\n\n"));
+	printf ("%s\n", _("This plugin will check the time on the specified host."));
+
+  printf ("\n\n");
 
 	print_usage ();
 
@@ -332,20 +348,18 @@
 
 	printf (_(UT_HOST_PORT), 'p', myport);
 
-	printf (_("\
- -u, --udp\n\
-    Use UDP to connect, not TCP\n\
- -w, --warning-variance=INTEGER\n\
-    Time difference (sec.) necessary to result in a warning status\n\
- -c, --critical-variance=INTEGER\n\
-    Time difference (sec.) necessary to result in a critical status\n\
- -W, --warning-connect=INTEGER\n\
-    Response time (sec.) necessary to result in warning status\n\
- -C, --critical-connect=INTEGER\n\
-    Response time (sec.) necessary to result in critical status\n"));
+	printf (" %s\n", "-u, --udp");
+  printf ("   %s\n", _("Use UDP to connect, not TCP"));
+  printf (" %s\n", "-w, --warning-variance=INTEGER");
+  printf ("   %s\n", _("Time difference (sec.) necessary to result in a warning status"));
+  printf (" %s\n", "-c, --critical-variance=INTEGER");
+  printf ("   %s\n", _("Time difference (sec.) necessary to result in a critical status"));
+  printf (" %s\n", "-W, --warning-connect=INTEGER");
+  printf ("   %s\n", _("Response time (sec.) necessary to result in warning status"));
+  printf (" %s\n", "-C, --critical-connect=INTEGER");
+  printf ("   %s\n", _("Response time (sec.) necessary to result in critical status"));
 
 	printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
-
 	printf (_(UT_SUPPORT));
 }
 
@@ -354,7 +368,7 @@
 void
 print_usage (void)
 {
-	printf ("\
-Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n\
-                  [-W connect_time] [-C connect_time] [-t timeout]\n", progname);
+  printf (_("Usage:"));
+	printf ("%s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n",progname);
+  printf (" [-W connect_time] [-C connect_time] [-t timeout]\n");
 }

Index: runcmd.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/runcmd.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- runcmd.c	1 May 2006 21:52:42 -0000	1.3
+++ runcmd.c	18 Jun 2006 19:36:48 -0000	1.4
@@ -1,6 +1,13 @@
-/*
+/****************************************************************************
+ * Nagios run command utilities
+ *
+ * License: GPL
+ * Copyright (c) 2005 nagios-plugins team
+ *
  * $Id$
  *
+ * Description :
+ *
  * A simple interface to executing programs from other programs, using an
  * optimized and safe popen()-like implementation. It is considered safe
  * in that no shell needs to be spawned and the environment passed to the
@@ -14,6 +21,21 @@
  * function which isn't is np_runcmd_init() which it doesn't make sense to
  * call twice anyway, so the api as a whole should be considered async-safe.
  *
+ * License Information:
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
 #define NAGIOSPLUG_API_C 1
@@ -137,7 +159,7 @@
 	argv = calloc(sizeof(char *), argc);
 
 	if (argv == NULL) {
-		printf (_("Could not malloc argv array in popen()\n"));
+		printf ("%s\n", _("Could not malloc argv array in popen()"));
 		return -1;
 	}
 

Index: urlize.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/urlize.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- urlize.c	7 Dec 2005 19:32:37 -0000	1.18
+++ urlize.c	18 Jun 2006 19:36:48 -0000	1.19
@@ -20,7 +20,7 @@
 
 const char *progname = "urlize";
 const char *revision = "$Revision$";
-const char *copyright = "2000-2004";
+const char *copyright = "2000-2006";
 const char *email = "nagiosplug-devel at lists.sourceforge.net";
 
 #include "common.h"
@@ -149,27 +149,25 @@
 	printf ("Copyright (c) 2000 Karl DeBisschop <kdebisschop at users.sourceforge.net>\n");
 	printf (COPYRIGHT, copyright, email);
 
-	printf (_("\n\
-This plugin wraps the text output of another command (plugin) in HTML\n\
-<A> tags, thus displaying the plugin output in as a clickable link in\n\
-the Nagios status screen.  The return status is the same as the invoked\n\
-plugin.\n\n"));
+	printf ("%s\n", _("This plugin wraps the text output of another command (plugin)"));
+  printf ("%s\n", _("in HTML <A> tags, thus displaying the plugin output in as a clickable link in"));
+  printf ("%s\n", _("the Nagios status screen.  The return status is the same as the invoked plugin."));
+
+  printf ("\n\n");
 
 	print_usage ();
 
-	printf (_("\n\
-Pay close attention to quoting to ensure that the shell passes the expected\n\
-data to the plugin. For example, in:\n\
-\n\
-    urlize http://example.com/ check_http -H example.com -r 'two words'\n\
-\n\
-the shell will remove the single quotes and urlize will see:\n\
-\n\
-    urlize http://example.com/ check_http -H example.com -r two words\n\
-\n\
-You probably want:\n\
-\n\
-    urlize http://example.com/ \"check_http -H example.com -r 'two words'\"\n"));
+  printf (_(UT_HELP_VRSN));
+
+  printf ("\n");
+  printf ("%s\n", _("Examples:"));
+	printf ("%s\n", _("Pay close attention to quoting to ensure that the shell passes the expected"));
+  printf ("%s\n\n", _("data to the plugin. For example, in:"));
+  printf (" %s\n\n", _("urlize http://example.com/ check_http -H example.com -r 'two words'"));
+  printf ("    %s\n", _("the shell will remove the single quotes and urlize will see:"));
+  printf (" %s\n\n", _("urlize http://example.com/ check_http -H example.com -r two words"));
+  printf ("    %s\n\n", _("You probably want:"));
+  printf (" %s\n", _("urlize http://example.com/ \"check_http -H example.com -r 'two words'\""));
 
 	printf (_(UT_SUPPORT));
 }
@@ -179,5 +177,6 @@
 void
 print_usage (void)
 {
-	printf ("Usage:\n %s <url> <plugin> <arg1> ... <argN>\n", progname);
+  printf (_("Usage:"));
+	printf ("%s <url> <plugin> <arg1> ... <argN>\n", progname);
 }

Index: check_udp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_udp.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- check_udp.c	25 Dec 2004 23:17:44 -0000	1.25
+++ check_udp.c	18 Jun 2006 19:36:48 -0000	1.26
@@ -1,26 +1,39 @@
 /******************************************************************************
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- $Id$
- 
+*
+* Nagios check_udp plugin
+*
+* License: GPL
+* Copyright (c) 1999-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_udp plugin
+*
+* License Information:
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+* $Id$
+* 
 *****************************************************************************/
 
 const char *progname = "check_udp";
 const char *revision = "$Revision$";
-const char *copyright = "1999-2004";
+const char *copyright = "1999-2006";
 const char *email = "nagiosplug-devel at lists.sourceforge.net";
 
 #include "common.h"
@@ -222,8 +235,9 @@
 	printf ("Copyright (c) 1999 Ethan Galstad\n");
 	printf (COPYRIGHT, copyright, email);
 
-	printf (_("\
-	This plugin tests an UDP connection with the specified host.\n\n"));
+	printf ("%s\n", _("This plugin tests an UDP connection with the specified host."));
+
+  printf ("\n\n");
 
 	print_usage ();
 
@@ -231,11 +245,10 @@
 
 	printf (_(UT_HOST_PORT), 'p', "none");
 
-	printf (_("\
- -e, --expect=STRING <optional>\n\
-    String to expect in first line of server response\n\
- -s, --send=STRING <optional>\n\
-    String to send to the server when initiating the connection\n"));
+	printf (" %s\n", "-e, --expect=STRING <optional>");
+  printf ("    %s\n", _("String to expect in first line of server response"));
+  printf (" %s\n", "-s, --send=STRING <optional>");
+  printf ("    %s\n", _("String to send to the server when initiating the connection"));
 
 	printf (_(UT_WARN_CRIT));
 
@@ -243,11 +256,10 @@
 
 	printf (_(UT_VERBOSE));
 
-	printf (_("\
-This plugin will attempt to connect to the specified port on the host.\n\
-Successful connects return STATE_OK, refusals and timeouts return\n\
-STATE_CRITICAL, other errors return STATE_UNKNOWN.\n\n"));
-
+	printf ("%s\n", _("This plugin will attempt to connect to the specified port on the host."));
+  printf ("   %s\n", _("Successful connects return STATE_OK, refusals and timeouts return"));
+  printf ("   %s\n", _("STATE_CRITICAL, other errors return STATE_UNKNOWN."));
+  
 	printf(_(UT_SUPPORT));
 }
 
@@ -258,7 +270,7 @@
 void
 print_usage (void)
 {
-	printf ("\
-Usage: %s -H <host_address> [-p port] [-w warn_time] [-c crit_time]\n\
-                  [-e expect] [-s send] [-t to_sec] [-v]\n", progname);
+  printf (_("Usage:"));
+	printf ("%s -H <host_address> [-p port] [-w warn_time] [-c crit_time]\n", progname);
+  printf (" [-e expect] [-s send] [-t to_sec] [-v]\n");
 }

Index: negate.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/negate.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- negate.c	25 Dec 2004 23:17:44 -0000	1.24
+++ negate.c	18 Jun 2006 19:36:48 -0000	1.25
@@ -1,20 +1,33 @@
 /******************************************************************************
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- 
- $Id$
+*
+* Nagios negate plugin
+*
+* License: GPL
+* Copyright (c) 2002-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the negate plugin
+*
+* License Information:
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+* $Id$
 
 @@-<article>
 
@@ -55,7 +68,7 @@
 
 const char *progname = "negate";
 const char *revision = "$Revision$";
-const char *copyright = "2002-2004";
+const char *copyright = "2002-2006";
 const char *email = "nagiosplug-devel at lists.sourceforge.net";
 
 #define DEFAULT_TIMEOUT 9
@@ -239,8 +252,9 @@
 
 	printf (COPYRIGHT, copyright, email);
 
-	printf (_("\
-Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n\n"));
+	printf ("%s\n", _("Negates the status of a plugin (returns OK for CRITICAL, and vice-versa)."));
+
+  printf ("\n\n");
 
 	print_usage ();
 
@@ -248,20 +262,20 @@
 
 	printf (_(UT_TIMEOUT), DEFAULT_TIMEOUT);
 
-	printf (_("\
-     [keep timeout than the plugin timeout to retain CRITICAL status]\n"));
-
-	printf (_("\
-  negate \"/usr/local/nagios/libexec/check_ping -H host\"\n\
-    Run check_ping and invert result. Must use full path to plugin\n\
-  negate \"/usr/local/nagios/libexec/check_procs -a 'vi negate.c'\"\n\
-    Use single quotes if you need to retain spaces\n"));
-
-	printf (_("\
-This plugin is a wrapper to take the output of another plugin and invert it.\n\
-If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL.\n\
-If the wrapped plugin returns STATE_CRITICAL, the wrapper will return STATE_OK.\n\
-Otherwise, the output state of the wrapped plugin is unchanged.\n"));
+	printf ("    %s\n", _("[keep timeout than the plugin timeout to retain CRITICAL status]"));
+  printf ("\n");
+  printf ("%s\n", _("Examples:"));
+	printf (" %s\n", "negate \"/usr/local/nagios/libexec/check_ping -H host\"");
+  printf ("    %s\n", _("Run check_ping and invert result. Must use full path to plugin"));
+  printf (" %s\n", "negate \"/usr/local/nagios/libexec/check_procs -a 'vi negate.c'\"");
+  printf ("    %s\n", _("Use single quotes if you need to retain spaces"));
+  printf (_(UT_VERBOSE));
+  printf ("\n");
+  printf ("%s\n", _("Notes:"));
+	printf ("%s\n", _("This plugin is a wrapper to take the output of another plugin and invert it."));
+  printf ("%s\n", _("If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL."));
+  printf ("%s\n", _("If the wrapped plugin returns STATE_CRITICAL, the wrapper will return STATE_OK."));
+  printf ("%s\n", _("Otherwise, the output state of the wrapped plugin is unchanged."));
 
 	printf (_(UT_SUPPORT));
 }
@@ -271,5 +285,6 @@
 void
 print_usage (void)
 {
-	printf ("Usage: %s [-t timeout] <definition of wrapped plugin>\n",progname);
+  printf (_("Usage:"));
+	printf ("%s [-t timeout] <definition of wrapped plugin>\n",progname);
 }

Index: check_users.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_users.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- check_users.c	25 Dec 2004 23:17:44 -0000	1.19
+++ check_users.c	18 Jun 2006 19:36:48 -0000	1.20
@@ -1,26 +1,39 @@
-/*****************************************************************************
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- $Id$
- 
+/******************************************************************************
+*
+* Nagios check_users plugin
+*
+* License: GPL
+* Copyright (c) 2002-2006 nagios-plugins team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_users plugin
+*
+* License Information:
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*
+*  $Id$
+*
 *****************************************************************************/
 
 const char *progname = "check_users";
 const char *revision = "$Revision$";
-const char *copyright = "2000-2004";
+const char *copyright = "2000-2006";
 const char *email = "nagiosplug-devel at lists.sourceforge.net";
 
 #include "common.h"
@@ -98,7 +111,7 @@
 		result = STATE_OK;
 
 	if (result == STATE_UNKNOWN)
-		printf (_("Unable to read output\n"));
+		printf ("%s\n", _("Unable to read output"));
 	else {
 		asprintf(&perf, "%s", perfdata ("users", users, "",
 		  TRUE, wusers,
@@ -190,19 +203,19 @@
 	printf ("Copyright (c) 1999 Ethan Galstad\n");
 	printf (COPYRIGHT, copyright, email);
 
-	printf (_("\
-This plugin checks the number of users currently logged in on the local\n\
-system and generates an error if the number exceeds the thresholds specified.\n"));
+	printf ("%s\n", _("This plugin checks the number of users currently logged in on the local"));
+  printf ("%s\n", _("system and generates an error if the number exceeds the thresholds specified."));
+
+  printf ("\n\n");
 
 	print_usage ();
 
 	printf (_(UT_HELP_VRSN));
 
-	printf (_("\
- -w, --warning=INTEGER\n\
-    Set WARNING status if more than INTEGER users are logged in\n\
- -c, --critical=INTEGER\n\
-    Set CRITICAL status if more than INTEGER users are logged in\n"));
+	printf (" %s\n", "-w, --warning=INTEGER");
+  printf ("    %s\n", _("Set WARNING status if more than INTEGER users are logged in"));
+  printf (" %s\n", "-c, --critical=INTEGER");
+  printf ("    %s\n", _("Set CRITICAL status if more than INTEGER users are logged in"));
 
 	printf (_(UT_SUPPORT));
 }
@@ -211,5 +224,6 @@
 void
 print_usage (void)
 {
-	printf ("Usage: %s -w <users> -c <users>\n", progname);
+  printf (_("Usage:"));
+	printf ("%s -w <users> -c <users>\n", progname);
 }

Index: sslutils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/sslutils.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sslutils.c	31 Oct 2005 20:03:19 -0000	1.2
+++ sslutils.c	18 Jun 2006 19:36:48 -0000	1.3
@@ -47,7 +47,7 @@
 		SSL_load_error_strings ();
 		OpenSSL_add_all_algorithms();
 		if ((c = SSL_CTX_new (m)) == NULL) {
-				printf (_("CRITICAL - Cannot create SSL context.\n"));
+				printf ("%s\n", _("CRITICAL - Cannot create SSL context."));
 				return STATE_CRITICAL;
 		}
 		if ((s = SSL_new (c)) != NULL){
@@ -55,13 +55,13 @@
 				if (SSL_connect(s) == 1){
 						return OK;
 				} else {
-						printf (_("CRITICAL - Cannot make SSL connection "));
+						printf ("%s\n", _("CRITICAL - Cannot make SSL connection "));
 #  ifdef USE_OPENSSL /* XXX look into ERR_error_string */
 						ERR_print_errors_fp (stdout);
 #  endif /* USE_OPENSSL */
 				}
 		} else {
-				printf (_("CRITICAL - Cannot initiate SSL handshake.\n"));
+				printf ("%s\n", _("CRITICAL - Cannot initiate SSL handshake."));
 		}
 		return STATE_CRITICAL;
 }
@@ -93,7 +93,7 @@
 
 	certificate=SSL_get_peer_certificate(s);
 	if(! certificate){
-		printf (_("CRITICAL - Cannot retrieve server certificate.\n"));
+		printf ("%s\n",_("CRITICAL - Cannot retrieve server certificate."));
 		return STATE_CRITICAL;
 	}
 
@@ -103,7 +103,7 @@
 	/* Generate tm structure to process timestamp */
 	if (tm->type == V_ASN1_UTCTIME) {
 		if (tm->length < 10) {
-			printf (_("CRITICAL - Wrong time format in certificate.\n"));
+			printf ("%s\n", _("CRITICAL - Wrong time format in certificate."));
 			return STATE_CRITICAL;
 		} else {
 			stamp.tm_year = (tm->data[0] - '0') * 10 + (tm->data[1] - '0');
@@ -113,7 +113,7 @@
 		}
 	} else {
 		if (tm->length < 12) {
-			printf (_("CRITICAL - Wrong time format in certificate.\n"));
+			printf ("%s\n", _("CRITICAL - Wrong time format in certificate."));
 			return STATE_CRITICAL;
 		} else {
 			stamp.tm_year =
@@ -155,7 +155,7 @@
 	X509_free (certificate);
 	return STATE_OK;
 #  else /* ifndef USE_OPENSSL */
-	printf (_("WARNING - Plugin does not support checking certificates.\n"));
+	printf ("%s\n", _("WARNING - Plugin does not support checking certificates."));
 	return STATE_WARNING;
 #  endif /* USE_OPENSSL */
 }





More information about the Commits mailing list