summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-11-12 00:49:51 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2004-11-12 00:49:51 (GMT)
commitfbf1e60f477460205c2002bb34b87f9e1e3b0faf (patch)
tree96d568de54259a8b1f8e6a88dbb533037ef730e5
parentdbe8fb585697e3a7c073cef083ff2fb027b76968 (diff)
downloadmonitoring-plugins-fbf1e60f477460205c2002bb34b87f9e1e3b0faf.tar.gz
Update to using coreutils 5.2.1 libraries and snprintf.c from samba 3.0.8
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@895 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--lib/Makefile.am6
-rw-r--r--lib/error.c207
-rw-r--r--lib/error.h36
-rw-r--r--lib/error.m419
-rw-r--r--lib/exit.h32
-rw-r--r--lib/exitfail.c27
-rw-r--r--lib/exitfail.h20
-rw-r--r--lib/fsusage.c57
-rw-r--r--lib/fsusage.h14
-rw-r--r--lib/fsusage.m453
-rw-r--r--lib/full-read.h24
-rw-r--r--lib/getloadavg.c166
-rw-r--r--lib/getopt.c144
-rw-r--r--lib/getopt.h52
-rw-r--r--lib/getopt1.c61
-rw-r--r--lib/gettext.h17
-rw-r--r--lib/ls-mntd-fs.m444
-rw-r--r--lib/malloc.c6
-rw-r--r--lib/mountlist.c213
-rw-r--r--lib/mountlist.h33
-rw-r--r--lib/onceonly.m463
-rw-r--r--lib/realloc.c13
-rw-r--r--lib/snprintf.c133
-rw-r--r--lib/strtod.c21
-rw-r--r--lib/unlocked-io.h66
-rw-r--r--lib/unlocked-io.m422
-rw-r--r--lib/xalloc.h88
-rw-r--r--lib/xalloc.m432
-rw-r--r--lib/xmalloc.c210
-rw-r--r--lib/xstrdup.c33
-rw-r--r--plugins/check_disk.c1
-rw-r--r--po/de.po1167
-rw-r--r--po/fr.po1167
33 files changed, 2344 insertions, 1903 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 7b07f55..2e9aeee 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -2,7 +2,8 @@
2 2
3noinst_LIBRARIES = libnagiosplug.a 3noinst_LIBRARIES = libnagiosplug.a
4 4
5libnagiosplug_a_SOURCES = getopt.c getopt1.c snprintf.c fsusage.c mountlist.c xmalloc.c 5libnagiosplug_a_SOURCES = getopt.c getopt1.c fsusage.c snprintf.c mountlist.c \
6 xmalloc.c xstrdup.c exitfail.c
6 7
7libnagiosplug_a_LIBADD = @LIBOBJS@ 8libnagiosplug_a_LIBADD = @LIBOBJS@
8libnagiosplug_a_DEPENDENCIES = $(libnagiosplug_a_LIBADD) 9libnagiosplug_a_DEPENDENCIES = $(libnagiosplug_a_LIBADD)
@@ -12,6 +13,7 @@ EXTRA_DIST = ulonglong.m4 codeset.m4 getloadavg.m4 gettext.m4 glibc21.m4 iconv.m
12 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 \ 13 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 \
13 lib-link.m4 lib-prefix.m4 progtest.m4 stdint_h.m4 uintmax_t.m4 afs.m4 \ 14 lib-link.m4 lib-prefix.m4 progtest.m4 stdint_h.m4 uintmax_t.m4 afs.m4 \
14 fstypename.m4 fsusage.m4 ls-mntd-fs.m4 getopt.h gettext.h fsusage.h mountlist.h\ 15 fstypename.m4 fsusage.m4 ls-mntd-fs.m4 getopt.h gettext.h fsusage.h mountlist.h\
15 error.m4 error.h error.c getloadavg.c xalloc.h unlocked-io.h malloc.c realloc.c strtod.c 16 error.m4 error.h error.c getloadavg.c xalloc.h unlocked-io.h unlocked-io.m4 malloc.c \
17 onceonly.m4 realloc.c strtod.c exitfail.h full-read.h xstrdup.c xalloc.m4 exit.h
16 18
17INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl 19INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
diff --git a/lib/error.c b/lib/error.c
index 2296124..1149235 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -1,5 +1,7 @@
1/* Error handler for noninteractive utilities 1/* Error handler for noninteractive utilities
2 Copyright (C) 1990-1998, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 2 Copyright (C) 1990-1998, 2000-2002, 2003 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
3 This program is free software; you can redistribute it and/or modify 5 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 6 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option) 7 the Free Software Foundation; either version 2, or (at your option)
@@ -20,7 +22,12 @@
20# include <config.h> 22# include <config.h>
21#endif 23#endif
22 24
25#include "error.h"
26
27#include <stdarg.h>
23#include <stdio.h> 28#include <stdio.h>
29#include <stdlib.h>
30#include <string.h>
24 31
25#ifdef _LIBC 32#ifdef _LIBC
26# include <libintl.h> 33# include <libintl.h>
@@ -33,28 +40,6 @@
33# define mbsrtowcs __mbsrtowcs 40# define mbsrtowcs __mbsrtowcs
34#endif 41#endif
35 42
36#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
37# if __STDC__
38# include <stdarg.h>
39# define VA_START(args, lastarg) va_start(args, lastarg)
40# else
41# include <varargs.h>
42# define VA_START(args, lastarg) va_start(args)
43# endif
44#else
45# define va_alist a1, a2, a3, a4, a5, a6, a7, a8
46# define va_dcl char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8;
47#endif
48
49#if STDC_HEADERS || _LIBC
50# include <stdlib.h>
51# include <string.h>
52#else
53void exit ();
54#endif
55
56#include "error.h"
57
58#if !_LIBC 43#if !_LIBC
59# include "unlocked-io.h" 44# include "unlocked-io.h"
60#endif 45#endif
@@ -66,11 +51,7 @@ void exit ();
66/* If NULL, error will flush stdout, then print on stderr the program 51/* If NULL, error will flush stdout, then print on stderr the program
67 name, a colon and a space. Otherwise, error will call this 52 name, a colon and a space. Otherwise, error will call this
68 function without parameters instead. */ 53 function without parameters instead. */
69void (*error_print_progname) ( 54void (*error_print_progname) (void);
70#if __STDC__ - 0
71 void
72#endif
73 );
74 55
75/* This variable is incremented each time `error' is called. */ 56/* This variable is incremented each time `error' is called. */
76unsigned int error_message_count; 57unsigned int error_message_count;
@@ -98,6 +79,8 @@ extern void __error_at_line (int status, int errnum, const char *file_name,
98# undef putc 79# undef putc
99# define putc(c, fp) INTUSE(_IO_putc) (c, fp) 80# define putc(c, fp) INTUSE(_IO_putc) (c, fp)
100 81
82# include <bits/libc-lock.h>
83
101#else /* not _LIBC */ 84#else /* not _LIBC */
102 85
103# if !HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P 86# if !HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P
@@ -107,34 +90,17 @@ extern void __error_at_line (int status, int errnum, const char *file_name,
107char *strerror_r (); 90char *strerror_r ();
108# endif 91# endif
109 92
93# ifndef SIZE_MAX
94# define SIZE_MAX ((size_t) -1)
95# endif
96
110/* The calling program should define program_name and set it to the 97/* The calling program should define program_name and set it to the
111 name of the executing program. */ 98 name of the executing program. */
112extern char *progname; 99extern char *program_name;
113 100
114# if HAVE_STRERROR_R || defined strerror_r 101# if HAVE_STRERROR_R || defined strerror_r
115# define __strerror_r strerror_r 102# define __strerror_r strerror_r
116# else 103# endif
117# if HAVE_STRERROR
118# ifndef HAVE_DECL_STRERROR
119"this configure-time declaration test was not run"
120# endif
121# if !HAVE_DECL_STRERROR
122char *strerror ();
123# endif
124# else
125static char *
126private_strerror (int errnum)
127{
128 extern char *sys_errlist[];
129 extern int sys_nerr;
130
131 if (errnum > 0 && errnum <= sys_nerr)
132 return _(sys_errlist[errnum]);
133 return _("Unknown system error");
134}
135# define strerror private_strerror
136# endif /* HAVE_STRERROR */
137# endif /* HAVE_STRERROR_R || defined strerror_r */
138#endif /* not _LIBC */ 104#endif /* not _LIBC */
139 105
140static void 106static void
@@ -172,93 +138,70 @@ print_errno_message (int errnum)
172 fprintf (stderr, ": %s", s); 138 fprintf (stderr, ": %s", s);
173} 139}
174 140
175#ifdef VA_START
176static void 141static void
177error_tail (int status, int errnum, const char *message, va_list args) 142error_tail (int status, int errnum, const char *message, va_list args)
178{ 143{
179# if HAVE_VPRINTF || _LIBC 144#if _LIBC
180# if _LIBC
181 if (_IO_fwide (stderr, 0) > 0) 145 if (_IO_fwide (stderr, 0) > 0)
182 { 146 {
183# define ALLOCA_LIMIT 2000 147# define ALLOCA_LIMIT 2000
184 size_t len = strlen (message) + 1; 148 size_t len = strlen (message) + 1;
185 wchar_t *wmessage = NULL; 149 const wchar_t *wmessage = L"out of memory";
186 mbstate_t st; 150 wchar_t *wbuf = (len < ALLOCA_LIMIT
187 size_t res; 151 ? alloca (len * sizeof *wbuf)
188 const char *tmp; 152 : len <= SIZE_MAX / sizeof *wbuf
189 153 ? malloc (len * sizeof *wbuf)
190 do 154 : NULL);
155
156 if (wbuf)
191 { 157 {
192 if (len < ALLOCA_LIMIT) 158 size_t res;
193 wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); 159 mbstate_t st;
194 else 160 const char *tmp = message;
195 {
196 if (wmessage != NULL && len / 2 < ALLOCA_LIMIT)
197 wmessage = NULL;
198
199 wmessage = (wchar_t *) realloc (wmessage,
200 len * sizeof (wchar_t));
201
202 if (wmessage == NULL)
203 {
204 fputws_unlocked (L"out of memory\n", stderr);
205 return;
206 }
207 }
208
209 memset (&st, '\0', sizeof (st)); 161 memset (&st, '\0', sizeof (st));
210 tmp =message; 162 res = mbsrtowcs (wbuf, &tmp, len, &st);
163 wmessage = res == (size_t) -1 ? L"???" : wbuf;
211 } 164 }
212 while ((res = mbsrtowcs (wmessage, &tmp, len, &st)) == len);
213
214 if (res == (size_t) -1)
215 /* The string cannot be converted. */
216 wmessage = (wchar_t *) L"???";
217 165
218 __vfwprintf (stderr, wmessage, args); 166 __vfwprintf (stderr, wmessage, args);
167 if (! (len < ALLOCA_LIMIT))
168 free (wbuf);
219 } 169 }
220 else 170 else
221# endif 171#endif
222 vfprintf (stderr, message, args); 172 vfprintf (stderr, message, args);
223# else
224 _doprnt (message, args, stderr);
225# endif
226 va_end (args); 173 va_end (args);
227 174
228 ++error_message_count; 175 ++error_message_count;
229 if (errnum) 176 if (errnum)
230 print_errno_message (errnum); 177 print_errno_message (errnum);
231# if _LIBC 178#if _LIBC
232 if (_IO_fwide (stderr, 0) > 0) 179 if (_IO_fwide (stderr, 0) > 0)
233 putwc (L'\n', stderr); 180 putwc (L'\n', stderr);
234 else 181 else
235# endif 182#endif
236 putc ('\n', stderr); 183 putc ('\n', stderr);
237 fflush (stderr); 184 fflush (stderr);
238 if (status) 185 if (status)
239 exit (status); 186 exit (status);
240} 187}
241#endif
242 188
243 189
244/* Print the program name and error message MESSAGE, which is a printf-style 190/* Print the program name and error message MESSAGE, which is a printf-style
245 format string with optional args. 191 format string with optional args.
246 If ERRNUM is nonzero, print its corresponding system error message. 192 If ERRNUM is nonzero, print its corresponding system error message.
247 Exit with status STATUS if it is nonzero. */ 193 Exit with status STATUS if it is nonzero. */
248/* VARARGS */
249void 194void
250#if defined VA_START && __STDC__
251error (int status, int errnum, const char *message, ...) 195error (int status, int errnum, const char *message, ...)
252#else
253error (status, errnum, message, va_alist)
254 int status;
255 int errnum;
256 char *message;
257 va_dcl
258#endif
259{ 196{
260#ifdef VA_START
261 va_list args; 197 va_list args;
198
199#if defined _LIBC && defined __libc_ptf_call
200 /* We do not want this call to be cut short by a thread
201 cancellation. Therefore disable cancellation for now. */
202 int state = PTHREAD_CANCEL_ENABLE;
203 __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state),
204 0);
262#endif 205#endif
263 206
264 fflush (stdout); 207 fflush (stdout);
@@ -271,29 +214,20 @@ error (status, errnum, message, va_alist)
271 { 214 {
272#if _LIBC 215#if _LIBC
273 if (_IO_fwide (stderr, 0) > 0) 216 if (_IO_fwide (stderr, 0) > 0)
274 __fwprintf (stderr, L"%s: ", progname); 217 __fwprintf (stderr, L"%s: ", program_name);
275 else 218 else
276#endif 219#endif
277 fprintf (stderr, "%s: ", progname); 220 fprintf (stderr, "%s: ", program_name);
278 } 221 }
279 222
280#ifdef VA_START 223 va_start (args, message);
281 VA_START (args, message);
282 error_tail (status, errnum, message, args); 224 error_tail (status, errnum, message, args);
283#else
284 fprintf (stderr, message, a1, a2, a3, a4, a5, a6, a7, a8);
285
286 ++error_message_count;
287 if (errnum)
288 print_errno_message (errnum);
289 putc ('\n', stderr);
290 fflush (stderr);
291 if (status)
292 exit (status);
293#endif
294 225
295#ifdef _LIBC 226#ifdef _LIBC
296 _IO_funlockfile (stderr); 227 _IO_funlockfile (stderr);
228# ifdef __libc_ptf_call
229 __libc_ptf_call (pthread_setcancelstate, (state, NULL), 0);
230# endif
297#endif 231#endif
298} 232}
299 233
@@ -302,22 +236,10 @@ error (status, errnum, message, va_alist)
302int error_one_per_line; 236int error_one_per_line;
303 237
304void 238void
305#if defined VA_START && __STDC__
306error_at_line (int status, int errnum, const char *file_name, 239error_at_line (int status, int errnum, const char *file_name,
307 unsigned int line_number, const char *message, ...) 240 unsigned int line_number, const char *message, ...)
308#else
309error_at_line (status, errnum, file_name, line_number, message, va_alist)
310 int status;
311 int errnum;
312 const char *file_name;
313 unsigned int line_number;
314 char *message;
315 va_dcl
316#endif
317{ 241{
318#ifdef VA_START
319 va_list args; 242 va_list args;
320#endif
321 243
322 if (error_one_per_line) 244 if (error_one_per_line)
323 { 245 {
@@ -334,6 +256,14 @@ error_at_line (status, errnum, file_name, line_number, message, va_alist)
334 old_line_number = line_number; 256 old_line_number = line_number;
335 } 257 }
336 258
259#if defined _LIBC && defined __libc_ptf_call
260 /* We do not want this call to be cut short by a thread
261 cancellation. Therefore disable cancellation for now. */
262 int state = PTHREAD_CANCEL_ENABLE;
263 __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state),
264 0);
265#endif
266
337 fflush (stdout); 267 fflush (stdout);
338#ifdef _LIBC 268#ifdef _LIBC
339 _IO_flockfile (stderr); 269 _IO_flockfile (stderr);
@@ -344,10 +274,10 @@ error_at_line (status, errnum, file_name, line_number, message, va_alist)
344 { 274 {
345#if _LIBC 275#if _LIBC
346 if (_IO_fwide (stderr, 0) > 0) 276 if (_IO_fwide (stderr, 0) > 0)
347 __fwprintf (stderr, L"%s: ", progname); 277 __fwprintf (stderr, L"%s: ", program_name);
348 else 278 else
349#endif 279#endif
350 fprintf (stderr, "%s:", progname); 280 fprintf (stderr, "%s:", program_name);
351 } 281 }
352 282
353 if (file_name != NULL) 283 if (file_name != NULL)
@@ -360,23 +290,14 @@ error_at_line (status, errnum, file_name, line_number, message, va_alist)
360 fprintf (stderr, "%s:%d: ", file_name, line_number); 290 fprintf (stderr, "%s:%d: ", file_name, line_number);
361 } 291 }
362 292
363#ifdef VA_START 293 va_start (args, message);
364 VA_START (args, message);
365 error_tail (status, errnum, message, args); 294 error_tail (status, errnum, message, args);
366#else
367 fprintf (stderr, message, a1, a2, a3, a4, a5, a6, a7, a8);
368
369 ++error_message_count;
370 if (errnum)
371 print_errno_message (errnum);
372 putc ('\n', stderr);
373 fflush (stderr);
374 if (status)
375 exit (status);
376#endif
377 295
378#ifdef _LIBC 296#ifdef _LIBC
379 _IO_funlockfile (stderr); 297 _IO_funlockfile (stderr);
298# ifdef __libc_ptf_call
299 __libc_ptf_call (pthread_setcancelstate, (state, NULL), 0);
300# endif
380#endif 301#endif
381} 302}
382 303
diff --git a/lib/error.h b/lib/error.h
index 177b2dc..8ed6359 100644
--- a/lib/error.h
+++ b/lib/error.h
@@ -1,24 +1,20 @@
1/* Declaration for error-reporting function 1/* Declaration for error-reporting function
2 Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. 2 Copyright (C) 1995, 1996, 1997, 2003 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
3 4
4 5 This program is free software; you can redistribute it and/or modify
5 NOTE: The canonical source of this file is maintained with the GNU C Library. 6 it under the terms of the GNU General Public License as published by
6 Bugs can be reported to bug-glibc@prep.ai.mit.edu. 7 the Free Software Foundation; either version 2, or (at your option)
7 8 any later version.
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2, or (at your option) any
11 later version.
12 9
13 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details. 13 GNU General Public License for more details.
17 14
18 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License along
19 along with this program; if not, write to the Free Software 16 with this program; if not, write to the Free Software Foundation,
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 17 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 USA. */
22 18
23#ifndef _ERROR_H 19#ifndef _ERROR_H
24#define _ERROR_H 1 20#define _ERROR_H 1
@@ -40,17 +36,15 @@
40extern "C" { 36extern "C" {
41#endif 37#endif
42 38
43#if defined (__STDC__) && __STDC__
44
45/* Print a message with `fprintf (stderr, FORMAT, ...)'; 39/* Print a message with `fprintf (stderr, FORMAT, ...)';
46 if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). 40 if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
47 If STATUS is nonzero, terminate the program with `exit (STATUS)'. */ 41 If STATUS is nonzero, terminate the program with `exit (STATUS)'. */
48 42
49extern void error (int status, int errnum, const char *format, ...) 43extern void error (int __status, int __errnum, const char *__format, ...)
50 __attribute__ ((__format__ (__printf__, 3, 4))); 44 __attribute__ ((__format__ (__printf__, 3, 4)));
51 45
52extern void error_at_line (int status, int errnum, const char *fname, 46extern void error_at_line (int __status, int __errnum, const char *__fname,
53 unsigned int lineno, const char *format, ...) 47 unsigned int __lineno, const char *__format, ...)
54 __attribute__ ((__format__ (__printf__, 5, 6))); 48 __attribute__ ((__format__ (__printf__, 5, 6)));
55 49
56/* If NULL, error will flush stdout, then print on stderr the program 50/* If NULL, error will flush stdout, then print on stderr the program
@@ -58,12 +52,6 @@ extern void error_at_line (int status, int errnum, const char *fname,
58 function without parameters instead. */ 52 function without parameters instead. */
59extern void (*error_print_progname) (void); 53extern void (*error_print_progname) (void);
60 54
61#else
62void error ();
63void error_at_line ();
64extern void (*error_print_progname) ();
65#endif
66
67/* This variable is incremented each time `error' is called. */ 55/* This variable is incremented each time `error' is called. */
68extern unsigned int error_message_count; 56extern unsigned int error_message_count;
69 57
diff --git a/lib/error.m4 b/lib/error.m4
index 717725d..0bc2e68 100644
--- a/lib/error.m4
+++ b/lib/error.m4
@@ -1,14 +1,15 @@
1#serial 5 1#serial 9
2 2
3dnl FIXME: put these prerequisite-only *.m4 files in a separate 3AC_DEFUN([gl_ERROR],
4dnl directory -- otherwise, they'll conflict with existing files. 4[
5 AC_FUNC_ERROR_AT_LINE
6 dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]).
7 jm_PREREQ_ERROR
8])
5 9
6dnl These are the prerequisite macros for GNU's error.c file. 10# Prerequisites of lib/error.c.
7AC_DEFUN([jm_PREREQ_ERROR], 11AC_DEFUN([jm_PREREQ_ERROR],
8[ 12[
9 AC_CHECK_FUNCS(strerror vprintf doprnt) 13 AC_REQUIRE([AC_FUNC_STRERROR_R])
10 AC_CHECK_DECLS([strerror]) 14 :
11 AC_CHECK_HEADERS([libintl.h])
12 AC_FUNC_STRERROR_R
13 AC_HEADER_STDC
14]) 15])
diff --git a/lib/exit.h b/lib/exit.h
new file mode 100644
index 0000000..4e8d465
--- /dev/null
+++ b/lib/exit.h
@@ -0,0 +1,32 @@
1/* exit() function.
2 Copyright (C) 1995, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17
18#ifndef _EXIT_H
19#define _EXIT_H
20
21/* Get exit() declaration. */
22#include <stdlib.h>
23
24/* Some systems do not define EXIT_*, even with STDC_HEADERS. */
25#ifndef EXIT_SUCCESS
26# define EXIT_SUCCESS 0
27#endif
28#ifndef EXIT_FAILURE
29# define EXIT_FAILURE 1
30#endif
31
32#endif /* _EXIT_H */
diff --git a/lib/exitfail.c b/lib/exitfail.c
new file mode 100644
index 0000000..2ae5f69
--- /dev/null
+++ b/lib/exitfail.c
@@ -0,0 +1,27 @@
1/* Failure exit status
2
3 Copyright (C) 2002, 2003 Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; see the file COPYING.
17 If not, write to the Free Software Foundation,
18 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20#if HAVE_CONFIG_H
21# include <config.h>
22#endif
23
24#include "exitfail.h"
25#include "exit.h"
26
27int volatile exit_failure = EXIT_FAILURE;
diff --git a/lib/exitfail.h b/lib/exitfail.h
new file mode 100644
index 0000000..cf5ab71
--- /dev/null
+++ b/lib/exitfail.h
@@ -0,0 +1,20 @@
1/* Failure exit status
2
3 Copyright (C) 2002 Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; see the file COPYING.
17 If not, write to the Free Software Foundation,
18 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20extern int volatile exit_failure;
diff --git a/lib/fsusage.c b/lib/fsusage.c
index 7339c80..d926029 100644
--- a/lib/fsusage.c
+++ b/lib/fsusage.c
@@ -1,5 +1,7 @@
1/* fsusage.c -- return space usage of mounted filesystems 1/* fsusage.c -- return space usage of mounted filesystems
2 Copyright (C) 1991, 1992, 1996, 1998, 1999 Free Software Foundation, Inc. 2
3 Copyright (C) 1991, 1992, 1996, 1998, 1999, 2002, 2003 Free
4 Software Foundation, Inc.
3 5
4 This program is free software; you can redistribute it and/or modify 6 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
@@ -15,23 +17,26 @@
15 along with this program; if not, write to the Free Software Foundation, 17 along with this program; if not, write to the Free Software Foundation,
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17 19
18#include "config.h" 20#if HAVE_CONFIG_H
21# include <config.h>
22#endif
19 23
20#if HAVE_INTTYPES_H 24#if HAVE_INTTYPES_H
21# include <inttypes.h> 25# include <inttypes.h>
26#else
27# if HAVE_STDINT_H
28# include <stdint.h>
29# endif
22#endif 30#endif
31#ifndef UINTMAX_MAX
32# define UINTMAX_MAX ((uintmax_t) -1)
33#endif
34
23#include <sys/types.h> 35#include <sys/types.h>
24#include <sys/stat.h> 36#include <sys/stat.h>
25#include "fsusage.h" 37#include "fsusage.h"
26 38
27#if HAVE_LIMITS_H 39#include <limits.h>
28# include <limits.h>
29#endif
30#ifndef CHAR_BIT
31# define CHAR_BIT 8
32#endif
33
34int statfs ();
35 40
36#if HAVE_SYS_PARAM_H 41#if HAVE_SYS_PARAM_H
37# include <sys/param.h> 42# include <sys/param.h>
@@ -49,7 +54,7 @@ int statfs ();
49# include <sys/fs/s5param.h> 54# include <sys/fs/s5param.h>
50#endif 55#endif
51 56
52#if defined (HAVE_SYS_FILSYS_H) && !defined (_CRAY) 57#if defined HAVE_SYS_FILSYS_H && !defined _CRAY
53# include <sys/filsys.h> /* SVR2 */ 58# include <sys/filsys.h> /* SVR2 */
54#endif 59#endif
55 60
@@ -70,11 +75,18 @@ int statfs ();
70int statvfs (); 75int statvfs ();
71#endif 76#endif
72 77
78#include "full-read.h"
79
73/* Many space usage primitives use all 1 bits to denote a value that is 80/* Many space usage primitives use all 1 bits to denote a value that is
74 not applicable or unknown. Propagate this information by returning 81 not applicable or unknown. Propagate this information by returning
75 a uintmax_t value that is all 1 bits if the argument is all 1 bits, 82 a uintmax_t value that is all 1 bits if X is all 1 bits, even if X
76 even if the argument is unsigned and smaller than uintmax_t. */ 83 is unsigned and narrower than uintmax_t. */
77#define PROPAGATE_ALL_ONES(x) ((x) == -1 ? (uintmax_t) -1 : (uintmax_t) (x)) 84#define PROPAGATE_ALL_ONES(x) \
85 ((sizeof (x) < sizeof (uintmax_t) \
86 && (~ (x) == (sizeof (x) < sizeof (int) \
87 ? - (1 << (sizeof (x) * CHAR_BIT)) \
88 : 0))) \
89 ? UINTMAX_MAX : (x))
78 90
79/* Extract the top bit of X as an uintmax_t value. */ 91/* Extract the top bit of X as an uintmax_t value. */
80#define EXTRACT_TOP_BIT(x) ((x) \ 92#define EXTRACT_TOP_BIT(x) ((x) \
@@ -89,8 +101,6 @@ int statvfs ();
89 otherwise, use PROPAGATE_ALL_ONES. */ 101 otherwise, use PROPAGATE_ALL_ONES. */
90#define PROPAGATE_TOP_BIT(x) ((x) | ~ (EXTRACT_TOP_BIT (x) - 1)) 102#define PROPAGATE_TOP_BIT(x) ((x) | ~ (EXTRACT_TOP_BIT (x) - 1))
91 103
92int safe_read ();
93
94/* Fill in the fields of FSP with information about space usage for 104/* Fill in the fields of FSP with information about space usage for
95 the filesystem on which PATH resides. 105 the filesystem on which PATH resides.
96 DISK is the device on which PATH is mounted, for space-getting 106 DISK is the device on which PATH is mounted, for space-getting
@@ -147,7 +157,7 @@ get_fs_usage (const char *path, const char *disk, struct fs_usage *fsp)
147 if (fd < 0) 157 if (fd < 0)
148 return -1; 158 return -1;
149 lseek (fd, (off_t) SUPERBOFF, 0); 159 lseek (fd, (off_t) SUPERBOFF, 0);
150 if (safe_read (fd, (char *) &fsd, sizeof fsd) != sizeof fsd) 160 if (full_read (fd, (char *) &fsd, sizeof fsd) != sizeof fsd)
151 { 161 {
152 close (fd); 162 close (fd);
153 return -1; 163 return -1;
@@ -160,7 +170,7 @@ get_fs_usage (const char *path, const char *disk, struct fs_usage *fsp)
160 fsp->fsu_bavail = PROPAGATE_TOP_BIT (fsd.s_tfree); 170 fsp->fsu_bavail = PROPAGATE_TOP_BIT (fsd.s_tfree);
161 fsp->fsu_bavail_top_bit_set = EXTRACT_TOP_BIT (fsd.s_tfree) != 0; 171 fsp->fsu_bavail_top_bit_set = EXTRACT_TOP_BIT (fsd.s_tfree) != 0;
162 fsp->fsu_files = (fsd.s_isize == -1 172 fsp->fsu_files = (fsd.s_isize == -1
163 ? (uintmax_t) -1 173 ? UINTMAX_MAX
164 : (fsd.s_isize - 2) * INOPB * (fsd.s_type == Fs2b ? 2 : 1)); 174 : (fsd.s_isize - 2) * INOPB * (fsd.s_type == Fs2b ? 2 : 1));
165 fsp->fsu_ffree = PROPAGATE_ALL_ONES (fsd.s_tinode); 175 fsp->fsu_ffree = PROPAGATE_ALL_ONES (fsd.s_tinode);
166 176
@@ -217,7 +227,7 @@ get_fs_usage (const char *path, const char *disk, struct fs_usage *fsp)
217 /* Empirically, the block counts on most SVR3 and SVR3-derived 227 /* Empirically, the block counts on most SVR3 and SVR3-derived
218 systems seem to always be in terms of 512-byte blocks, 228 systems seem to always be in terms of 512-byte blocks,
219 no matter what value f_bsize has. */ 229 no matter what value f_bsize has. */
220# if _AIX || defined(_CRAY) 230# if _AIX || defined _CRAY
221 fsp->fsu_blocksize = PROPAGATE_ALL_ONES (fsd.f_bsize); 231 fsp->fsu_blocksize = PROPAGATE_ALL_ONES (fsd.f_bsize);
222# else 232# else
223 fsp->fsu_blocksize = 512; 233 fsp->fsu_blocksize = 512;
@@ -233,12 +243,13 @@ get_fs_usage (const char *path, const char *disk, struct fs_usage *fsp)
233 return -1; 243 return -1;
234 244
235 /* f_frsize isn't guaranteed to be supported. */ 245 /* f_frsize isn't guaranteed to be supported. */
236 fsp->fsu_blocksize = 246 fsp->fsu_blocksize = (fsd.f_frsize
237 PROPAGATE_ALL_ONES (fsd.f_frsize ? fsd.f_frsize : fsd.f_bsize); 247 ? PROPAGATE_ALL_ONES (fsd.f_frsize)
248 : PROPAGATE_ALL_ONES (fsd.f_bsize));
238 249
239#endif /* STAT_STATVFS */ 250#endif /* STAT_STATVFS */
240 251
241#if !defined(STAT_STATFS2_FS_DATA) && !defined(STAT_READ_FILSYS) 252#if !defined STAT_STATFS2_FS_DATA && !defined STAT_READ_FILSYS
242 /* !Ultrix && !SVR2 */ 253 /* !Ultrix && !SVR2 */
243 254
244 fsp->fsu_blocks = PROPAGATE_ALL_ONES (fsd.f_blocks); 255 fsp->fsu_blocks = PROPAGATE_ALL_ONES (fsd.f_blocks);
@@ -253,7 +264,7 @@ get_fs_usage (const char *path, const char *disk, struct fs_usage *fsp)
253 return 0; 264 return 0;
254} 265}
255 266
256#if defined(_AIX) && defined(_I386) 267#if defined _AIX && defined _I386
257/* AIX PS/2 does not supply statfs. */ 268/* AIX PS/2 does not supply statfs. */
258 269
259int 270int
diff --git a/lib/fsusage.h b/lib/fsusage.h
index e0c0db5..e2cbbf1 100644
--- a/lib/fsusage.h
+++ b/lib/fsusage.h
@@ -1,5 +1,6 @@
1/* fsusage.h -- declarations for filesystem space usage info 1/* fsusage.h -- declarations for filesystem space usage info
2 Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc. 2
3 Copyright (C) 1991, 1992, 1997, 2003 Free Software Foundation, Inc.
3 4
4 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
@@ -31,15 +32,6 @@ struct fs_usage
31 uintmax_t fsu_ffree; /* Free file nodes. */ 32 uintmax_t fsu_ffree; /* Free file nodes. */
32}; 33};
33 34
34# ifndef PARAMS 35int get_fs_usage (const char *path, const char *disk, struct fs_usage *fsp);
35# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
36# define PARAMS(Args) Args
37# else
38# define PARAMS(Args) ()
39# endif
40# endif
41
42int get_fs_usage PARAMS ((const char *path, const char *disk,
43 struct fs_usage *fsp));
44 36
45#endif 37#endif
diff --git a/lib/fsusage.m4 b/lib/fsusage.m4
index 85d0fc8..a0ab1e1 100644
--- a/lib/fsusage.m4
+++ b/lib/fsusage.m4
@@ -1,7 +1,18 @@
1#serial 9 1#serial 11
2 2
3# From fileutils/configure.in 3# From fileutils/configure.in
4 4
5AC_DEFUN([gl_FSUSAGE],
6[
7 AC_CHECK_HEADERS_ONCE(sys/param.h)
8 AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs_types.h)
9 jm_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no])
10 if test $gl_cv_fs_space = yes; then
11 AC_LIBOBJ(fsusage)
12 gl_PREREQ_FSUSAGE_EXTRA
13 fi
14])
15
5# Try to determine how a program can obtain filesystem usage information. 16# Try to determine how a program can obtain filesystem usage information.
6# If successful, define the appropriate symbol (see fsusage.c) and 17# If successful, define the appropriate symbol (see fsusage.c) and
7# execute ACTION-IF-FOUND. Otherwise, execute ACTION-IF-NOT-FOUND. 18# execute ACTION-IF-FOUND. Otherwise, execute ACTION-IF-NOT-FOUND.
@@ -193,7 +204,43 @@ if test $ac_fsusage_space = no; then
193 ac_fsusage_space=yes) 204 ac_fsusage_space=yes)
194fi 205fi
195 206
196dnl AS_IF([test $ac_fsusage_space = yes], [$1], [$2]) 207AS_IF([test $ac_fsusage_space = yes], [$1], [$2])
197if test $ac_fsusage_space = yes ; then [$1] ; else [$2] ; fi
198 208
199]) 209])
210
211
212# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
213# If <sys/vfs.h> exists and struct statfs has a member named f_spare,
214# enable the work-around code in fsusage.c.
215AC_DEFUN([jm_STATFS_TRUNCATES],
216[
217 AC_MSG_CHECKING([for statfs that truncates block counts])
218 AC_CACHE_VAL(fu_cv_sys_truncating_statfs,
219 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
220#if !defined(sun) && !defined(__sun)
221choke -- this is a workaround for a Sun-specific problem
222#endif
223#include <sys/types.h>
224#include <sys/vfs.h>]],
225 [[struct statfs t; long c = *(t.f_spare);]])],
226 [fu_cv_sys_truncating_statfs=yes],
227 [fu_cv_sys_truncating_statfs=no])])
228 if test $fu_cv_sys_truncating_statfs = yes; then
229 AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1,
230 [Define if the block counts reported by statfs may be truncated to 2GB
231 and the correct values may be stored in the f_spare array.
232 (SunOS 4.1.2, 4.1.3, and 4.1.3_U1 are reported to have this problem.
233 SunOS 4.1.1 seems not to be affected.)])
234 fi
235 AC_MSG_RESULT($fu_cv_sys_truncating_statfs)
236])
237
238
239# Prerequisites of lib/fsusage.c not done by jm_FILE_SYSTEM_USAGE.
240AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA],
241[
242 AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
243 AC_CHECK_HEADERS_ONCE(fcntl.h)
244 AC_CHECK_HEADERS(dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h)
245 jm_STATFS_TRUNCATES
246])
diff --git a/lib/full-read.h b/lib/full-read.h
new file mode 100644
index 0000000..71f19a3
--- /dev/null
+++ b/lib/full-read.h
@@ -0,0 +1,24 @@
1/* An interface to read() that reads all it is asked to read.
2
3 Copyright (C) 2002 Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, read to the Free Software Foundation,
17 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18
19#include <stddef.h>
20
21/* Read COUNT bytes at BUF to descriptor FD, retrying if interrupted
22 or if partial reads occur. Return the number of bytes successfully
23 read, setting errno if that is less than COUNT. errno = 0 means EOF. */
24extern size_t full_read (int fd, void *buf, size_t count);
diff --git a/lib/getloadavg.c b/lib/getloadavg.c
index e9c4c08..c6b6fee 100644
--- a/lib/getloadavg.c
+++ b/lib/getloadavg.c
@@ -1,6 +1,10 @@
1/* Get the system load averages. 1/* Get the system load averages.
2 Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994, 1995, 1997 2
3 Free Software Foundation, Inc. 3 Copyright (C) 1985, 1986, 1987, 1988, 1989, 1991, 1992, 1993, 1994,
4 1995, 1997, 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
5
6 NOTE: The canonical source of this file is maintained with gnulib.
7 Bugs can be reported to bug-gnulib@gnu.org.
4 8
5 This program is free software; you can redistribute it and/or modify 9 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 10 it under the terms of the GNU General Public License as published by
@@ -35,12 +39,17 @@
35 LOAD_AVE_TYPE Type of the load average array in the kernel. 39 LOAD_AVE_TYPE Type of the load average array in the kernel.
36 Must be defined unless one of 40 Must be defined unless one of
37 apollo, DGUX, NeXT, or UMAX is defined; 41 apollo, DGUX, NeXT, or UMAX is defined;
42 or we have libkstat;
38 otherwise, no load average is available. 43 otherwise, no load average is available.
44 HAVE_NLIST_H nlist.h is available. NLIST_STRUCT defaults
45 to this.
39 NLIST_STRUCT Include nlist.h, not a.out.h, and 46 NLIST_STRUCT Include nlist.h, not a.out.h, and
40 the nlist n_name element is a pointer, 47 the nlist n_name element is a pointer,
41 not an array. 48 not an array.
42 NLIST_NAME_UNION struct nlist has an n_un member, not n_name. 49 HAVE_STRUCT_NLIST_N_UN_N_NAME `n_un.n_name' is member of `struct nlist'.
43 LINUX_LDAV_FILE [__linux__]: File containing load averages. 50 LINUX_LDAV_FILE [__linux__]: File containing load averages.
51 HAVE_LOCALE_H locale.h is available.
52 HAVE_SETLOCALE The `setlocale' function is available.
44 53
45 Specific system predefines this file uses, aside from setting 54 Specific system predefines this file uses, aside from setting
46 default values if not emacs: 55 default values if not emacs:
@@ -62,7 +71,7 @@
62 VMS 71 VMS
63 WINDOWS32 No-op for Windows95/NT. 72 WINDOWS32 No-op for Windows95/NT.
64 __linux__ Linux: assumes /proc filesystem mounted. 73 __linux__ Linux: assumes /proc filesystem mounted.
65 Support from Michael K. Johnson. 74 Support from Michael K. Johnson.
66 __NetBSD__ NetBSD: assumes /kern filesystem mounted. 75 __NetBSD__ NetBSD: assumes /kern filesystem mounted.
67 76
68 In addition, to avoid nesting many #ifdefs, we internally set 77 In addition, to avoid nesting many #ifdefs, we internally set
@@ -81,7 +90,7 @@
81/* Both the Emacs and non-Emacs sections want this. Some 90/* Both the Emacs and non-Emacs sections want this. Some
82 configuration files' definitions for the LOAD_AVE_CVT macro (like 91 configuration files' definitions for the LOAD_AVE_CVT macro (like
83 sparc.h's) use macros like FSCALE, defined here. */ 92 sparc.h's) use macros like FSCALE, defined here. */
84#ifdef unix 93#if defined (unix) || defined (__unix)
85# include <sys/param.h> 94# include <sys/param.h>
86#endif 95#endif
87 96
@@ -98,13 +107,15 @@
98extern int errno; 107extern int errno;
99#endif 108#endif
100 109
101#if HAVE_LOCALE_H 110#ifdef HAVE_LOCALE_H
102# include <locale.h> 111# include <locale.h>
103#endif 112#endif
104#if !HAVE_SETLOCALE 113#ifndef HAVE_SETLOCALE
105# define setlocale(Category, Locale) /* empty */ 114# define setlocale(Category, Locale) /* empty */
106#endif 115#endif
107 116
117#include "cloexec.h"
118
108#ifndef HAVE_GETLOADAVG 119#ifndef HAVE_GETLOADAVG
109 120
110/* The existing Emacs configuration files define a macro called 121/* The existing Emacs configuration files define a macro called
@@ -117,7 +128,7 @@ extern int errno;
117 LOAD_AVE_CVT, but future machine config files should just define 128 LOAD_AVE_CVT, but future machine config files should just define
118 LDAV_CVT directly. */ 129 LDAV_CVT directly. */
119 130
120# if !defined(LDAV_CVT) && defined(LOAD_AVE_CVT) 131# if !defined (LDAV_CVT) && defined (LOAD_AVE_CVT)
121# define LDAV_CVT(n) (LOAD_AVE_CVT (n) / 100.0) 132# define LDAV_CVT(n) (LOAD_AVE_CVT (n) / 100.0)
122# endif 133# endif
123 134
@@ -137,6 +148,12 @@ extern int errno;
137# undef FSCALE 148# undef FSCALE
138# endif 149# endif
139 150
151/* Same issues as for NeXT apply to the HURD-based GNU system. */
152# ifdef __GNU__
153# undef BSD
154# undef FSCALE
155# endif /* __GNU__ */
156
140/* Set values that are different from the defaults, which are 157/* Set values that are different from the defaults, which are
141 set a little farther down with #ifndef. */ 158 set a little farther down with #ifndef. */
142 159
@@ -155,11 +172,11 @@ extern int errno;
155# define sun 172# define sun
156# endif 173# endif
157 174
158# if defined(hp300) && !defined(hpux) 175# if defined (hp300) && !defined (hpux)
159# define MORE_BSD 176# define MORE_BSD
160# endif 177# endif
161 178
162# if defined(ultrix) && defined(mips) 179# if defined (ultrix) && defined (mips)
163# define decstation 180# define decstation
164# endif 181# endif
165 182
@@ -167,7 +184,7 @@ extern int errno;
167# define SVR4 184# define SVR4
168# endif 185# endif
169 186
170# if (defined(sun) && defined(SVR4)) || defined (SOLARIS2) 187# if (defined (sun) && defined (SVR4)) || defined (SOLARIS2)
171# define SUNOS_5 188# define SUNOS_5
172# endif 189# endif
173 190
@@ -239,7 +256,7 @@ extern int errno;
239# define LOAD_AVE_TYPE long 256# define LOAD_AVE_TYPE long
240# endif 257# endif
241 258
242# if defined(alliant) && defined(i860) /* Alliant FX/2800 */ 259# if defined (alliant) && defined (i860) /* Alliant FX/2800 */
243# define LOAD_AVE_TYPE long 260# define LOAD_AVE_TYPE long
244# endif 261# endif
245 262
@@ -263,7 +280,7 @@ extern int errno;
263# define FSCALE 1024.0 280# define FSCALE 1024.0
264# endif 281# endif
265 282
266# if defined(alliant) && defined(i860) /* Alliant FX/2800 */ 283# if defined (alliant) && defined (i860) /* Alliant FX/2800 */
267/* <sys/param.h> defines an incorrect value for FSCALE on an 284/* <sys/param.h> defines an incorrect value for FSCALE on an
268 Alliant FX/2800 Concentrix 2.2, according to ghazi@noc.rutgers.edu. */ 285 Alliant FX/2800 Concentrix 2.2, according to ghazi@noc.rutgers.edu. */
269# undef FSCALE 286# undef FSCALE
@@ -279,7 +296,7 @@ extern int errno;
279# define FSCALE 2048.0 296# define FSCALE 2048.0
280# endif 297# endif
281 298
282# if defined(MIPS) || defined(SVR4) || defined(decstation) 299# if defined (MIPS) || defined (SVR4) || defined (decstation)
283# define FSCALE 256 300# define FSCALE 256
284# endif 301# endif
285 302
@@ -314,69 +331,7 @@ extern int errno;
314# endif 331# endif
315# endif 332# endif
316 333
317/* VAX C can't handle multi-line #ifs, or lines longer that 256 characters. */ 334# if defined (sgi) || (defined (mips) && !defined (BSD))
318# ifndef NLIST_STRUCT
319
320# ifdef MORE_BSD
321# define NLIST_STRUCT
322# endif
323
324# ifdef sun
325# define NLIST_STRUCT
326# endif
327
328# ifdef decstation
329# define NLIST_STRUCT
330# endif
331
332# ifdef hpux
333# define NLIST_STRUCT
334# endif
335
336# if defined (_SEQUENT_) || defined (sequent)
337# define NLIST_STRUCT
338# endif
339
340# ifdef sgi
341# define NLIST_STRUCT
342# endif
343
344# ifdef SVR4
345# define NLIST_STRUCT
346# endif
347
348# ifdef sony_news
349# define NLIST_STRUCT
350# endif
351
352# ifdef OSF_ALPHA
353# define NLIST_STRUCT
354# endif
355
356# if defined (ardent) && defined (titan)
357# define NLIST_STRUCT
358# endif
359
360# ifdef tek4300
361# define NLIST_STRUCT
362# endif
363
364# ifdef butterfly
365# define NLIST_STRUCT
366# endif
367
368# if defined(alliant) && defined(i860) /* Alliant FX/2800 */
369# define NLIST_STRUCT
370# endif
371
372# ifdef _AIX
373# define NLIST_STRUCT
374# endif
375
376# endif /* defined (NLIST_STRUCT) */
377
378
379# if defined(sgi) || (defined(mips) && !defined(BSD))
380# define FIXUP_KERNEL_SYMBOL_ADDR(nl) ((nl)[0].n_value &= ~(1 << 31)) 335# define FIXUP_KERNEL_SYMBOL_ADDR(nl) ((nl)[0].n_value &= ~(1 << 31))
381# endif 336# endif
382 337
@@ -389,7 +344,7 @@ extern int errno;
389# define KERNEL_FILE "/hp-ux" 344# define KERNEL_FILE "/hp-ux"
390# endif 345# endif
391 346
392# if !defined(KERNEL_FILE) && (defined(_SEQUENT_) || defined(MIPS) || defined(SVR4) || defined(ISC) || defined (sgi) || (defined (ardent) && defined (titan))) 347# if !defined (KERNEL_FILE) && (defined (_SEQUENT_) || defined (MIPS) || defined (SVR4) || defined (ISC) || defined (sgi) || (defined (ardent) && defined (titan)))
393# define KERNEL_FILE "/unix" 348# define KERNEL_FILE "/unix"
394# endif 349# endif
395 350
@@ -398,7 +353,7 @@ extern int errno;
398# define LDAV_SYMBOL "_Loadavg" 353# define LDAV_SYMBOL "_Loadavg"
399# endif 354# endif
400 355
401# if !defined(LDAV_SYMBOL) && ((defined(hpux) && !defined(hp9000s300)) || defined(_SEQUENT_) || defined(SVR4) || defined(ISC) || defined(sgi) || (defined (ardent) && defined (titan)) || defined (_AIX)) 356# if !defined (LDAV_SYMBOL) && ((defined (hpux) && !defined (hp9000s300)) || defined (_SEQUENT_) || defined (SVR4) || defined (ISC) || defined (sgi) || (defined (ardent) && defined (titan)) || defined (_AIX))
402# define LDAV_SYMBOL "avenrun" 357# define LDAV_SYMBOL "avenrun"
403# endif 358# endif
404 359
@@ -410,7 +365,7 @@ extern int errno;
410 365
411/* LOAD_AVE_TYPE should only get defined if we're going to use the 366/* LOAD_AVE_TYPE should only get defined if we're going to use the
412 nlist method. */ 367 nlist method. */
413# if !defined(LOAD_AVE_TYPE) && (defined(BSD) || defined(LDAV_CVT) || defined(KERNEL_FILE) || defined(LDAV_SYMBOL)) 368# if !defined (LOAD_AVE_TYPE) && (defined (BSD) || defined (LDAV_CVT) || defined (KERNEL_FILE) || defined (LDAV_SYMBOL))
414# define LOAD_AVE_TYPE double 369# define LOAD_AVE_TYPE double
415# endif 370# endif
416 371
@@ -459,7 +414,7 @@ extern int errno;
459 414
460# endif /* LOAD_AVE_TYPE */ 415# endif /* LOAD_AVE_TYPE */
461 416
462# if defined(__GNU__) && !defined (NeXT) 417# if defined (__GNU__) && !defined (NeXT)
463/* Note that NeXT Openstep defines __GNU__ even though it should not. */ 418/* Note that NeXT Openstep defines __GNU__ even though it should not. */
464/* GNU system acts much like NeXT, for load average purposes, 419/* GNU system acts much like NeXT, for load average purposes,
465 but not exactly. */ 420 but not exactly. */
@@ -506,7 +461,7 @@ extern int errno;
506# include <sys/dg_sys_info.h> 461# include <sys/dg_sys_info.h>
507# endif 462# endif
508 463
509# if defined(HAVE_FCNTL_H) || defined(_POSIX_VERSION) 464# if defined (HAVE_FCNTL_H) || defined (_POSIX_VERSION)
510# include <fcntl.h> 465# include <fcntl.h>
511# else 466# else
512# include <sys/file.h> 467# include <sys/file.h>
@@ -528,7 +483,7 @@ static unsigned int samples;
528static struct dg_sys_info_load_info load_info; /* what-a-mouthful! */ 483static struct dg_sys_info_load_info load_info; /* what-a-mouthful! */
529# endif /* DGUX */ 484# endif /* DGUX */
530 485
531# ifdef LOAD_AVE_TYPE 486# if !defined (HAVE_LIBKSTAT) && defined (LOAD_AVE_TYPE)
532/* File descriptor open to /dev/kmem or VMS load ave driver. */ 487/* File descriptor open to /dev/kmem or VMS load ave driver. */
533static int channel; 488static int channel;
534/* Nonzero iff channel is valid. */ 489/* Nonzero iff channel is valid. */
@@ -536,7 +491,7 @@ static int getloadavg_initialized;
536/* Offset in kmem to seek to read load average, or 0 means invalid. */ 491/* Offset in kmem to seek to read load average, or 0 means invalid. */
537static long offset; 492static long offset;
538 493
539# if !defined(VMS) && !defined(sgi) && !defined(__linux__) 494# if !defined (VMS) && !defined (sgi) && !defined (__linux__)
540static struct nlist nl[2]; 495static struct nlist nl[2];
541# endif /* Not VMS or sgi */ 496# endif /* Not VMS or sgi */
542 497
@@ -544,7 +499,7 @@ static struct nlist nl[2];
544static kvm_t *kd; 499static kvm_t *kd;
545# endif /* SUNOS_5 */ 500# endif /* SUNOS_5 */
546 501
547# endif /* LOAD_AVE_TYPE */ 502# endif /* LOAD_AVE_TYPE && !HAVE_LIBKSTAT */
548 503
549/* Put the 1 minute, 5 minute and 15 minute load averages 504/* Put the 1 minute, 5 minute and 15 minute load averages
550 into the first NELEM elements of LOADAVG. 505 into the first NELEM elements of LOADAVG.
@@ -552,9 +507,7 @@ static kvm_t *kd;
552 or -1 if an error occurred. */ 507 or -1 if an error occurred. */
553 508
554int 509int
555getloadavg (loadavg, nelem) 510getloadavg (double loadavg[], int nelem)
556 double loadavg[];
557 int nelem;
558{ 511{
559 int elem = 0; /* Return value. */ 512 int elem = 0; /* Return value. */
560 513
@@ -577,7 +530,7 @@ getloadavg (loadavg, nelem)
577 if (kc == 0) 530 if (kc == 0)
578 return -1; 531 return -1;
579 ksp = kstat_lookup (kc, "unix", 0, "system_misc"); 532 ksp = kstat_lookup (kc, "unix", 0, "system_misc");
580 if (ksp == 0 ) 533 if (ksp == 0)
581 return -1; 534 return -1;
582 if (kstat_read (kc, ksp, 0) == -1) 535 if (kstat_read (kc, ksp, 0) == -1)
583 return -1; 536 return -1;
@@ -592,20 +545,20 @@ getloadavg (loadavg, nelem)
592 } 545 }
593 546
594 if (nelem >= 1) 547 if (nelem >= 1)
595 loadavg[elem++] = (double) kn->value.ul/FSCALE; 548 loadavg[elem++] = (double) kn->value.ul / FSCALE;
596 549
597 if (nelem >= 2) 550 if (nelem >= 2)
598 { 551 {
599 kn = kstat_data_lookup (ksp, "avenrun_5min"); 552 kn = kstat_data_lookup (ksp, "avenrun_5min");
600 if (kn != 0) 553 if (kn != 0)
601 { 554 {
602 loadavg[elem++] = (double) kn->value.ul/FSCALE; 555 loadavg[elem++] = (double) kn->value.ul / FSCALE;
603 556
604 if (nelem >= 3) 557 if (nelem >= 3)
605 { 558 {
606 kn = kstat_data_lookup (ksp, "avenrun_15min"); 559 kn = kstat_data_lookup (ksp, "avenrun_15min");
607 if (kn != 0) 560 if (kn != 0)
608 loadavg[elem++] = (double) kn->value.ul/FSCALE; 561 loadavg[elem++] = (double) kn->value.ul / FSCALE;
609 } 562 }
610 } 563 }
611 } 564 }
@@ -870,8 +823,8 @@ getloadavg (loadavg, nelem)
870 for (elem = 0; elem < nelem; elem++) 823 for (elem = 0; elem < nelem; elem++)
871 loadavg[elem] 824 loadavg[elem]
872 = (load_ave.tl_lscale == 0 825 = (load_ave.tl_lscale == 0
873 ? load_ave.tl_avenrun.d[elem] 826 ? load_ave.tl_avenrun.d[elem]
874 : (load_ave.tl_avenrun.l[elem] / (double) load_ave.tl_lscale)); 827 : (load_ave.tl_avenrun.l[elem] / (double) load_ave.tl_lscale));
875# endif /* OSF_ALPHA */ 828# endif /* OSF_ALPHA */
876 829
877# if !defined (LDAV_DONE) && defined (VMS) 830# if !defined (LDAV_DONE) && defined (VMS)
@@ -914,7 +867,7 @@ getloadavg (loadavg, nelem)
914 return -1; 867 return -1;
915# endif /* VMS */ 868# endif /* VMS */
916 869
917# if !defined (LDAV_DONE) && defined(LOAD_AVE_TYPE) && !defined(VMS) 870# if !defined (LDAV_DONE) && defined (LOAD_AVE_TYPE) && !defined (VMS)
918 871
919 /* UNIX-specific code -- read the average from /dev/kmem. */ 872 /* UNIX-specific code -- read the average from /dev/kmem. */
920 873
@@ -930,13 +883,13 @@ getloadavg (loadavg, nelem)
930 strcpy (nl[0].n_name, LDAV_SYMBOL); 883 strcpy (nl[0].n_name, LDAV_SYMBOL);
931 strcpy (nl[1].n_name, ""); 884 strcpy (nl[1].n_name, "");
932# else /* NLIST_STRUCT */ 885# else /* NLIST_STRUCT */
933# ifdef NLIST_NAME_UNION 886# ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
934 nl[0].n_un.n_name = LDAV_SYMBOL; 887 nl[0].n_un.n_name = LDAV_SYMBOL;
935 nl[1].n_un.n_name = 0; 888 nl[1].n_un.n_name = 0;
936# else /* not NLIST_NAME_UNION */ 889# else /* not HAVE_STRUCT_NLIST_N_UN_N_NAME */
937 nl[0].n_name = LDAV_SYMBOL; 890 nl[0].n_name = LDAV_SYMBOL;
938 nl[1].n_name = 0; 891 nl[1].n_name = 0;
939# endif /* not NLIST_NAME_UNION */ 892# endif /* not HAVE_STRUCT_NLIST_N_UN_N_NAME */
940# endif /* NLIST_STRUCT */ 893# endif /* NLIST_STRUCT */
941 894
942# ifndef SUNOS_5 895# ifndef SUNOS_5
@@ -973,12 +926,7 @@ getloadavg (loadavg, nelem)
973 { 926 {
974 /* Set the channel to close on exec, so it does not 927 /* Set the channel to close on exec, so it does not
975 litter any child's descriptor table. */ 928 litter any child's descriptor table. */
976# ifdef FD_SETFD 929 set_cloexec_flag (channel, true);
977# ifndef FD_CLOEXEC
978# define FD_CLOEXEC 1
979# endif
980 (void) fcntl (channel, F_SETFD, FD_CLOEXEC);
981# endif
982 getloadavg_initialized = 1; 930 getloadavg_initialized = 1;
983 } 931 }
984# else /* SUNOS_5 */ 932# else /* SUNOS_5 */
@@ -1010,9 +958,9 @@ getloadavg (loadavg, nelem)
1010# else /* SUNOS_5 */ 958# else /* SUNOS_5 */
1011 if (kvm_read (kd, offset, (char *) load_ave, sizeof (load_ave)) 959 if (kvm_read (kd, offset, (char *) load_ave, sizeof (load_ave))
1012 != sizeof (load_ave)) 960 != sizeof (load_ave))
1013 { 961 {
1014 kvm_close (kd); 962 kvm_close (kd);
1015 getloadavg_initialized = 0; 963 getloadavg_initialized = 0;
1016 } 964 }
1017# endif /* SUNOS_5 */ 965# endif /* SUNOS_5 */
1018 } 966 }
@@ -1046,9 +994,7 @@ getloadavg (loadavg, nelem)
1046 994
1047#ifdef TEST 995#ifdef TEST
1048void 996void
1049main (argc, argv) 997main (int argc, char **argv)
1050 int argc;
1051 char **argv;
1052{ 998{
1053 int naptime = 0; 999 int naptime = 0;
1054 1000
diff --git a/lib/getopt.c b/lib/getopt.c
index 289d137..6dcdbeb 100644
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -2,24 +2,26 @@
2 NOTE: getopt is now part of the C library, so if you don't know what 2 NOTE: getopt is now part of the C library, so if you don't know what
3 "Keep this file name-space clean" means, talk to drepper@gnu.org 3 "Keep this file name-space clean" means, talk to drepper@gnu.org
4 before changing it! 4 before changing it!
5 Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001,2002 5
6 Free Software Foundation, Inc. 6 Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
7 1996, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
8 Inc.
9
7 This file is part of the GNU C Library. 10 This file is part of the GNU C Library.
8 11
9 The GNU C Library is free software; you can redistribute it and/or 12 This program is free software; you can redistribute it and/or modify
10 modify it under the terms of the GNU Lesser General Public 13 it under the terms of the GNU General Public License as published by
11 License as published by the Free Software Foundation; either 14 the Free Software Foundation; either version 2, or (at your option)
12 version 2.1 of the License, or (at your option) any later version. 15 any later version.
13 16
14 The GNU C Library is distributed in the hope that it will be useful, 17 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 Lesser General Public License for more details. 20 GNU General Public License for more details.
18 21
19 You should have received a copy of the GNU Lesser General Public 22 You should have received a copy of the GNU General Public License along
20 License along with the GNU C Library; if not, write to the Free 23 with this program; if not, write to the Free Software Foundation,
21 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 24 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
22 02111-1307 USA. */
23 25
24/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. 26/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
25 Ditto for AIX 3.2 and <stdlib.h>. */ 27 Ditto for AIX 3.2 and <stdlib.h>. */
@@ -31,14 +33,6 @@
31# include <config.h> 33# include <config.h>
32#endif 34#endif
33 35
34#if !defined __STDC__ || !__STDC__
35/* This is a separate conditional since some stdc systems
36 reject `defined (const)'. */
37# ifndef const
38# define const
39# endif
40#endif
41
42#include <stdio.h> 36#include <stdio.h>
43 37
44/* Comment out all this code if we are using the GNU C Library, and are not 38/* Comment out all this code if we are using the GNU C Library, and are not
@@ -69,26 +63,22 @@
69# include <unistd.h> 63# include <unistd.h>
70#endif /* GNU C library. */ 64#endif /* GNU C library. */
71 65
66#include <string.h>
67
72#ifdef VMS 68#ifdef VMS
73# include <unixlib.h> 69# include <unixlib.h>
74# if HAVE_STRING_H - 0
75# include <string.h>
76# endif
77#endif 70#endif
78 71
79#ifndef _ 72#ifdef _LIBC
73# include <libintl.h>
74#else
80/* This is for other GNU distributions with internationalized messages. */ 75/* This is for other GNU distributions with internationalized messages. */
81# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC 76# include "gettext.h"
82# include <libintl.h> 77#endif
83# ifndef _ 78#define _(msgid) gettext (msgid)
84# define _(msgid) gettext (msgid) 79
85# endif 80#if defined _LIBC && defined USE_IN_LIBIO
86# else 81# include <wchar.h>
87# define _(msgid) (msgid)
88# endif
89# if defined _LIBC && defined USE_IN_LIBIO
90# include <wchar.h>
91# endif
92#endif 82#endif
93 83
94#ifndef attribute_hidden 84#ifndef attribute_hidden
@@ -197,20 +187,7 @@ static enum
197/* Value of POSIXLY_CORRECT environment variable. */ 187/* Value of POSIXLY_CORRECT environment variable. */
198static char *posixly_correct; 188static char *posixly_correct;
199 189
200#ifdef __GNU_LIBRARY__ 190#ifndef __GNU_LIBRARY__
201/* We want to avoid inclusion of string.h with non-GNU libraries
202 because there are many ways it can cause trouble.
203 On some systems, it contains special magic macros that don't work
204 in GCC. */
205# include <string.h>
206# define my_index strchr
207#else
208
209# if HAVE_STRING_H
210# include <string.h>
211# else
212# include <strings.h>
213# endif
214 191
215/* Avoid depending on library functions or files 192/* Avoid depending on library functions or files
216 whose names are inconsistent. */ 193 whose names are inconsistent. */
@@ -219,32 +196,6 @@ static char *posixly_correct;
219extern char *getenv (); 196extern char *getenv ();
220#endif 197#endif
221 198
222static char *
223my_index (str, chr)
224 const char *str;
225 int chr;
226{
227 while (*str)
228 {
229 if (*str == chr)
230 return (char *) str;
231 str++;
232 }
233 return 0;
234}
235
236/* If using GCC, we can safely declare strlen this way.
237 If not using GCC, it is ok not to declare it. */
238#ifdef __GNUC__
239/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h.
240 That was relevant to code that was here before. */
241# if (!defined __STDC__ || !__STDC__) && !defined strlen
242/* gcc with -traditional declares the built-in strlen to return int,
243 and has done so at least since version 2.4.5. -- rms. */
244extern int strlen (const char *);
245# endif /* not __STDC__ */
246#endif /* __GNUC__ */
247
248#endif /* not __GNU_LIBRARY__ */ 199#endif /* not __GNU_LIBRARY__ */
249 200
250/* Handle permutation of arguments. */ 201/* Handle permutation of arguments. */
@@ -298,13 +249,8 @@ static int nonoption_flags_len;
298 `first_nonopt' and `last_nonopt' are relocated so that they describe 249 `first_nonopt' and `last_nonopt' are relocated so that they describe
299 the new indices of the non-options in ARGV after they are moved. */ 250 the new indices of the non-options in ARGV after they are moved. */
300 251
301#if defined __STDC__ && __STDC__
302static void exchange (char **);
303#endif
304
305static void 252static void
306exchange (argv) 253exchange (char **argv)
307 char **argv;
308{ 254{
309 int bottom = first_nonopt; 255 int bottom = first_nonopt;
310 int middle = last_nonopt; 256 int middle = last_nonopt;
@@ -384,14 +330,8 @@ exchange (argv)
384 330
385/* Initialize the internal data when the first call is made. */ 331/* Initialize the internal data when the first call is made. */
386 332
387#if defined __STDC__ && __STDC__
388static const char *_getopt_initialize (int, char *const *, const char *);
389#endif
390static const char * 333static const char *
391_getopt_initialize (argc, argv, optstring) 334_getopt_initialize (int argc, char *const *argv, const char *optstring)
392 int argc;
393 char *const *argv;
394 const char *optstring;
395{ 335{
396 /* Start processing options with ARGV-element 1 (since ARGV-element 0 336 /* Start processing options with ARGV-element 1 (since ARGV-element 0
397 is the program name); the sequence of previously skipped 337 is the program name); the sequence of previously skipped
@@ -510,13 +450,9 @@ _getopt_initialize (argc, argv, optstring)
510 long-named options. */ 450 long-named options. */
511 451
512int 452int
513_getopt_internal (argc, argv, optstring, longopts, longind, long_only) 453_getopt_internal (int argc, char *const *argv,
514 int argc; 454 const char *optstring, const struct option *longopts,
515 char *const *argv; 455 int *longind, int long_only)
516 const char *optstring;
517 const struct option *longopts;
518 int *longind;
519 int long_only;
520{ 456{
521 int print_errors = opterr; 457 int print_errors = opterr;
522 if (optstring[0] == ':') 458 if (optstring[0] == ':')
@@ -641,7 +577,8 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
641 577
642 if (longopts != NULL 578 if (longopts != NULL
643 && (argv[optind][1] == '-' 579 && (argv[optind][1] == '-'
644 || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1]))))) 580 || (long_only
581 && (argv[optind][2] || !strchr (optstring, argv[optind][1])))))
645 { 582 {
646 char *nameend; 583 char *nameend;
647 const struct option *p; 584 const struct option *p;
@@ -826,7 +763,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
826 option, then it's an error. 763 option, then it's an error.
827 Otherwise interpret it as a short option. */ 764 Otherwise interpret it as a short option. */
828 if (!long_only || argv[optind][1] == '-' 765 if (!long_only || argv[optind][1] == '-'
829 || my_index (optstring, *nextchar) == NULL) 766 || strchr (optstring, *nextchar) == NULL)
830 { 767 {
831 if (print_errors) 768 if (print_errors)
832 { 769 {
@@ -881,7 +818,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
881 818
882 { 819 {
883 char c = *nextchar++; 820 char c = *nextchar++;
884 char *temp = my_index (optstring, c); 821 char *temp = strchr (optstring, c);
885 822
886 /* Increment `optind' when we start to process its last character. */ 823 /* Increment `optind' when we start to process its last character. */
887 if (*nextchar == '\0') 824 if (*nextchar == '\0')
@@ -1191,10 +1128,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
1191} 1128}
1192 1129
1193int 1130int
1194getopt (argc, argv, optstring) 1131getopt (int argc, char *const *argv, const char *optstring)
1195 int argc;
1196 char *const *argv;
1197 const char *optstring;
1198{ 1132{
1199 return _getopt_internal (argc, argv, optstring, 1133 return _getopt_internal (argc, argv, optstring,
1200 (const struct option *) 0, 1134 (const struct option *) 0,
@@ -1210,9 +1144,7 @@ getopt (argc, argv, optstring)
1210 the above definition of `getopt'. */ 1144 the above definition of `getopt'. */
1211 1145
1212int 1146int
1213main (argc, argv) 1147main (int argc, char **argv)
1214 int argc;
1215 char **argv;
1216{ 1148{
1217 int c; 1149 int c;
1218 int digit_optind = 0; 1150 int digit_optind = 0;
diff --git a/lib/getopt.h b/lib/getopt.h
index 4283c35..5e15191 100644
--- a/lib/getopt.h
+++ b/lib/getopt.h
@@ -1,21 +1,23 @@
1/* Declarations for getopt. 1/* Declarations for getopt.
2 Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc. 2
3 Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998,
4 1999, 2001, 2003 Free Software Foundation, Inc.
5
3 This file is part of the GNU C Library. 6 This file is part of the GNU C Library.
4 7
5 The GNU C Library is free software; you can redistribute it and/or 8 This program is free software; you can redistribute it and/or modify
6 modify it under the terms of the GNU Lesser General Public 9 it under the terms of the GNU General Public License as published by
7 License as published by the Free Software Foundation; either 10 the Free Software Foundation; either version 2, or (at your option)
8 version 2.1 of the License, or (at your option) any later version. 11 any later version.
9 12
10 The GNU C Library is distributed in the hope that it will be useful, 13 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 Lesser General Public License for more details. 16 GNU General Public License for more details.
14 17
15 You should have received a copy of the GNU Lesser General Public 18 You should have received a copy of the GNU General Public License along
16 License along with the GNU C Library; if not, write to the Free 19 with this program; if not, write to the Free Software Foundation,
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 20 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18 02111-1307 USA. */
19 21
20#ifndef _GETOPT_H 22#ifndef _GETOPT_H
21 23
@@ -78,7 +80,7 @@ extern int optopt;
78 The field `has_arg' is: 80 The field `has_arg' is:
79 no_argument (or 0) if the option does not take an argument, 81 no_argument (or 0) if the option does not take an argument,
80 required_argument (or 1) if the option requires an argument, 82 required_argument (or 1) if the option requires an argument,
81 optional_argument (or 2) if the option takes an optional argument. 83 optional_argument (or 2) if the option takes an optional argument.
82 84
83 If the field `flag' is not NULL, it points to a variable that is set 85 If the field `flag' is not NULL, it points to a variable that is set
84 to the value given in the field `val' when the option is found, but 86 to the value given in the field `val' when the option is found, but
@@ -93,11 +95,7 @@ extern int optopt;
93 95
94struct option 96struct option
95{ 97{
96# if (defined __STDC__ && __STDC__) || defined __cplusplus
97 const char *name; 98 const char *name;
98# else
99 char *name;
100# endif
101 /* has_arg can't be an enum because some compilers complain about 99 /* has_arg can't be an enum because some compilers complain about
102 type mismatches in all the code that assumes it is an int. */ 100 type mismatches in all the code that assumes it is an int. */
103 int has_arg; 101 int has_arg;
@@ -137,17 +135,16 @@ struct option
137 arguments to the option '\0'. This behavior is specific to the GNU 135 arguments to the option '\0'. This behavior is specific to the GNU
138 `getopt'. */ 136 `getopt'. */
139 137
140#if (defined __STDC__ && __STDC__) || defined __cplusplus 138#ifdef __GNU_LIBRARY__
141# ifdef __GNU_LIBRARY__
142/* Many other libraries have conflicting prototypes for getopt, with 139/* Many other libraries have conflicting prototypes for getopt, with
143 differences in the consts, in stdlib.h. To avoid compilation 140 differences in the consts, in stdlib.h. To avoid compilation
144 errors, only prototype getopt for the GNU C library. */ 141 errors, only prototype getopt for the GNU C library. */
145extern int getopt (int ___argc, char *const *___argv, const char *__shortopts); 142extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
146# else /* not __GNU_LIBRARY__ */ 143#else /* not __GNU_LIBRARY__ */
147extern int getopt (); 144extern int getopt ();
148# endif /* __GNU_LIBRARY__ */ 145#endif /* __GNU_LIBRARY__ */
149 146
150# ifndef __need_getopt 147#ifndef __need_getopt
151extern int getopt_long (int ___argc, char *const *___argv, 148extern int getopt_long (int ___argc, char *const *___argv,
152 const char *__shortopts, 149 const char *__shortopts,
153 const struct option *__longopts, int *__longind); 150 const struct option *__longopts, int *__longind);
@@ -160,16 +157,7 @@ extern int _getopt_internal (int ___argc, char *const *___argv,
160 const char *__shortopts, 157 const char *__shortopts,
161 const struct option *__longopts, int *__longind, 158 const struct option *__longopts, int *__longind,
162 int __long_only); 159 int __long_only);
163# endif 160#endif
164#else /* not __STDC__ */
165extern int getopt ();
166# ifndef __need_getopt
167extern int getopt_long ();
168extern int getopt_long_only ();
169
170extern int _getopt_internal ();
171# endif
172#endif /* __STDC__ */
173 161
174#ifdef __cplusplus 162#ifdef __cplusplus
175} 163}
diff --git a/lib/getopt1.c b/lib/getopt1.c
index ad06cc7..3288c72 100644
--- a/lib/getopt1.c
+++ b/lib/getopt1.c
@@ -1,22 +1,23 @@
1/* getopt_long and getopt_long_only entry points for GNU getopt. 1/* getopt_long and getopt_long_only entry points for GNU getopt.
2 Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 2
3 Free Software Foundation, Inc. 3 Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996,
4 1997, 1998, 2003 Free Software Foundation, Inc.
5
4 This file is part of the GNU C Library. 6 This file is part of the GNU C Library.
5 7
6 The GNU C Library is free software; you can redistribute it and/or 8 This program is free software; you can redistribute it and/or modify
7 modify it under the terms of the GNU Lesser General Public 9 it under the terms of the GNU General Public License as published by
8 License as published by the Free Software Foundation; either 10 the Free Software Foundation; either version 2, or (at your option)
9 version 2.1 of the License, or (at your option) any later version. 11 any later version.
10 12
11 The GNU C Library is distributed in the hope that it will be useful, 13 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 Lesser General Public License for more details. 16 GNU General Public License for more details.
15 17
16 You should have received a copy of the GNU Lesser General Public 18 You should have received a copy of the GNU General Public License along
17 License along with the GNU C Library; if not, write to the Free 19 with this program; if not, write to the Free Software Foundation,
18 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 20 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 02111-1307 USA. */
20 21
21#ifdef HAVE_CONFIG_H 22#ifdef HAVE_CONFIG_H
22#include <config.h> 23#include <config.h>
@@ -28,14 +29,6 @@
28# include "getopt.h" 29# include "getopt.h"
29#endif 30#endif
30 31
31#if !defined __STDC__ || !__STDC__
32/* This is a separate conditional since some stdc systems
33 reject `defined (const)'. */
34#ifndef const
35#define const
36#endif
37#endif
38
39#include <stdio.h> 32#include <stdio.h>
40 33
41/* Comment out all this code if we are using the GNU C Library, and are not 34/* Comment out all this code if we are using the GNU C Library, and are not
@@ -68,12 +61,11 @@
68#endif 61#endif
69 62
70int 63int
71getopt_long (argc, argv, options, long_options, opt_index) 64getopt_long (int argc,
72 int argc; 65 char *const *argv,
73 char *const *argv; 66 const char *options,
74 const char *options; 67 const struct option *long_options,
75 const struct option *long_options; 68 int *opt_index)
76 int *opt_index;
77{ 69{
78 return _getopt_internal (argc, argv, options, long_options, opt_index, 0); 70 return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
79} 71}
@@ -84,12 +76,11 @@ getopt_long (argc, argv, options, long_options, opt_index)
84 instead. */ 76 instead. */
85 77
86int 78int
87getopt_long_only (argc, argv, options, long_options, opt_index) 79getopt_long_only (int argc,
88 int argc; 80 char *const *argv,
89 char *const *argv; 81 const char *options,
90 const char *options; 82 const struct option *long_options,
91 const struct option *long_options; 83 int *opt_index)
92 int *opt_index;
93{ 84{
94 return _getopt_internal (argc, argv, options, long_options, opt_index, 1); 85 return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
95} 86}
@@ -106,9 +97,7 @@ libc_hidden_def (getopt_long_only)
106#include <stdio.h> 97#include <stdio.h>
107 98
108int 99int
109main (argc, argv) 100main (int argc, char **argv)
110 int argc;
111 char **argv;
112{ 101{
113 int c; 102 int c;
114 int digit_optind = 0; 103 int digit_optind = 0;
diff --git a/lib/gettext.h b/lib/gettext.h
index 8b262f4..835732e 100644
--- a/lib/gettext.h
+++ b/lib/gettext.h
@@ -1,20 +1,19 @@
1/* Convenience header for conditional use of GNU <libintl.h>. 1/* Convenience header for conditional use of GNU <libintl.h>.
2 Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc. 2 Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify it 4 This program is free software; you can redistribute it and/or modify
5 under the terms of the GNU Library General Public License as published 5 it under the terms of the GNU General Public License as published by
6 by the Free Software Foundation; either version 2, or (at your option) 6 the Free Software Foundation; either version 2, or (at your option)
7 any later version. 7 any later version.
8 8
9 This program is distributed in the hope that it will be useful, 9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 Library General Public License for more details. 12 GNU General Public License for more details.
13 13
14 You should have received a copy of the GNU Library General Public 14 You should have received a copy of the GNU General Public License along
15 License along with this program; if not, write to the Free Software 15 with this program; if not, write to the Free Software Foundation,
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17 USA. */
18 17
19#ifndef _LIBGETTEXT_H 18#ifndef _LIBGETTEXT_H
20#define _LIBGETTEXT_H 1 19#define _LIBGETTEXT_H 1
diff --git a/lib/ls-mntd-fs.m4 b/lib/ls-mntd-fs.m4
index 3ba42a3..c28466b 100644
--- a/lib/ls-mntd-fs.m4
+++ b/lib/ls-mntd-fs.m4
@@ -1,4 +1,4 @@
1#serial 12 1#serial 14
2 2
3dnl From Jim Meyering. 3dnl From Jim Meyering.
4dnl 4dnl
@@ -10,13 +10,20 @@ dnl
10AC_DEFUN([jm_LIST_MOUNTED_FILESYSTEMS], 10AC_DEFUN([jm_LIST_MOUNTED_FILESYSTEMS],
11 [ 11 [
12AC_CHECK_FUNCS(listmntent getmntinfo) 12AC_CHECK_FUNCS(listmntent getmntinfo)
13AC_CHECK_HEADERS(mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h) 13AC_CHECK_HEADERS_ONCE(sys/param.h)
14
15# We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
16# NGROUPS (as the array dimension for a struct member) without a definition.
17AC_CHECK_HEADERS(sys/ucred.h, [], [], [#include <grp.h>])
18
19AC_CHECK_HEADERS(mntent.h sys/mount.h sys/fs_types.h)
14 getfsstat_includes="\ 20 getfsstat_includes="\
15$ac_includes_default 21$ac_includes_default
16#if HAVE_SYS_PARAM_H 22#if HAVE_SYS_PARAM_H
17# include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */ 23# include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
18#endif 24#endif
19#if HAVE_SYS_UCRED_H 25#if HAVE_SYS_UCRED_H
26# include <grp.h> /* needed for definition of NGROUPS */
20# include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */ 27# include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
21#endif 28#endif
22#if HAVE_SYS_MOUNT_H 29#if HAVE_SYS_MOUNT_H
@@ -63,7 +70,7 @@ yes
63 ac_list_mounted_fs=found 70 ac_list_mounted_fs=found
64 AC_DEFINE(MOUNTED_LISTMNTENT, 1, 71 AC_DEFINE(MOUNTED_LISTMNTENT, 1,
65 [Define if there is a function named listmntent that can be used to 72 [Define if there is a function named listmntent that can be used to
66 list all mounted filesystems. (UNICOS)]) 73 list all mounted filesystems. (UNICOS)])
67 fi 74 fi
68fi 75fi
69 76
@@ -79,8 +86,8 @@ if test -z "$ac_list_mounted_fs"; then
79 ac_list_mounted_fs=found 86 ac_list_mounted_fs=found
80 AC_DEFINE(MOUNTED_VMOUNT, 1, 87 AC_DEFINE(MOUNTED_VMOUNT, 1,
81 [Define if there is a function named mntctl that can be used to read 88 [Define if there is a function named mntctl that can be used to read
82 the list of mounted filesystems, and there is a system header file 89 the list of mounted filesystems, and there is a system header file
83 that declares `struct vmount.' (AIX)]) 90 that declares `struct vmount.' (AIX)])
84 fi 91 fi
85fi 92fi
86 93
@@ -117,9 +124,9 @@ if test $ac_cv_func_getmntent = yes; then
117 if test $fu_cv_sys_mounted_getmntent1 = yes; then 124 if test $fu_cv_sys_mounted_getmntent1 = yes; then
118 ac_list_mounted_fs=found 125 ac_list_mounted_fs=found
119 AC_DEFINE(MOUNTED_GETMNTENT1, 1, 126 AC_DEFINE(MOUNTED_GETMNTENT1, 1,
120 [Define if there is a function named getmntent for reading the list 127 [Define if there is a function named getmntent for reading the list
121 of mounted filesystems, and that function takes a single argument. 128 of mounted filesystems, and that function takes a single argument.
122 (4.3BSD, SunOS, HP-UX, Dynix, Irix)]) 129 (4.3BSD, SunOS, HP-UX, Dynix, Irix)])
123 fi 130 fi
124 fi 131 fi
125 132
@@ -134,8 +141,8 @@ if test $ac_cv_func_getmntent = yes; then
134 if test $fu_cv_sys_mounted_getmntent2 = yes; then 141 if test $fu_cv_sys_mounted_getmntent2 = yes; then
135 ac_list_mounted_fs=found 142 ac_list_mounted_fs=found
136 AC_DEFINE(MOUNTED_GETMNTENT2, 1, 143 AC_DEFINE(MOUNTED_GETMNTENT2, 1,
137 [Define if there is a function named getmntent for reading the list of 144 [Define if there is a function named getmntent for reading the list of
138 mounted filesystems, and that function takes two arguments. (SVR4)]) 145 mounted filesystems, and that function takes two arguments. (SVR4)])
139 fi 146 fi
140 fi 147 fi
141 148
@@ -166,7 +173,7 @@ if test -z "$ac_list_mounted_fs"; then
166 ac_list_mounted_fs=found 173 ac_list_mounted_fs=found
167 AC_DEFINE(MOUNTED_GETFSSTAT, 1, 174 AC_DEFINE(MOUNTED_GETFSSTAT, 1,
168 [Define if there is a function named getfsstat for reading the 175 [Define if there is a function named getfsstat for reading the
169 list of mounted filesystems. (DEC Alpha running OSF/1)]) 176 list of mounted filesystems. (DEC Alpha running OSF/1)])
170 fi 177 fi
171fi 178fi
172 179
@@ -184,9 +191,9 @@ if test -z "$ac_list_mounted_fs"; then
184 if test $fu_cv_sys_mounted_fread_fstyp = yes; then 191 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
185 ac_list_mounted_fs=found 192 ac_list_mounted_fs=found
186 AC_DEFINE(MOUNTED_FREAD_FSTYP, 1, 193 AC_DEFINE(MOUNTED_FREAD_FSTYP, 1,
187[Define if (like SVR2) there is no specific function for reading the 194 [Define if (like SVR2) there is no specific function for reading the
188 list of mounted filesystems, and your system has these header files: 195 list of mounted filesystems, and your system has these header files:
189 <sys/fstyp.h> and <sys/statfs.h>. (SVR3)]) 196 <sys/fstyp.h> and <sys/statfs.h>. (SVR3)])
190 fi 197 fi
191fi 198fi
192 199
@@ -204,7 +211,7 @@ if test -z "$ac_list_mounted_fs"; then
204 ac_list_mounted_fs=found 211 ac_list_mounted_fs=found
205 AC_DEFINE(MOUNTED_GETMNTINFO, 1, 212 AC_DEFINE(MOUNTED_GETMNTINFO, 1,
206 [Define if there is a function named getmntinfo for reading the 213 [Define if there is a function named getmntinfo for reading the
207 list of mounted filesystems. (4.4BSD, Darwin)]) 214 list of mounted filesystems. (4.4BSD, Darwin)])
208 fi 215 fi
209fi 216fi
210 217
@@ -222,7 +229,7 @@ if test -z "$ac_list_mounted_fs"; then
222 ac_list_mounted_fs=found 229 ac_list_mounted_fs=found
223 AC_DEFINE(MOUNTED_GETMNT, 1, 230 AC_DEFINE(MOUNTED_GETMNT, 1,
224 [Define if there is a function named getmnt for reading the list of 231 [Define if there is a function named getmnt for reading the list of
225 mounted filesystems. (Ultrix)]) 232 mounted filesystems. (Ultrix)])
226 fi 233 fi
227fi 234fi
228 235
@@ -243,7 +250,7 @@ if test -z "$ac_list_mounted_fs"; then
243 ac_list_mounted_fs=found 250 ac_list_mounted_fs=found
244 AC_DEFINE(MOUNTED_FS_STAT_DEV, 1, 251 AC_DEFINE(MOUNTED_FS_STAT_DEV, 1,
245 [Define if there are functions named next_dev and fs_stat_dev for 252 [Define if there are functions named next_dev and fs_stat_dev for
246 reading the list of mounted filesystems. (BeOS)]) 253 reading the list of mounted filesystems. (BeOS)])
247 fi 254 fi
248fi 255fi
249 256
@@ -259,7 +266,8 @@ if test -z "$ac_list_mounted_fs"; then
259 ac_list_mounted_fs=found 266 ac_list_mounted_fs=found
260 AC_DEFINE(MOUNTED_FREAD, 1, 267 AC_DEFINE(MOUNTED_FREAD, 1,
261 [Define if there is no specific function for reading the list of 268 [Define if there is no specific function for reading the list of
262 mounted filesystems. fread will be used to read /etc/mnttab. (SVR2) ]) 269 mounted filesystems. fread will be used to read /etc/mnttab.
270 (SVR2) ])
263 fi 271 fi
264fi 272fi
265 273
diff --git a/lib/malloc.c b/lib/malloc.c
index 5e7674b..a43d169 100644
--- a/lib/malloc.c
+++ b/lib/malloc.c
@@ -22,14 +22,12 @@
22#endif 22#endif
23#undef malloc 23#undef malloc
24 24
25#include <sys/types.h> 25#include <stdlib.h>
26
27char *malloc ();
28 26
29/* Allocate an N-byte block of memory from the heap. 27/* Allocate an N-byte block of memory from the heap.
30 If N is zero, allocate a 1-byte block. */ 28 If N is zero, allocate a 1-byte block. */
31 29
32char * 30void *
33rpl_malloc (size_t n) 31rpl_malloc (size_t n)
34{ 32{
35 if (n == 0) 33 if (n == 0)
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 1af3cbb..631be31 100644
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -1,5 +1,5 @@
1/* mountlist.c -- return a list of mounted filesystems 1/* mountlist.c -- return a list of mounted filesystems
2 Copyright (C) 1991, 1992, 1997-2000 Free Software Foundation, Inc. 2 Copyright (C) 1991, 1992, 1997-2004 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
@@ -15,29 +15,24 @@
15 along with this program; if not, write to the Free Software Foundation, 15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17 17
18#include "config.h" 18#if HAVE_CONFIG_H
19# include <config.h>
20#endif
19 21
20#include <stdio.h> 22#include <stdio.h>
21#include <sys/types.h> 23#include <sys/types.h>
22#include "mountlist.h" 24#include <stdlib.h>
25#include <string.h>
23 26
24#ifdef STDC_HEADERS 27#include "xalloc.h"
25# include <stdlib.h> 28
26#else 29#ifndef SIZE_MAX
27void free (); 30# define SIZE_MAX ((size_t) -1)
28#endif
29#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
30# include <string.h>
31#else
32# include <strings.h>
33#endif 31#endif
34 32
35#ifndef strstr 33#ifndef strstr
36char *strstr (); 34char *strstr ();
37#endif 35#endif
38/* char *xmalloc (); */
39/* char *realloc (); */
40/* char *xstrdup (); */
41 36
42#include <errno.h> 37#include <errno.h>
43#ifndef errno 38#ifndef errno
@@ -56,18 +51,35 @@ extern int errno;
56# include <sys/param.h> 51# include <sys/param.h>
57#endif 52#endif
58 53
59#if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */ 54#if defined MOUNTED_GETFSSTAT /* OSF_1 and Darwin1.3.x */
60# include <sys/mount.h> 55# if HAVE_SYS_UCRED_H
61# include <sys/fs_types.h> 56# include <grp.h> /* needed on OSF V4.0 for definition of NGROUPS,
57 NGROUPS is used as an array dimension in ucred.h */
58# include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
59# endif
60# if HAVE_SYS_MOUNT_H
61# include <sys/mount.h>
62# endif
63# if HAVE_SYS_FS_TYPES_H
64# include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
65# endif
66# if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
67# define FS_TYPE(Ent) ((Ent).f_fstypename)
68# else
69# define FS_TYPE(Ent) mnt_names[(Ent).f_type]
70# endif
62#endif /* MOUNTED_GETFSSTAT */ 71#endif /* MOUNTED_GETFSSTAT */
63 72
64#ifdef MOUNTED_GETMNTENT1 /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */ 73#ifdef MOUNTED_GETMNTENT1 /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */
65# include <mntent.h> 74# include <mntent.h>
66# if !defined(MOUNTED) 75# if !defined MOUNTED
67# if defined(MNT_MNTTAB) /* HP-UX. */ 76# if defined _PATH_MOUNTED /* GNU libc */
77# define MOUNTED _PATH_MOUNTED
78# endif
79# if defined MNT_MNTTAB /* HP-UX. */
68# define MOUNTED MNT_MNTTAB 80# define MOUNTED MNT_MNTTAB
69# endif 81# endif
70# if defined(MNTTABNAME) /* Dynix. */ 82# if defined MNTTABNAME /* Dynix. */
71# define MOUNTED MNTTABNAME 83# define MOUNTED MNTTABNAME
72# endif 84# endif
73# endif 85# endif
@@ -121,12 +133,16 @@ extern int errno;
121# include <sys/mntent.h> 133# include <sys/mntent.h>
122#endif 134#endif
123 135
124#if defined (MNTOPT_IGNORE) && defined (HAVE_HASMNTOPT) 136#undef MNT_IGNORE
137#if defined MNTOPT_IGNORE && defined HAVE_HASMNTOPT
125# define MNT_IGNORE(M) hasmntopt ((M), MNTOPT_IGNORE) 138# define MNT_IGNORE(M) hasmntopt ((M), MNTOPT_IGNORE)
126#else 139#else
127# define MNT_IGNORE(M) 0 140# define MNT_IGNORE(M) 0
128#endif 141#endif
129 142
143#include "mountlist.h"
144#include "unlocked-io.h"
145
130#ifdef MOUNTED_GETMNTENT1 /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */ 146#ifdef MOUNTED_GETMNTENT1 /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */
131/* Return the value of the hexadecimal number represented by CP. 147/* Return the value of the hexadecimal number represented by CP.
132 No prefix (like '0x') or suffix (like 'h') is expected to be 148 No prefix (like '0x') or suffix (like 'h') is expected to be
@@ -303,21 +319,22 @@ read_filesystem_list (int need_fs_type)
303 remove. Specifically, automount create normal NFS mounts. 319 remove. Specifically, automount create normal NFS mounts.
304 */ 320 */
305 321
306 if(listmntent(&mntlist, KMTAB, NULL, NULL) < 0) 322 if (listmntent (&mntlist, KMTAB, NULL, NULL) < 0)
307 return NULL; 323 return NULL;
308 for (p = mntlist; p; p = p->next) { 324 for (p = mntlist; p; p = p->next) {
309 mnt = p->ment; 325 mnt = p->ment;
310 me = (struct mount_entry*) malloc(sizeof (struct mount_entry)); 326 me = xmalloc (sizeof *me);
311 me->me_devname = strdup(mnt->mnt_fsname); 327 me->me_devname = xstrdup (mnt->mnt_fsname);
312 me->me_mountdir = strdup(mnt->mnt_dir); 328 me->me_mountdir = xstrdup (mnt->mnt_dir);
313 me->me_type = strdup(mnt->mnt_type); 329 me->me_type = xstrdup (mnt->mnt_type);
330 me->me_type_malloced = 1;
314 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type); 331 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type);
315 me->me_remote = ME_REMOTE (me->me_devname, me->me_type); 332 me->me_remote = ME_REMOTE (me->me_devname, me->me_type);
316 me->me_dev = -1; 333 me->me_dev = -1;
317 *mtail = me; 334 *mtail = me;
318 mtail = &me->me_next; 335 mtail = &me->me_next;
319 } 336 }
320 freemntlist(mntlist); 337 freemntlist (mntlist);
321 } 338 }
322#endif 339#endif
323 340
@@ -334,10 +351,11 @@ read_filesystem_list (int need_fs_type)
334 351
335 while ((mnt = getmntent (fp))) 352 while ((mnt = getmntent (fp)))
336 { 353 {
337 me = (struct mount_entry *) malloc (sizeof (struct mount_entry)); 354 me = xmalloc (sizeof *me);
338 me->me_devname = strdup (mnt->mnt_fsname); 355 me->me_devname = xstrdup (mnt->mnt_fsname);
339 me->me_mountdir = strdup (mnt->mnt_dir); 356 me->me_mountdir = xstrdup (mnt->mnt_dir);
340 me->me_type = strdup (mnt->mnt_type); 357 me->me_type = xstrdup (mnt->mnt_type);
358 me->me_type_malloced = 1;
341 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type); 359 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type);
342 me->me_remote = ME_REMOTE (me->me_devname, me->me_type); 360 me->me_remote = ME_REMOTE (me->me_devname, me->me_type);
343 devopt = strstr (mnt->mnt_opts, "dev="); 361 devopt = strstr (mnt->mnt_opts, "dev=");
@@ -373,10 +391,11 @@ read_filesystem_list (int need_fs_type)
373 { 391 {
374 char *fs_type = fsp_to_string (fsp); 392 char *fs_type = fsp_to_string (fsp);
375 393
376 me = (struct mount_entry *) malloc (sizeof (struct mount_entry)); 394 me = xmalloc (sizeof *me);
377 me->me_devname = strdup (fsp->f_mntfromname); 395 me->me_devname = xstrdup (fsp->f_mntfromname);
378 me->me_mountdir = strdup (fsp->f_mntonname); 396 me->me_mountdir = xstrdup (fsp->f_mntonname);
379 me->me_type = fs_type; 397 me->me_type = fs_type;
398 me->me_type_malloced = 0;
380 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type); 399 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type);
381 me->me_remote = ME_REMOTE (me->me_devname, me->me_type); 400 me->me_remote = ME_REMOTE (me->me_devname, me->me_type);
382 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ 401 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
@@ -398,10 +417,11 @@ read_filesystem_list (int need_fs_type)
398 0 < (val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY, 417 0 < (val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY,
399 (char *) 0))) 418 (char *) 0)))
400 { 419 {
401 me = (struct mount_entry *) malloc (sizeof (struct mount_entry)); 420 me = xmalloc (sizeof *me);
402 me->me_devname = strdup (fsd.fd_req.devname); 421 me->me_devname = xstrdup (fsd.fd_req.devname);
403 me->me_mountdir = strdup (fsd.fd_req.path); 422 me->me_mountdir = xstrdup (fsd.fd_req.path);
404 me->me_type = gt_names[fsd.fd_req.fstype]; 423 me->me_type = gt_names[fsd.fd_req.fstype];
424 me->me_type_malloced = 0;
405 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type); 425 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type);
406 me->me_remote = ME_REMOTE (me->me_devname, me->me_type); 426 me->me_remote = ME_REMOTE (me->me_devname, me->me_type);
407 me->me_dev = fsd.fd_req.dev; 427 me->me_dev = fsd.fd_req.dev;
@@ -415,7 +435,7 @@ read_filesystem_list (int need_fs_type)
415 } 435 }
416#endif /* MOUNTED_GETMNT. */ 436#endif /* MOUNTED_GETMNT. */
417 437
418#if defined (MOUNTED_FS_STAT_DEV) /* BeOS */ 438#if defined MOUNTED_FS_STAT_DEV /* BeOS */
419 { 439 {
420 /* The next_dev() and fs_stat_dev() system calls give the list of 440 /* The next_dev() and fs_stat_dev() system calls give the list of
421 all filesystems, including the information returned by statvfs() 441 all filesystems, including the information returned by statvfs()
@@ -458,19 +478,17 @@ read_filesystem_list (int need_fs_type)
458 continue; 478 continue;
459 479
460 if (strcmp (d->d_name, ".") == 0) 480 if (strcmp (d->d_name, ".") == 0)
461 name = strdup ("/"); 481 name = xstrdup ("/");
462 else 482 else
463 { 483 {
464 name = malloc (1 + strlen (d->d_name) + 1); 484 name = xmalloc (1 + strlen (d->d_name) + 1);
465 name[0] = '/'; 485 name[0] = '/';
466 strcpy (name + 1, d->d_name); 486 strcpy (name + 1, d->d_name);
467 } 487 }
468 488
469 if (lstat (name, &statbuf) >= 0 && S_ISDIR (statbuf.st_mode)) 489 if (lstat (name, &statbuf) >= 0 && S_ISDIR (statbuf.st_mode))
470 { 490 {
471 struct rootdir_entry *re; 491 struct rootdir_entry *re = xmalloc (sizeof *re);
472
473 re = (struct rootdir_entry *) malloc (sizeof (struct rootdir_entry));
474 re->name = name; 492 re->name = name;
475 re->dev = statbuf.st_dev; 493 re->dev = statbuf.st_dev;
476 re->ino = statbuf.st_ino; 494 re->ino = statbuf.st_ino;
@@ -496,10 +514,11 @@ read_filesystem_list (int need_fs_type)
496 if (re->dev == fi.dev && re->ino == fi.root) 514 if (re->dev == fi.dev && re->ino == fi.root)
497 break; 515 break;
498 516
499 me = (struct mount_entry *) malloc (sizeof (struct mount_entry)); 517 me = xmalloc (sizeof *me);
500 me->me_devname = strdup (fi.device_name[0] != '\0' ? fi.device_name : fi.fsh_name); 518 me->me_devname = xstrdup (fi.device_name[0] != '\0' ? fi.device_name : fi.fsh_name);
501 me->me_mountdir = strdup (re != NULL ? re->name : fi.fsh_name); 519 me->me_mountdir = xstrdup (re != NULL ? re->name : fi.fsh_name);
502 me->me_type = strdup (fi.fsh_name); 520 me->me_type = xstrdup (fi.fsh_name);
521 me->me_type_malloced = 1;
503 me->me_dev = fi.dev; 522 me->me_dev = fi.dev;
504 me->me_dummy = 0; 523 me->me_dummy = 0;
505 me->me_remote = (fi.flags & B_FS_IS_SHARED) != 0; 524 me->me_remote = (fi.flags & B_FS_IS_SHARED) != 0;
@@ -520,18 +539,21 @@ read_filesystem_list (int need_fs_type)
520 } 539 }
521#endif /* MOUNTED_FS_STAT_DEV */ 540#endif /* MOUNTED_FS_STAT_DEV */
522 541
523#if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */ 542#if defined MOUNTED_GETFSSTAT /* __alpha running OSF_1 */
524 { 543 {
525 int numsys, counter, bufsize; 544 int numsys, counter;
545 size_t bufsize;
526 struct statfs *stats; 546 struct statfs *stats;
527 547
528 numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); 548 numsys = getfsstat ((struct statfs *)0, 0L, MNT_NOWAIT);
529 if (numsys < 0) 549 if (numsys < 0)
530 return (NULL); 550 return (NULL);
551 if (SIZE_MAX / sizeof *stats <= numsys)
552 xalloc_die ();
531 553
532 bufsize = (1 + numsys) * sizeof (struct statfs); 554 bufsize = (1 + numsys) * sizeof *stats;
533 stats = (struct statfs *)malloc (bufsize); 555 stats = xmalloc (bufsize);
534 numsys = getfsstat (stats, bufsize, MNT_WAIT); 556 numsys = getfsstat (stats, bufsize, MNT_NOWAIT);
535 557
536 if (numsys < 0) 558 if (numsys < 0)
537 { 559 {
@@ -541,10 +563,11 @@ read_filesystem_list (int need_fs_type)
541 563
542 for (counter = 0; counter < numsys; counter++) 564 for (counter = 0; counter < numsys; counter++)
543 { 565 {
544 me = (struct mount_entry *) malloc (sizeof (struct mount_entry)); 566 me = xmalloc (sizeof *me);
545 me->me_devname = strdup (stats[counter].f_mntfromname); 567 me->me_devname = xstrdup (stats[counter].f_mntfromname);
546 me->me_mountdir = strdup (stats[counter].f_mntonname); 568 me->me_mountdir = xstrdup (stats[counter].f_mntonname);
547 me->me_type = mnt_names[stats[counter].f_type]; 569 me->me_type = xstrdup (FS_TYPE (stats[counter]));
570 me->me_type_malloced = 1;
548 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type); 571 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type);
549 me->me_remote = ME_REMOTE (me->me_devname, me->me_type); 572 me->me_remote = ME_REMOTE (me->me_devname, me->me_type);
550 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ 573 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
@@ -558,7 +581,7 @@ read_filesystem_list (int need_fs_type)
558 } 581 }
559#endif /* MOUNTED_GETFSSTAT */ 582#endif /* MOUNTED_GETFSSTAT */
560 583
561#if defined (MOUNTED_FREAD) || defined (MOUNTED_FREAD_FSTYP) /* SVR[23]. */ 584#if defined MOUNTED_FREAD || defined MOUNTED_FREAD_FSTYP /* SVR[23]. */
562 { 585 {
563 struct mnttab mnt; 586 struct mnttab mnt;
564 char *table = "/etc/mnttab"; 587 char *table = "/etc/mnttab";
@@ -570,17 +593,18 @@ read_filesystem_list (int need_fs_type)
570 593
571 while (fread (&mnt, sizeof mnt, 1, fp) > 0) 594 while (fread (&mnt, sizeof mnt, 1, fp) > 0)
572 { 595 {
573 me = (struct mount_entry *) malloc (sizeof (struct mount_entry)); 596 me = xmalloc (sizeof *me);
574# ifdef GETFSTYP /* SVR3. */ 597# ifdef GETFSTYP /* SVR3. */
575 me->me_devname = strdup (mnt.mt_dev); 598 me->me_devname = xstrdup (mnt.mt_dev);
576# else 599# else
577 me->me_devname = malloc (strlen (mnt.mt_dev) + 6); 600 me->me_devname = xmalloc (strlen (mnt.mt_dev) + 6);
578 strcpy (me->me_devname, "/dev/"); 601 strcpy (me->me_devname, "/dev/");
579 strcpy (me->me_devname + 5, mnt.mt_dev); 602 strcpy (me->me_devname + 5, mnt.mt_dev);
580# endif 603# endif
581 me->me_mountdir = strdup (mnt.mt_filsys); 604 me->me_mountdir = xstrdup (mnt.mt_filsys);
582 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ 605 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
583 me->me_type = ""; 606 me->me_type = "";
607 me->me_type_malloced = 0;
584# ifdef GETFSTYP /* SVR3. */ 608# ifdef GETFSTYP /* SVR3. */
585 if (need_fs_type) 609 if (need_fs_type)
586 { 610 {
@@ -589,7 +613,10 @@ read_filesystem_list (int need_fs_type)
589 613
590 if (statfs (me->me_mountdir, &fsd, sizeof fsd, 0) != -1 614 if (statfs (me->me_mountdir, &fsd, sizeof fsd, 0) != -1
591 && sysfs (GETFSTYP, fsd.f_fstyp, typebuf) != -1) 615 && sysfs (GETFSTYP, fsd.f_fstyp, typebuf) != -1)
592 me->me_type = strdup (typebuf); 616 {
617 me->me_type = xstrdup (typebuf);
618 me->me_type_malloced = 1;
619 }
593 } 620 }
594# endif 621# endif
595 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type); 622 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type);
@@ -602,6 +629,7 @@ read_filesystem_list (int need_fs_type)
602 629
603 if (ferror (fp)) 630 if (ferror (fp))
604 { 631 {
632 /* The last fread() call must have failed. */
605 int saved_errno = errno; 633 int saved_errno = errno;
606 fclose (fp); 634 fclose (fp);
607 errno = saved_errno; 635 errno = saved_errno;
@@ -615,13 +643,14 @@ read_filesystem_list (int need_fs_type)
615 643
616#ifdef MOUNTED_GETMNTTBL /* DolphinOS goes it's own way */ 644#ifdef MOUNTED_GETMNTTBL /* DolphinOS goes it's own way */
617 { 645 {
618 struct mntent **mnttbl=getmnttbl(),**ent; 646 struct mntent **mnttbl = getmnttbl (), **ent;
619 for (ent=mnttbl;*ent;ent++) 647 for (ent=mnttbl;*ent;ent++)
620 { 648 {
621 me = (struct mount_entry *) malloc (sizeof (struct mount_entry)); 649 me = xmalloc (sizeof *me);
622 me->me_devname = strdup ( (*ent)->mt_resource); 650 me->me_devname = xstrdup ( (*ent)->mt_resource);
623 me->me_mountdir = strdup( (*ent)->mt_directory); 651 me->me_mountdir = xstrdup ( (*ent)->mt_directory);
624 me->me_type = strdup ((*ent)->mt_fstype); 652 me->me_type = xstrdup ((*ent)->mt_fstype);
653 me->me_type_malloced = 1;
625 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type); 654 me->me_dummy = ME_DUMMY (me->me_devname, me->me_type);
626 me->me_remote = ME_REMOTE (me->me_devname, me->me_type); 655 me->me_remote = ME_REMOTE (me->me_devname, me->me_type);
627 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ 656 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
@@ -630,7 +659,7 @@ read_filesystem_list (int need_fs_type)
630 *mtail = me; 659 *mtail = me;
631 mtail = &me->me_next; 660 mtail = &me->me_next;
632 } 661 }
633 endmnttbl(); 662 endmnttbl ();
634 } 663 }
635#endif 664#endif
636 665
@@ -679,10 +708,11 @@ read_filesystem_list (int need_fs_type)
679 { 708 {
680 while ((ret = getmntent (fp, &mnt)) == 0) 709 while ((ret = getmntent (fp, &mnt)) == 0)
681 { 710 {
682 me = (struct mount_entry *) malloc (sizeof (struct mount_entry)); 711 me = xmalloc (sizeof *me);
683 me->me_devname = strdup (mnt.mnt_special); 712 me->me_devname = xstrdup (mnt.mnt_special);
684 me->me_mountdir = strdup (mnt.mnt_mountp); 713 me->me_mountdir = xstrdup (mnt.mnt_mountp);
685 me->me_type = strdup (mnt.mnt_fstype); 714 me->me_type = xstrdup (mnt.mnt_fstype);
715 me->me_type_malloced = 1;
686 me->me_dummy = MNT_IGNORE (&mnt) != 0; 716 me->me_dummy = MNT_IGNORE (&mnt) != 0;
687 me->me_remote = ME_REMOTE (me->me_devname, me->me_type); 717 me->me_remote = ME_REMOTE (me->me_devname, me->me_type);
688 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ 718 me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
@@ -711,21 +741,32 @@ read_filesystem_list (int need_fs_type)
711 int bufsize; 741 int bufsize;
712 char *entries, *thisent; 742 char *entries, *thisent;
713 struct vmount *vmp; 743 struct vmount *vmp;
744 int n_entries;
745 int i;
714 746
715 /* Ask how many bytes to allocate for the mounted filesystem info. */ 747 /* Ask how many bytes to allocate for the mounted filesystem info. */
716 mntctl (MCTL_QUERY, sizeof bufsize, (struct vmount *) &bufsize); 748 if (mntctl (MCTL_QUERY, sizeof bufsize, (struct vmount *) &bufsize) != 0)
717 entries = malloc (bufsize); 749 return NULL;
750 entries = xmalloc (bufsize);
718 751
719 /* Get the list of mounted filesystems. */ 752 /* Get the list of mounted filesystems. */
720 mntctl (MCTL_QUERY, bufsize, (struct vmount *) entries); 753 n_entries = mntctl (MCTL_QUERY, bufsize, (struct vmount *) entries);
754 if (n_entries < 0)
755 {
756 int saved_errno = errno;
757 free (entries);
758 errno = saved_errno;
759 return NULL;
760 }
721 761
722 for (thisent = entries; thisent < entries + bufsize; 762 for (i = 0, thisent = entries;
723 thisent += vmp->vmt_length) 763 i < n_entries;
764 i++, thisent += vmp->vmt_length)
724 { 765 {
725 char *options, *ignore; 766 char *options, *ignore;
726 767
727 vmp = (struct vmount *) thisent; 768 vmp = (struct vmount *) thisent;
728 me = (struct mount_entry *) xmalloc (sizeof (struct mount_entry)); 769 me = xmalloc (sizeof *me);
729 if (vmp->vmt_flags & MNT_REMOTE) 770 if (vmp->vmt_flags & MNT_REMOTE)
730 { 771 {
731 char *host, *path; 772 char *host, *path;
@@ -734,7 +775,7 @@ read_filesystem_list (int need_fs_type)
734 /* Prepend the remote pathname. */ 775 /* Prepend the remote pathname. */
735 host = thisent + vmp->vmt_data[VMT_HOSTNAME].vmt_off; 776 host = thisent + vmp->vmt_data[VMT_HOSTNAME].vmt_off;
736 path = thisent + vmp->vmt_data[VMT_OBJECT].vmt_off; 777 path = thisent + vmp->vmt_data[VMT_OBJECT].vmt_off;
737 me->me_devname = malloc (strlen (host) + strlen (path) + 2); 778 me->me_devname = xmalloc (strlen (host) + strlen (path) + 2);
738 strcpy (me->me_devname, host); 779 strcpy (me->me_devname, host);
739 strcat (me->me_devname, ":"); 780 strcat (me->me_devname, ":");
740 strcat (me->me_devname, path); 781 strcat (me->me_devname, path);
@@ -742,11 +783,12 @@ read_filesystem_list (int need_fs_type)
742 else 783 else
743 { 784 {
744 me->me_remote = 0; 785 me->me_remote = 0;
745 me->me_devname = strdup (thisent + 786 me->me_devname = xstrdup (thisent +
746 vmp->vmt_data[VMT_OBJECT].vmt_off); 787 vmp->vmt_data[VMT_OBJECT].vmt_off);
747 } 788 }
748 me->me_mountdir = strdup (thisent + vmp->vmt_data[VMT_STUB].vmt_off); 789 me->me_mountdir = xstrdup (thisent + vmp->vmt_data[VMT_STUB].vmt_off);
749 me->me_type = strdup (fstype_to_string (vmp->vmt_gfstype)); 790 me->me_type = xstrdup (fstype_to_string (vmp->vmt_gfstype));
791 me->me_type_malloced = 1;
750 options = thisent + vmp->vmt_data[VMT_ARGS].vmt_off; 792 options = thisent + vmp->vmt_data[VMT_ARGS].vmt_off;
751 ignore = strstr (options, "ignore"); 793 ignore = strstr (options, "ignore");
752 me->me_dummy = (ignore 794 me->me_dummy = (ignore
@@ -777,7 +819,8 @@ read_filesystem_list (int need_fs_type)
777 me = mount_list->me_next; 819 me = mount_list->me_next;
778 free (mount_list->me_devname); 820 free (mount_list->me_devname);
779 free (mount_list->me_mountdir); 821 free (mount_list->me_mountdir);
780 /* FIXME: me_type is not always malloced. */ 822 if (mount_list->me_type_malloced)
823 free (mount_list->me_type);
781 free (mount_list); 824 free (mount_list);
782 mount_list = me; 825 mount_list = me;
783 } 826 }
diff --git a/lib/mountlist.h b/lib/mountlist.h
index c41490c..9e550a0 100644
--- a/lib/mountlist.h
+++ b/lib/mountlist.h
@@ -1,5 +1,7 @@
1/* mountlist.h -- declarations for list of mounted filesystems 1/* mountlist.h -- declarations for list of mounted filesystems
2 Copyright (C) 1991, 1992, 1998, 2000 Free Software Foundation, Inc. 2
3 Copyright (C) 1991, 1992, 1998, 2000, 2001, 2002, 2003 Free
4 Software Foundation, Inc.
3 5
4 This program is free software; you can redistribute it and/or modify 6 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
@@ -24,27 +26,28 @@ struct mount_entry
24 dev_t me_dev; /* Device number of me_mountdir. */ 26 dev_t me_dev; /* Device number of me_mountdir. */
25 unsigned int me_dummy : 1; /* Nonzero for dummy filesystems. */ 27 unsigned int me_dummy : 1; /* Nonzero for dummy filesystems. */
26 unsigned int me_remote : 1; /* Nonzero for remote fileystems. */ 28 unsigned int me_remote : 1; /* Nonzero for remote fileystems. */
29 unsigned int me_type_malloced : 1; /* Nonzero if me_type was malloced. */
27 struct mount_entry *me_next; 30 struct mount_entry *me_next;
28}; 31};
29 32
30#ifndef PARAMS 33struct mount_entry *read_filesystem_list (int need_fs_type);
31# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
32# define PARAMS(Args) Args
33# else
34# define PARAMS(Args) ()
35# endif
36#endif
37
38struct mount_entry *read_filesystem_list PARAMS ((int need_fs_type));
39 34
40#ifndef ME_DUMMY 35#ifndef ME_DUMMY
41# define ME_DUMMY(fs_name, fs_type) \ 36# define ME_DUMMY(Fs_name, Fs_type) \
42 (!strcmp (fs_type, "auto") \ 37 (!strcmp (Fs_type, "autofs") \
43 || !strcmp (fs_type, "autofs") \
44 /* for Irix 6.5 */ \ 38 /* for Irix 6.5 */ \
45 || !strcmp (fs_type, "ignore")) 39 || !strcmp (Fs_type, "ignore"))
46#endif 40#endif
47 41
42#undef STREQ
43#define STREQ(a, b) (strcmp ((a), (b)) == 0)
44
48#ifndef ME_REMOTE 45#ifndef ME_REMOTE
49# define ME_REMOTE(fs_name, fs_type) (strchr (fs_name, ':') != 0) 46/* A file system is `remote' if its Fs_name contains a `:'
47 or if (it is of type smbfs and its Fs_name starts with `//'). */
48# define ME_REMOTE(Fs_name, Fs_type) \
49 (strchr ((Fs_name), ':') != 0 \
50 || ((Fs_name)[0] == '/' \
51 && (Fs_name)[1] == '/' \
52 && STREQ (Fs_type, "smbfs")))
50#endif 53#endif
diff --git a/lib/onceonly.m4 b/lib/onceonly.m4
new file mode 100644
index 0000000..50b33f4
--- /dev/null
+++ b/lib/onceonly.m4
@@ -0,0 +1,63 @@
1# onceonly.m4 serial 3 (gettext-0.12)
2dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
3dnl This file is free software, distributed under the terms of the GNU
4dnl General Public License. As a special exception to the GNU General
5dnl Public License, this file may be distributed as part of a program
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
8
9dnl This file defines some "once only" variants of standard autoconf macros.
10dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS
11dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS
12dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS
13dnl AC_REQUIRE([AC_HEADER_STDC]) like AC_HEADER_STDC
14dnl The advantage is that the check for each of the headers/functions/decls
15dnl will be put only once into the 'configure' file. It keeps the size of
16dnl the 'configure' file down, and avoids redundant output when 'configure'
17dnl is run.
18dnl The drawback is that the checks cannot be conditionalized. If you write
19dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi
20dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to
21dnl empty, and the check will be inserted before the body of the AC_DEFUNed
22dnl function.
23
24dnl Autoconf version 2.57 or newer is recommended.
25AC_PREREQ(2.54)
26
27# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of
28# AC_CHECK_HEADERS(HEADER1 HEADER2 ...).
29AC_DEFUN([AC_CHECK_HEADERS_ONCE], [
30 :
31 AC_FOREACH([gl_HEADER_NAME], [$1], [
32 AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(m4_defn([gl_HEADER_NAME]),
33 [-./], [___])), [
34 AC_CHECK_HEADERS(gl_HEADER_NAME)
35 ])
36 AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME,
37 [-./], [___])))
38 ])
39])
40
41# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of
42# AC_CHECK_FUNCS(FUNC1 FUNC2 ...).
43AC_DEFUN([AC_CHECK_FUNCS_ONCE], [
44 :
45 AC_FOREACH([gl_FUNC_NAME], [$1], [
46 AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [
47 AC_CHECK_FUNCS(m4_defn([gl_FUNC_NAME]))
48 ])
49 AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]))
50 ])
51])
52
53# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of
54# AC_CHECK_DECLS(DECL1, DECL2, ...).
55AC_DEFUN([AC_CHECK_DECLS_ONCE], [
56 :
57 AC_FOREACH([gl_DECL_NAME], [$1], [
58 AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [
59 AC_CHECK_DECLS(m4_defn([gl_DECL_NAME]))
60 ])
61 AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]))
62 ])
63])
diff --git a/lib/realloc.c b/lib/realloc.c
index d0d3e4a..ccbf991 100644
--- a/lib/realloc.c
+++ b/lib/realloc.c
@@ -1,5 +1,5 @@
1/* Work around bug on some systems where realloc (NULL, 0) fails. 1/* Work around bug on some systems where realloc (NULL, 0) fails.
2 Copyright (C) 1997 Free Software Foundation, Inc. 2 Copyright (C) 1997, 2003 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
@@ -22,19 +22,14 @@
22#endif 22#endif
23#undef realloc 23#undef realloc
24 24
25#include <sys/types.h> 25#include <stdlib.h>
26
27char *malloc ();
28char *realloc ();
29 26
30/* Change the size of an allocated block of memory P to N bytes, 27/* Change the size of an allocated block of memory P to N bytes,
31 with error checking. If N is zero, change it to 1. If P is NULL, 28 with error checking. If N is zero, change it to 1. If P is NULL,
32 use malloc. */ 29 use malloc. */
33 30
34char * 31void *
35rpl_realloc (p, n) 32rpl_realloc (void *p, size_t n)
36 char *p;
37 size_t n;
38{ 33{
39 if (n == 0) 34 if (n == 0)
40 n = 1; 35 n = 1;
diff --git a/lib/snprintf.c b/lib/snprintf.c
index 3de2a96..633517d 100644
--- a/lib/snprintf.c
+++ b/lib/snprintf.c
@@ -1,4 +1,8 @@
1/* 1/*
2 * NOTE: If you change this file, please merge it into rsync, samba, etc.
3 */
4
5/*
2 * Copyright Patrick Powell 1995 6 * Copyright Patrick Powell 1995
3 * This code is based on code written by Patrick Powell (papowell@astart.com) 7 * This code is based on code written by Patrick Powell (papowell@astart.com)
4 * It may be used for any purpose as long as this notice remains intact 8 * It may be used for any purpose as long as this notice remains intact
@@ -53,17 +57,57 @@
53 * got rid of fcvt code (twas buggy and made testing harder) 57 * got rid of fcvt code (twas buggy and made testing harder)
54 * added C99 semantics 58 * added C99 semantics
55 * 59 *
60 * date: 2002/12/19 19:56:31; author: herb; state: Exp; lines: +2 -0
61 * actually print args for %g and %e
62 *
63 * date: 2002/06/03 13:37:52; author: jmcd; state: Exp; lines: +8 -0
64 * Since includes.h isn't included here, VA_COPY has to be defined here. I don't
65 * see any include file that is guaranteed to be here, so I'm defining it
66 * locally. Fixes AIX and Solaris builds.
67 *
68 * date: 2002/06/03 03:07:24; author: tridge; state: Exp; lines: +5 -13
69 * put the ifdef for HAVE_VA_COPY in one place rather than in lots of
70 * functions
71 *
72 * date: 2002/05/17 14:51:22; author: jmcd; state: Exp; lines: +21 -4
73 * Fix usage of va_list passed as an arg. Use __va_copy before using it
74 * when it exists.
75 *
76 * date: 2002/04/16 22:38:04; author: idra; state: Exp; lines: +20 -14
77 * Fix incorrect zpadlen handling in fmtfp.
78 * Thanks to Ollie Oldham <ollie.oldham@metro-optix.com> for spotting it.
79 * few mods to make it easier to compile the tests.
80 * addedd the "Ollie" test to the floating point ones.
81 *
82 * Martin Pool (mbp@samba.org) April 2003
83 * Remove NO_CONFIG_H so that the test case can be built within a source
84 * tree with less trouble.
85 * Remove unnecessary SAFE_FREE() definition.
86 *
87 * Martin Pool (mbp@samba.org) May 2003
88 * Put in a prototype for dummy_snprintf() to quiet compiler warnings.
89 *
90 * Move #endif to make sure VA_COPY, LDOUBLE, etc are defined even
91 * if the C library has some snprintf functions already.
56 **************************************************************/ 92 **************************************************************/
57 93
58#ifndef NO_CONFIG_H /* for some tests */ 94#ifndef NO_CONFIG_H
59#include "config.h" 95#include "config.h"
60#else 96#else
61#define NULL 0 97#define NULL 0
62#endif 98#endif
63 99
64#ifdef TEST_SNPRINTF /* need math library headers for testing */ 100#ifdef TEST_SNPRINTF /* need math library headers for testing */
65#include <math.h> 101
66#endif 102/* In test mode, we pretend that this system doesn't have any snprintf
103 * functions, regardless of what config.h says. */
104# undef HAVE_SNPRINTF
105# undef HAVE_VSNPRINTF
106# undef HAVE_C99_VSNPRINTF
107# undef HAVE_ASPRINTF
108# undef HAVE_VASPRINTF
109# include <math.h>
110#endif /* TEST_SNPRINTF */
67 111
68#ifdef HAVE_STRING_H 112#ifdef HAVE_STRING_H
69#include <string.h> 113#include <string.h>
@@ -75,12 +119,8 @@
75#ifdef HAVE_CTYPE_H 119#ifdef HAVE_CTYPE_H
76#include <ctype.h> 120#include <ctype.h>
77#endif 121#endif
78#ifdef HAVE_SYS_TYPES_H
79#include <sys/types.h> 122#include <sys/types.h>
80#endif
81#ifdef HAVE_STDARG_H
82#include <stdarg.h> 123#include <stdarg.h>
83#endif
84#ifdef HAVE_STDLIB_H 124#ifdef HAVE_STDLIB_H
85#include <stdlib.h> 125#include <stdlib.h>
86#endif 126#endif
@@ -89,8 +129,9 @@
89/* only include stdio.h if we are not re-defining snprintf or vsnprintf */ 129/* only include stdio.h if we are not re-defining snprintf or vsnprintf */
90#include <stdio.h> 130#include <stdio.h>
91 /* make the compiler happy with an empty file */ 131 /* make the compiler happy with an empty file */
132 void dummy_snprintf(void);
92 void dummy_snprintf(void) {} 133 void dummy_snprintf(void) {}
93#else 134#endif /* HAVE_SNPRINTF, etc */
94 135
95#ifdef HAVE_LONG_DOUBLE 136#ifdef HAVE_LONG_DOUBLE
96#define LDOUBLE long double 137#define LDOUBLE long double
@@ -104,29 +145,17 @@
104#define LLONG long 145#define LLONG long
105#endif 146#endif
106 147
107/* free memory if the pointer is valid and zero the pointer */
108#ifndef SAFE_FREE
109#define SAFE_FREE(x) do { if ((x) != NULL) {free((x)); (x)=NULL;} } while(0)
110#endif
111
112#ifndef VA_COPY 148#ifndef VA_COPY
113#ifdef HAVE_VA_COPY 149#ifdef HAVE_VA_COPY
150#define VA_COPY(dest, src) va_copy(dest, src)
151#else
152#ifdef HAVE___VA_COPY
114#define VA_COPY(dest, src) __va_copy(dest, src) 153#define VA_COPY(dest, src) __va_copy(dest, src)
115#else 154#else
116#define VA_COPY(dest, src) (dest) = (src) 155#define VA_COPY(dest, src) (dest) = (src)
117#endif 156#endif
118#endif 157#endif
119 158
120static size_t dopr(char *buffer, size_t maxlen, const char *format,
121 va_list args_in);
122static void fmtstr(char *buffer, size_t *currlen, size_t maxlen,
123 char *value, int flags, int min, int max);
124static void fmtint(char *buffer, size_t *currlen, size_t maxlen,
125 long value, int base, int min, int max, int flags);
126static void fmtfp(char *buffer, size_t *currlen, size_t maxlen,
127 LDOUBLE fvalue, int min, int max, int flags);
128static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c);
129
130/* 159/*
131 * dopr(): poor man's version of doprintf 160 * dopr(): poor man's version of doprintf
132 */ 161 */
@@ -161,6 +190,19 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c);
161#define MAX(p,q) (((p) >= (q)) ? (p) : (q)) 190#define MAX(p,q) (((p) >= (q)) ? (p) : (q))
162#endif 191#endif
163 192
193/* yes this really must be a ||. Don't muck with this (tridge) */
194#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
195
196static size_t dopr(char *buffer, size_t maxlen, const char *format,
197 va_list args_in);
198static void fmtstr(char *buffer, size_t *currlen, size_t maxlen,
199 char *value, int flags, int min, int max);
200static void fmtint(char *buffer, size_t *currlen, size_t maxlen,
201 long value, int base, int min, int max, int flags);
202static void fmtfp(char *buffer, size_t *currlen, size_t maxlen,
203 LDOUBLE fvalue, int min, int max, int flags);
204static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c);
205
164static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args_in) 206static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args_in)
165{ 207{
166 char ch; 208 char ch;
@@ -345,6 +387,7 @@ static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args
345 fvalue = va_arg (args, LDOUBLE); 387 fvalue = va_arg (args, LDOUBLE);
346 else 388 else
347 fvalue = va_arg (args, double); 389 fvalue = va_arg (args, double);
390 fmtfp (buffer, &currlen, maxlen, fvalue, min, max, flags);
348 break; 391 break;
349 case 'G': 392 case 'G':
350 flags |= DP_F_UP; 393 flags |= DP_F_UP;
@@ -353,6 +396,7 @@ static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args
353 fvalue = va_arg (args, LDOUBLE); 396 fvalue = va_arg (args, LDOUBLE);
354 else 397 else
355 fvalue = va_arg (args, double); 398 fvalue = va_arg (args, double);
399 fmtfp (buffer, &currlen, maxlen, fvalue, min, max, flags);
356 break; 400 break;
357 case 'c': 401 case 'c':
358 dopr_outch (buffer, &currlen, maxlen, va_arg (args, int)); 402 dopr_outch (buffer, &currlen, maxlen, va_arg (args, int));
@@ -625,7 +669,7 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen,
625 int padlen = 0; /* amount to pad */ 669 int padlen = 0; /* amount to pad */
626 int zpadlen = 0; 670 int zpadlen = 0;
627 int caps = 0; 671 int caps = 0;
628 int index; 672 int idx;
629 double intpart; 673 double intpart;
630 double fracpart; 674 double fracpart;
631 double temp; 675 double temp;
@@ -684,11 +728,11 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen,
684 do { 728 do {
685 temp = intpart*0.1; 729 temp = intpart*0.1;
686 my_modf(temp, &intpart); 730 my_modf(temp, &intpart);
687 index = (int) ((temp -intpart +0.05)* 10.0); 731 idx = (int) ((temp -intpart +0.05)* 10.0);
688 /* index = (int) (((double)(temp*0.1) -intpart +0.05) *10.0); */ 732 /* idx = (int) (((double)(temp*0.1) -intpart +0.05) *10.0); */
689 /* printf ("%llf, %f, %x\n", temp, intpart, index); */ 733 /* printf ("%llf, %f, %x\n", temp, intpart, idx); */
690 iconvert[iplace++] = 734 iconvert[iplace++] =
691 (caps? "0123456789ABCDEF":"0123456789abcdef")[index]; 735 (caps? "0123456789ABCDEF":"0123456789abcdef")[idx];
692 } while (intpart && (iplace < 311)); 736 } while (intpart && (iplace < 311));
693 if (iplace == 311) iplace--; 737 if (iplace == 311) iplace--;
694 iconvert[iplace] = 0; 738 iconvert[iplace] = 0;
@@ -699,11 +743,11 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen,
699 do { 743 do {
700 temp = fracpart*0.1; 744 temp = fracpart*0.1;
701 my_modf(temp, &fracpart); 745 my_modf(temp, &fracpart);
702 index = (int) ((temp -fracpart +0.05)* 10.0); 746 idx = (int) ((temp -fracpart +0.05)* 10.0);
703 /* index = (int) ((((temp/10) -fracpart) +0.05) *10); */ 747 /* idx = (int) ((((temp/10) -fracpart) +0.05) *10); */
704 /* printf ("%lf, %lf, %ld\n", temp, fracpart, index); */ 748 /* printf ("%lf, %lf, %ld\n", temp, fracpart, idx ); */
705 fconvert[fplace++] = 749 fconvert[fplace++] =
706 (caps? "0123456789ABCDEF":"0123456789abcdef")[index]; 750 (caps? "0123456789ABCDEF":"0123456789abcdef")[idx];
707 } while(fracpart && (fplace < 311)); 751 } while(fracpart && (fplace < 311));
708 if (fplace == 311) fplace--; 752 if (fplace == 311) fplace--;
709 } 753 }
@@ -773,24 +817,21 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c)
773 (*currlen)++; 817 (*currlen)++;
774} 818}
775 819
776/* yes this really must be a ||. Don't muck with this (tridge) */ 820 int smb_vsnprintf (char *str, size_t count, const char *fmt, va_list args)
777#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
778 int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
779{ 821{
780 return dopr(str, count, fmt, args); 822 return dopr(str, count, fmt, args);
781} 823}
824#define vsnprintf smb_vsnprintf
782#endif 825#endif
783 826
784/* yes this really must be a ||. Don't muck wiith this (tridge) 827/* yes this really must be a ||. Don't muck with this (tridge)
785 * 828 *
786 * The logic for these two is that we need our own definition if the 829 * The logic for these two is that we need our own definition if the
787 * OS *either* has no definition of *sprintf, or if it does have one 830 * OS *either* has no definition of *sprintf, or if it does have one
788 * that doesn't work properly according to the autoconf test. Perhaps 831 * that doesn't work properly according to the autoconf test.
789 * these should really be smb_snprintf to avoid conflicts with buggy
790 * linkers? -- mbp
791 */ 832 */
792#if !defined(HAVE_SNPRINTF) /* || !defined(HAVE_C99_SNPRINTF) */ 833#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
793 int snprintf(char *str,size_t count,const char *fmt,...) 834int smb_snprintf(char *str,size_t count,const char *fmt,...)
794{ 835{
795 size_t ret; 836 size_t ret;
796 va_list ap; 837 va_list ap;
@@ -800,6 +841,7 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c)
800 va_end(ap); 841 va_end(ap);
801 return ret; 842 return ret;
802} 843}
844#define snprintf smb_snprintf
803#endif 845#endif
804 846
805#endif 847#endif
@@ -868,8 +910,9 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c)
868 "-16.16f", 910 "-16.16f",
869 NULL 911 NULL
870 }; 912 };
871 double fp_nums[] = { 6442452944.1234, -1.5, 134.21, 91340.2, 341.1234, 0203.9, 0.96, 0.996, 913 double fp_nums[] = { 6442452944.1234, -1.5, 134.21, 91340.2, 341.1234, 203.9, 0.96, 0.996,
872 0.9996, 1.996, 4.136, 5.030201, 0}; 914 0.9996, 1.996, 4.136, 5.030201, 0.00205,
915 /* END LIST */ 0};
873 char *int_fmt[] = { 916 char *int_fmt[] = {
874 "%-1.5d", 917 "%-1.5d",
875 "%1.5d", 918 "%1.5d",
@@ -977,4 +1020,4 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c)
977 1020
978 return 0; 1021 return 0;
979} 1022}
980#endif /* SNPRINTF_TEST */ 1023#endif /* TEST_SNPRINTF */
diff --git a/lib/strtod.c b/lib/strtod.c
index 10edb5c..161f97a 100644
--- a/lib/strtod.c
+++ b/lib/strtod.c
@@ -1,4 +1,4 @@
1/* Copyright (C) 1991, 1992, 1997, 1999 Free Software Foundation, Inc. 1/* Copyright (C) 1991, 1992, 1997, 1999, 2003 Free Software Foundation, Inc.
2 2
3 This program is free software; you can redistribute it and/or modify 3 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 4 it under the terms of the GNU General Public License as published by
@@ -37,22 +37,9 @@ extern int errno;
37 37
38#include <math.h> 38#include <math.h>
39 39
40#if HAVE_FLOAT_H 40#include <float.h>
41# include <float.h> 41#include <stdlib.h>
42#else 42#include <string.h>
43# define DBL_MAX 1.7976931348623159e+308
44# define DBL_MIN 2.2250738585072010e-308
45#endif
46
47#if STDC_HEADERS
48# include <stdlib.h>
49# include <string.h>
50#else
51# define NULL 0
52# ifndef HUGE_VAL
53# define HUGE_VAL HUGE
54# endif
55#endif
56 43
57/* Convert NPTR to a double. If ENDPTR is not NULL, a pointer to the 44/* Convert NPTR to a double. If ENDPTR is not NULL, a pointer to the
58 character after the last one used in the number is put in *ENDPTR. */ 45 character after the last one used in the number is put in *ENDPTR. */
diff --git a/lib/unlocked-io.h b/lib/unlocked-io.h
index a7240fb..36a7a48 100644
--- a/lib/unlocked-io.h
+++ b/lib/unlocked-io.h
@@ -1,21 +1,20 @@
1/* Prefer faster, non-thread-safe stdio functions if available. 1/* Prefer faster, non-thread-safe stdio functions if available.
2 2
3 Copyright (C) 2001, 2002 Free Software Foundation, Inc. 3 Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4 4
5 This program is free software; you can redistribute it and/or modify it 5 This program is free software; you can redistribute it and/or modify
6 under the terms of the GNU Library General Public License as published 6 it under the terms of the GNU General Public License as published by
7 by the Free Software Foundation; either version 2, or (at your option) 7 the Free Software Foundation; either version 2, or (at your option)
8 any later version. 8 any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 Library General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public 15 You should have received a copy of the GNU General Public License along
16 License along with this program; if not, write to the Free Software 16 with this program; if not, write to the Free Software Foundation,
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 17 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18 USA. */
19 18
20/* Written by Jim Meyering. */ 19/* Written by Jim Meyering. */
21 20
@@ -28,63 +27,106 @@
28 27
29# if USE_UNLOCKED_IO 28# if USE_UNLOCKED_IO
30 29
31/* These are wrappers for functions/macros from GNU libc. 30/* These are wrappers for functions/macros from the GNU C library, and
31 from other C libraries supporting POSIX's optional thread-safe functions.
32
32 The standard I/O functions are thread-safe. These *_unlocked ones are 33 The standard I/O functions are thread-safe. These *_unlocked ones are
33 more efficient but not thread-safe. That they're not thread-safe is 34 more efficient but not thread-safe. That they're not thread-safe is
34 fine since all of the applications in this package are single threaded. */ 35 fine since all of the applications in this package are single threaded.
36
37 Also, some code that is shared with the GNU C library may invoke
38 the *_unlocked functions directly. On hosts that lack those
39 functions, invoke the non-thread-safe versions instead. */
40
41# include <stdio.h>
35 42
36# if HAVE_DECL_CLEARERR_UNLOCKED 43# if HAVE_DECL_CLEARERR_UNLOCKED
37# undef clearerr 44# undef clearerr
38# define clearerr(x) clearerr_unlocked (x) 45# define clearerr(x) clearerr_unlocked (x)
46# else
47# define clearerr_unlocked(x) clearerr (x)
39# endif 48# endif
40# if HAVE_DECL_FEOF_UNLOCKED 49# if HAVE_DECL_FEOF_UNLOCKED
41# undef feof 50# undef feof
42# define feof(x) feof_unlocked (x) 51# define feof(x) feof_unlocked (x)
52# else
53# define feof_unlocked(x) feof (x)
43# endif 54# endif
44# if HAVE_DECL_FERROR_UNLOCKED 55# if HAVE_DECL_FERROR_UNLOCKED
45# undef ferror 56# undef ferror
46# define ferror(x) ferror_unlocked (x) 57# define ferror(x) ferror_unlocked (x)
58# else
59# define ferror_unlocked(x) ferror (x)
47# endif 60# endif
48# if HAVE_DECL_FFLUSH_UNLOCKED 61# if HAVE_DECL_FFLUSH_UNLOCKED
49# undef fflush 62# undef fflush
50# define fflush(x) fflush_unlocked (x) 63# define fflush(x) fflush_unlocked (x)
64# else
65# define fflush_unlocked(x) fflush (x)
51# endif 66# endif
52# if HAVE_DECL_FGETS_UNLOCKED 67# if HAVE_DECL_FGETS_UNLOCKED
53# undef fgets 68# undef fgets
54# define fgets(x,y,z) fgets_unlocked (x,y,z) 69# define fgets(x,y,z) fgets_unlocked (x,y,z)
70# else
71# define fgets_unlocked(x,y,z) fgets (x,y,z)
55# endif 72# endif
56# if HAVE_DECL_FPUTC_UNLOCKED 73# if HAVE_DECL_FPUTC_UNLOCKED
57# undef fputc 74# undef fputc
58# define fputc(x,y) fputc_unlocked (x,y) 75# define fputc(x,y) fputc_unlocked (x,y)
76# else
77# define fputc_unlocked(x,y) fputc (x,y)
59# endif 78# endif
60# if HAVE_DECL_FPUTS_UNLOCKED 79# if HAVE_DECL_FPUTS_UNLOCKED
61# undef fputs 80# undef fputs
62# define fputs(x,y) fputs_unlocked (x,y) 81# define fputs(x,y) fputs_unlocked (x,y)
82# else
83# define fputs_unlocked(x,y) fputs (x,y)
63# endif 84# endif
64# if HAVE_DECL_FREAD_UNLOCKED 85# if HAVE_DECL_FREAD_UNLOCKED
65# undef fread 86# undef fread
66# define fread(w,x,y,z) fread_unlocked (w,x,y,z) 87# define fread(w,x,y,z) fread_unlocked (w,x,y,z)
88# else
89# define fread_unlocked(w,x,y,z) fread (w,x,y,z)
67# endif 90# endif
68# if HAVE_DECL_FWRITE_UNLOCKED 91# if HAVE_DECL_FWRITE_UNLOCKED
69# undef fwrite 92# undef fwrite
70# define fwrite(w,x,y,z) fwrite_unlocked (w,x,y,z) 93# define fwrite(w,x,y,z) fwrite_unlocked (w,x,y,z)
94# else
95# define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z)
71# endif 96# endif
72# if HAVE_DECL_GETC_UNLOCKED 97# if HAVE_DECL_GETC_UNLOCKED
73# undef getc 98# undef getc
74# define getc(x) getc_unlocked (x) 99# define getc(x) getc_unlocked (x)
100# else
101# define getc_unlocked(x) getc (x)
75# endif 102# endif
76# if HAVE_DECL_GETCHAR_UNLOCKED 103# if HAVE_DECL_GETCHAR_UNLOCKED
77# undef getchar 104# undef getchar
78# define getchar() getchar_unlocked () 105# define getchar() getchar_unlocked ()
106# else
107# define getchar_unlocked() getchar ()
79# endif 108# endif
80# if HAVE_DECL_PUTC_UNLOCKED 109# if HAVE_DECL_PUTC_UNLOCKED
81# undef putc 110# undef putc
82# define putc(x,y) putc_unlocked (x,y) 111# define putc(x,y) putc_unlocked (x,y)
112# else
113# define putc_unlocked(x,y) putc (x,y)
83# endif 114# endif
84# if HAVE_DECL_PUTCHAR_UNLOCKED 115# if HAVE_DECL_PUTCHAR_UNLOCKED
85# undef putchar 116# undef putchar
86# define putchar(x) putchar_unlocked (x) 117# define putchar(x) putchar_unlocked (x)
118# else
119# define putchar_unlocked(x) putchar (x)
87# endif 120# endif
88 121
122# undef flockfile
123# define flockfile(x) ((void) 0)
124
125# undef ftrylockfile
126# define ftrylockfile(x) 0
127
128# undef funlockfile
129# define funlockfile(x) ((void) 0)
130
89# endif /* USE_UNLOCKED_IO */ 131# endif /* USE_UNLOCKED_IO */
90#endif /* UNLOCKED_IO_H */ 132#endif /* UNLOCKED_IO_H */
diff --git a/lib/unlocked-io.m4 b/lib/unlocked-io.m4
new file mode 100644
index 0000000..f8e98f1
--- /dev/null
+++ b/lib/unlocked-io.m4
@@ -0,0 +1,22 @@
1#serial 8 -*- autoconf -*-
2
3dnl From Jim Meyering.
4dnl
5dnl See if the glibc *_unlocked I/O macros or functions are available.
6dnl Use only those *_unlocked macros or functions that are declared
7dnl (because some of them were declared in Solaris 2.5.1 but were removed
8dnl in Solaris 2.6, whereas we want binaries built on Solaris 2.5.1 to run
9dnl on Solaris 2.6).
10
11AC_DEFUN([jm_FUNC_GLIBC_UNLOCKED_IO],
12[
13 dnl Persuade glibc and Solaris <stdio.h> to declare
14 dnl fgets_unlocked(), fputs_unlocked() etc.
15 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
16
17 AC_CHECK_DECLS_ONCE(
18 [clearerr_unlocked feof_unlocked ferror_unlocked
19 fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked
20 fread_unlocked fwrite_unlocked getc_unlocked
21 getchar_unlocked putc_unlocked putchar_unlocked])
22])
diff --git a/lib/xalloc.h b/lib/xalloc.h
index 098a6c2..4b65858 100644
--- a/lib/xalloc.h
+++ b/lib/xalloc.h
@@ -1,5 +1,7 @@
1/* xalloc.h -- malloc with out-of-memory checking 1/* xalloc.h -- malloc with out-of-memory checking
2 Copyright (C) 1990-1998, 1999, 2000 Free Software Foundation, Inc. 2
3 Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4 1999, 2000, 2003 Free Software Foundation, Inc.
3 5
4 This program is free software; you can redistribute it and/or modify 6 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
@@ -18,13 +20,7 @@
18#ifndef XALLOC_H_ 20#ifndef XALLOC_H_
19# define XALLOC_H_ 21# define XALLOC_H_
20 22
21# ifndef PARAMS 23# include <stddef.h>
22# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
23# define PARAMS(Args) Args
24# else
25# define PARAMS(Args) ()
26# endif
27# endif
28 24
29# ifndef __attribute__ 25# ifndef __attribute__
30# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ 26# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
@@ -36,14 +32,9 @@
36# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) 32# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
37# endif 33# endif
38 34
39/* Exit value when the requested amount of memory is not available.
40 It is initialized to EXIT_FAILURE, but the caller may set it to
41 some other value. */
42extern int xalloc_exit_failure;
43
44/* If this pointer is non-zero, run the specified function upon each 35/* If this pointer is non-zero, run the specified function upon each
45 allocation failure. It is initialized to zero. */ 36 allocation failure. It is initialized to zero. */
46extern void (*xalloc_fail_func) PARAMS ((void)); 37extern void (*xalloc_fail_func) (void);
47 38
48/* If XALLOC_FAIL_FUNC is undefined or a function that returns, this 39/* If XALLOC_FAIL_FUNC is undefined or a function that returns, this
49 message is output. It is translated via gettext. 40 message is output. It is translated via gettext.
@@ -51,37 +42,46 @@ extern void (*xalloc_fail_func) PARAMS ((void));
51extern char const xalloc_msg_memory_exhausted[]; 42extern char const xalloc_msg_memory_exhausted[];
52 43
53/* This function is always triggered when memory is exhausted. It is 44/* This function is always triggered when memory is exhausted. It is
54 in charge of honoring the three previous items. This is the 45 in charge of honoring the two previous items. It exits with status
46 exit_failure (defined in exitfail.h). This is the
55 function to call when one wants the program to die because of a 47 function to call when one wants the program to die because of a
56 memory allocation failure. */ 48 memory allocation failure. */
57extern void xalloc_die PARAMS ((void)) ATTRIBUTE_NORETURN; 49extern void xalloc_die (void) ATTRIBUTE_NORETURN;
58 50
59void *xmalloc PARAMS ((size_t n)); 51void *xmalloc (size_t s);
60void *xcalloc PARAMS ((size_t n, size_t s)); 52void *xnmalloc (size_t n, size_t s);
61void *xrealloc PARAMS ((void *p, size_t n)); 53void *xzalloc (size_t s);
62char *xstrdup PARAMS ((const char *str)); 54void *xcalloc (size_t n, size_t s);
63 55void *xrealloc (void *p, size_t s);
64# define XMALLOC(Type, N_items) ((Type *) xmalloc (sizeof (Type) * (N_items))) 56void *xnrealloc (void *p, size_t n, size_t s);
65# define XCALLOC(Type, N_items) ((Type *) xcalloc (sizeof (Type), (N_items))) 57void *x2realloc (void *p, size_t *pn);
66# define XREALLOC(Ptr, Type, N_items) \ 58void *x2nrealloc (void *p, size_t *pn, size_t s);
67 ((Type *) xrealloc ((void *) (Ptr), sizeof (Type) * (N_items))) 59void *xclone (void const *p, size_t s);
68 60char *xstrdup (const char *str);
69/* Declare and alloc memory for VAR of type TYPE. */ 61
70# define NEW(Type, Var) Type *(Var) = XMALLOC (Type, 1) 62/* Return 1 if an array of N objects, each of size S, cannot exist due
71 63 to size arithmetic overflow. S must be positive and N must be
72/* Free VAR only if non NULL. */ 64 nonnegative. This is a macro, not an inline function, so that it
73# define XFREE(Var) \ 65 works correctly even when SIZE_MAX < N.
74 do { \ 66
75 if (Var) \ 67 By gnulib convention, SIZE_MAX represents overflow in size
76 free (Var); \ 68 calculations, so the conservative dividend to use here is
77 } while (0) 69 SIZE_MAX - 1, since SIZE_MAX might represent an overflowed value.
78 70 However, malloc (SIZE_MAX) fails on all known hosts where
79/* Return a pointer to a malloc'ed copy of the array SRC of NUM elements. */ 71 sizeof (ptrdiff_t) <= sizeof (size_t), so do not bother to test for
80# define CCLONE(Src, Num) \ 72 exactly-SIZE_MAX allocations on such hosts; this avoids a test and
81 (memcpy (xmalloc (sizeof (*Src) * (Num)), (Src), sizeof (*Src) * (Num))) 73 branch when S is known to be 1. */
82 74# define xalloc_oversized(n, s) \
83/* Return a malloc'ed copy of SRC. */ 75 ((size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) < (n))
84# define CLONE(Src) CCLONE (Src, 1) 76
85 77/* These macros are deprecated; they will go away soon, and are retained
78 temporarily only to ease conversion to the functions described above. */
79# define CCLONE(p, n) xclone (p, (n) * sizeof *(p))
80# define CLONE(p) xclone (p, sizeof *(p))
81# define NEW(type, var) type *var = xmalloc (sizeof (type))
82# define XCALLOC(type, n) xcalloc (n, sizeof (type))
83# define XMALLOC(type, n) xnmalloc (n, sizeof (type))
84# define XREALLOC(p, type, n) xnrealloc (p, n, sizeof (type))
85# define XFREE(p) free (p)
86 86
87#endif /* !XALLOC_H_ */ 87#endif /* !XALLOC_H_ */
diff --git a/lib/xalloc.m4 b/lib/xalloc.m4
new file mode 100644
index 0000000..dec8417
--- /dev/null
+++ b/lib/xalloc.m4
@@ -0,0 +1,32 @@
1# xalloc.m4 serial 8
2dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3dnl This file is free software, distributed under the terms of the GNU
4dnl General Public License. As a special exception to the GNU General
5dnl Public License, this file may be distributed as part of a program
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
8
9AC_DEFUN([gl_XALLOC],
10[
11 gl_PREREQ_XALLOC
12 gl_PREREQ_XMALLOC
13 gl_PREREQ_XSTRDUP
14])
15
16# Prerequisites of lib/xalloc.h.
17AC_DEFUN([gl_PREREQ_XALLOC], [
18 :
19])
20
21# Prerequisites of lib/xmalloc.c.
22AC_DEFUN([gl_PREREQ_XMALLOC], [
23 AC_REQUIRE([AC_C_INLINE])
24 AC_REQUIRE([jm_FUNC_MALLOC])
25 AC_REQUIRE([jm_FUNC_REALLOC])
26 :
27])
28
29# Prerequisites of lib/xstrdup.c.
30AC_DEFUN([gl_PREREQ_XSTRDUP], [
31 :
32])
diff --git a/lib/xmalloc.c b/lib/xmalloc.c
index 3affee7..181006b 100644
--- a/lib/xmalloc.c
+++ b/lib/xmalloc.c
@@ -1,5 +1,7 @@
1/* xmalloc.c -- malloc with out of memory checking 1/* xmalloc.c -- malloc with out of memory checking
2 Copyright (C) 1990-1999, 2000, 2002 Free Software Foundation, Inc. 2
3 Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2003,
4 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
3 5
4 This program is free software; you can redistribute it and/or modify 6 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
@@ -19,30 +21,22 @@
19# include <config.h> 21# include <config.h>
20#endif 22#endif
21 23
22#include <sys/types.h> 24#include "xalloc.h"
23 25
24#if STDC_HEADERS 26#include <stdlib.h>
25# include <stdlib.h> 27#include <string.h>
26#else
27void *calloc ();
28void *malloc ();
29void *realloc ();
30void free ();
31#endif
32 28
33#include "gettext.h" 29#include "gettext.h"
34#define _(msgid) gettext (msgid) 30#define _(msgid) gettext (msgid)
35#define N_(msgid) msgid 31#define N_(msgid) msgid
36 32
37#include "error.h" 33#include "error.h"
38#include "xalloc.h" 34#include "exitfail.h"
39 35
40#ifndef EXIT_FAILURE 36#ifndef SIZE_MAX
41# define EXIT_FAILURE 1 37# define SIZE_MAX ((size_t) -1)
42#endif 38#endif
43 39
44/* The following tests require AC_PREREQ(2.54). */
45
46#ifndef HAVE_MALLOC 40#ifndef HAVE_MALLOC
47"you must run the autoconf test for a GNU libc compatible malloc" 41"you must run the autoconf test for a GNU libc compatible malloc"
48#endif 42#endif
@@ -51,12 +45,8 @@ void free ();
51"you must run the autoconf test for a GNU libc compatible realloc" 45"you must run the autoconf test for a GNU libc compatible realloc"
52#endif 46#endif
53 47
54/* Exit value when the requested amount of memory is not available.
55 The caller may set it to some other value. */
56int xalloc_exit_failure = EXIT_FAILURE;
57
58/* If non NULL, call this function when memory is exhausted. */ 48/* If non NULL, call this function when memory is exhausted. */
59void (*xalloc_fail_func) PARAMS ((void)) = 0; 49void (*xalloc_fail_func) (void) = 0;
60 50
61/* If XALLOC_FAIL_FUNC is NULL, or does return, display this message 51/* If XALLOC_FAIL_FUNC is NULL, or does return, display this message
62 before exiting when memory is exhausted. Goes through gettext. */ 52 before exiting when memory is exhausted. Goes through gettext. */
@@ -67,11 +57,29 @@ xalloc_die (void)
67{ 57{
68 if (xalloc_fail_func) 58 if (xalloc_fail_func)
69 (*xalloc_fail_func) (); 59 (*xalloc_fail_func) ();
70 error (xalloc_exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted)); 60 error (exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted));
71 /* The `noreturn' cannot be given to error, since it may return if 61 /* The `noreturn' cannot be given to error, since it may return if
72 its first argument is 0. To help compilers understand the 62 its first argument is 0. To help compilers understand the
73 xalloc_die does terminate, call exit. */ 63 xalloc_die does terminate, call abort. */
74 exit (EXIT_FAILURE); 64 abort ();
65}
66
67/* Allocate an array of N objects, each with S bytes of memory,
68 dynamically, with error checking. S must be nonzero. */
69
70static inline void *
71xnmalloc_inline (size_t n, size_t s)
72{
73 void *p;
74 if (xalloc_oversized (n, s) || ! (p = malloc (n * s)))
75 xalloc_die ();
76 return p;
77}
78
79void *
80xnmalloc (size_t n, size_t s)
81{
82 return xnmalloc_inline (n, s);
75} 83}
76 84
77/* Allocate N bytes of memory dynamically, with error checking. */ 85/* Allocate N bytes of memory dynamically, with error checking. */
@@ -79,35 +87,169 @@ xalloc_die (void)
79void * 87void *
80xmalloc (size_t n) 88xmalloc (size_t n)
81{ 89{
82 void *p; 90 return xnmalloc_inline (n, 1);
91}
92
93/* Change the size of an allocated block of memory P to an array of N
94 objects each of S bytes, with error checking. S must be nonzero. */
83 95
84 p = malloc (n); 96static inline void *
85 if (p == 0) 97xnrealloc_inline (void *p, size_t n, size_t s)
98{
99 if (xalloc_oversized (n, s) || ! (p = realloc (p, n * s)))
86 xalloc_die (); 100 xalloc_die ();
87 return p; 101 return p;
88} 102}
89 103
104void *
105xnrealloc (void *p, size_t n, size_t s)
106{
107 return xnrealloc_inline (p, n, s);
108}
109
90/* Change the size of an allocated block of memory P to N bytes, 110/* Change the size of an allocated block of memory P to N bytes,
91 with error checking. */ 111 with error checking. */
92 112
93void * 113void *
94xrealloc (void *p, size_t n) 114xrealloc (void *p, size_t n)
95{ 115{
96 p = realloc (p, n); 116 return xnrealloc_inline (p, n, 1);
97 if (p == 0)
98 xalloc_die ();
99 return p;
100} 117}
101 118
102/* Allocate memory for N elements of S bytes, with error checking. */ 119
120/* If P is null, allocate a block of at least *PN such objects;
121 otherwise, reallocate P so that it contains more than *PN objects
122 each of S bytes. *PN must be nonzero unless P is null, and S must
123 be nonzero. Set *PN to the new number of objects, and return the
124 pointer to the new block. *PN is never set to zero, and the
125 returned pointer is never null.
126
127 Repeated reallocations are guaranteed to make progress, either by
128 allocating an initial block with a nonzero size, or by allocating a
129 larger block.
130
131 In the following implementation, nonzero sizes are doubled so that
132 repeated reallocations have O(N log N) overall cost rather than
133 O(N**2) cost, but the specification for this function does not
134 guarantee that sizes are doubled.
135
136 Here is an example of use:
137
138 int *p = NULL;
139 size_t used = 0;
140 size_t allocated = 0;
141
142 void
143 append_int (int value)
144 {
145 if (used == allocated)
146 p = x2nrealloc (p, &allocated, sizeof *p);
147 p[used++] = value;
148 }
149
150 This causes x2nrealloc to allocate a block of some nonzero size the
151 first time it is called.
152
153 To have finer-grained control over the initial size, set *PN to a
154 nonzero value before calling this function with P == NULL. For
155 example:
156
157 int *p = NULL;
158 size_t used = 0;
159 size_t allocated = 0;
160 size_t allocated1 = 1000;
161
162 void
163 append_int (int value)
164 {
165 if (used == allocated)
166 {
167 p = x2nrealloc (p, &allocated1, sizeof *p);
168 allocated = allocated1;
169 }
170 p[used++] = value;
171 }
172
173 */
174
175static inline void *
176x2nrealloc_inline (void *p, size_t *pn, size_t s)
177{
178 size_t n = *pn;
179
180 if (! p)
181 {
182 if (! n)
183 {
184 /* The approximate size to use for initial small allocation
185 requests, when the invoking code specifies an old size of
186 zero. 64 bytes is the largest "small" request for the
187 GNU C library malloc. */
188 enum { DEFAULT_MXFAST = 64 };
189
190 n = DEFAULT_MXFAST / s;
191 n += !n;
192 }
193 }
194 else
195 {
196 if (SIZE_MAX / 2 / s < n)
197 xalloc_die ();
198 n *= 2;
199 }
200
201 *pn = n;
202 return xrealloc (p, n * s);
203}
204
205void *
206x2nrealloc (void *p, size_t *pn, size_t s)
207{
208 return x2nrealloc_inline (p, pn, s);
209}
210
211/* If P is null, allocate a block of at least *PN bytes; otherwise,
212 reallocate P so that it contains more than *PN bytes. *PN must be
213 nonzero unless P is null. Set *PN to the new block's size, and
214 return the pointer to the new block. *PN is never set to zero, and
215 the returned pointer is never null. */
216
217void *
218x2realloc (void *p, size_t *pn)
219{
220 return x2nrealloc_inline (p, pn, 1);
221}
222
223/* Allocate S bytes of zeroed memory dynamically, with error checking.
224 There's no need for xnzalloc (N, S), since it would be equivalent
225 to xcalloc (N, S). */
226
227void *
228xzalloc (size_t s)
229{
230 return memset (xmalloc (s), 0, s);
231}
232
233/* Allocate zeroed memory for N elements of S bytes, with error
234 checking. S must be nonzero. */
103 235
104void * 236void *
105xcalloc (size_t n, size_t s) 237xcalloc (size_t n, size_t s)
106{ 238{
107 void *p; 239 void *p;
108 240 /* Test for overflow, since some calloc implementations don't have
109 p = calloc (n, s); 241 proper overflow checks. */
110 if (p == 0) 242 if (xalloc_oversized (n, s) || ! (p = calloc (n, s)))
111 xalloc_die (); 243 xalloc_die ();
112 return p; 244 return p;
113} 245}
246
247/* Clone an object P of size S, with error checking. There's no need
248 for xnclone (P, N, S), since xclone (P, N * S) works without any
249 need for an arithmetic overflow check. */
250
251void *
252xclone (void const *p, size_t s)
253{
254 return memcpy (xmalloc (s), p, s);
255}
diff --git a/lib/xstrdup.c b/lib/xstrdup.c
new file mode 100644
index 0000000..58f18be
--- /dev/null
+++ b/lib/xstrdup.c
@@ -0,0 +1,33 @@
1/* xstrdup.c -- copy a string with out of memory checking
2 Copyright (C) 1990, 1996, 1998, 2001, 2003 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17
18#if HAVE_CONFIG_H
19# include <config.h>
20#endif
21
22/* Specification. */
23#include "xalloc.h"
24
25#include <string.h>
26
27/* Return a newly allocated copy of STRING. */
28
29char *
30xstrdup (const char *string)
31{
32 return xclone (string, strlen (string) + 1);
33}
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 3beb568..7841c14 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -17,6 +17,7 @@
17*****************************************************************************/ 17*****************************************************************************/
18 18
19const char *progname = "check_disk"; 19const char *progname = "check_disk";
20const char *program_name = "check_disk"; // Required for coreutils libs
20const char *revision = "$Revision$"; 21const char *revision = "$Revision$";
21const char *copyright = "1999-2003"; 22const char *copyright = "1999-2003";
22const char *email = "nagiosplug-devel@lists.sourceforge.net"; 23const char *email = "nagiosplug-devel@lists.sourceforge.net";
diff --git a/po/de.po b/po/de.po
index 8b89246..fe2e671 100644
--- a/po/de.po
+++ b/po/de.po
@@ -7,7 +7,7 @@
7msgid "" 7msgid ""
8msgstr "" 8msgstr ""
9"Project-Id-Version: nagios-plugins 1.3.99\n" 9"Project-Id-Version: nagios-plugins 1.3.99\n"
10"POT-Creation-Date: 2003-10-29 21:39-0500\n" 10"POT-Creation-Date: 2004-11-12 00:44+0000\n"
11"PO-Revision-Date: 2003-07-20 22:24-0400\n" 11"PO-Revision-Date: 2003-07-20 22:24-0400\n"
12"Last-Translator: Michael Wirtgen <Michael.Wirtgen@miwi-dv.com>\n" 12"Last-Translator: Michael Wirtgen <Michael.Wirtgen@miwi-dv.com>\n"
13"Language-Team: de <LL@li.org>\n" 13"Language-Team: de <LL@li.org>\n"
@@ -16,104 +16,110 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17"Report-Msgid-Bugs-To: \n" 17"Report-Msgid-Bugs-To: \n"
18 18
19#: plugins/check_by_ssh.c:69 plugins/check_dig.c:68 plugins/check_disk.c:164 19#: plugins/check_by_ssh.c:70 plugins/check_dig.c:70 plugins/check_disk.c:165
20#: plugins/check_fping.c:69 plugins/check_nagios.c:64 plugins/check_nt.c:103 20#: plugins/check_fping.c:69 plugins/check_nagios.c:67 plugins/check_nt.c:112
21#: plugins/check_nwstat.c:125 plugins/check_radius.c:111 21#: plugins/check_nwstat.c:126 plugins/check_radius.c:112
22#: plugins/check_ssh.c:56 plugins/check_tcp.c:211 plugins/check_users.c:49 22#: plugins/check_ssh.c:56 plugins/check_tcp.c:212 plugins/check_users.c:52
23#: plugins/negate.c:83 23#: plugins/negate.c:83
24msgid "Could not parse arguments\n" 24msgid "Could not parse arguments\n"
25msgstr "" 25msgstr ""
26 26
27#: plugins/check_by_ssh.c:74 plugins/check_dns.c:91 plugins/check_nagios.c:68 27#: plugins/check_by_ssh.c:75 plugins/check_dns.c:69 plugins/check_nagios.c:71
28#: plugins/check_pgsql.c:140 plugins/check_ping.c:84 plugins/negate.c:87 28#: plugins/check_pgsql.c:140 plugins/check_ping.c:86 plugins/negate.c:87
29msgid "Cannot catch SIGALRM" 29msgid "Cannot catch SIGALRM"
30msgstr "" 30msgstr ""
31 31
32#: plugins/check_by_ssh.c:88 32#: plugins/check_by_ssh.c:89
33#, c-format 33#, c-format
34msgid "Unable to open pipe: %s" 34msgid "Unable to open pipe: %s"
35msgstr "" 35msgstr ""
36 36
37#: plugins/check_by_ssh.c:96 plugins/check_dig.c:89 plugins/check_dns.c:117 37#: plugins/check_by_ssh.c:97 plugins/check_dig.c:97 plugins/check_dns.c:96
38#: plugins/check_fping.c:89 plugins/check_hpjd.c:118 plugins/check_load.c:115 38#: plugins/check_fping.c:89 plugins/check_hpjd.c:118 plugins/check_load.c:115
39#: plugins/check_nagios.c:101 plugins/check_procs.c:129 39#: plugins/check_nagios.c:107 plugins/check_procs.c:133
40#: plugins/check_snmp.c:179 plugins/check_swap.c:137 plugins/check_users.c:60 40#: plugins/check_snmp.c:179 plugins/check_swap.c:157 plugins/check_users.c:63
41#: plugins/negate.c:97 plugins/urlize.c:93 41#: plugins/negate.c:97 plugins/urlize.c:93
42#, c-format 42#, c-format
43msgid "Could not open stderr for %s\n" 43msgid "Could not open stderr for %s\n"
44msgstr "" 44msgstr ""
45 45
46#: plugins/check_by_ssh.c:123 46#: plugins/check_by_ssh.c:129
47#, c-format 47#, c-format
48msgid "SSH WARNING: could not open %s\n" 48msgid "SSH WARNING: could not open %s\n"
49msgstr "" 49msgstr ""
50 50
51#: plugins/check_by_ssh.c:142 51#: plugins/check_by_ssh.c:148
52#, c-format 52#, c-format
53msgid "[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n" 53msgid "[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n"
54msgstr "" 54msgstr ""
55 55
56#: plugins/check_by_ssh.c:228 56#: plugins/check_by_ssh.c:235
57msgid "timeout interval must be an integer" 57msgid "timeout interval must be an integer"
58msgstr "" 58msgstr ""
59 59
60#: plugins/check_by_ssh.c:234 60#: plugins/check_by_ssh.c:241
61msgid "invalid host name" 61msgid "invalid host name"
62msgstr "" 62msgstr ""
63 63
64#: plugins/check_by_ssh.c:239 64#: plugins/check_by_ssh.c:246
65msgid "port must be an integer" 65msgid "port must be an integer"
66msgstr "" 66msgstr ""
67 67
68#: plugins/check_by_ssh.c:284 68#: plugins/check_by_ssh.c:288
69msgid "skip lines must be an integer"
70msgstr ""
71
72#: plugins/check_by_ssh.c:298
69#, c-format 73#, c-format
70msgid "%s: You must provide a host name\n" 74msgid "%s: You must provide a host name\n"
71msgstr "" 75msgstr ""
72 76
73#: plugins/check_by_ssh.c:286 77#: plugins/check_by_ssh.c:300
74#, c-format 78#, c-format
75msgid "%s: Invalid host name %s\n" 79msgid "%s: Invalid host name %s\n"
76msgstr "" 80msgstr ""
77 81
78#: plugins/check_by_ssh.c:302 82#: plugins/check_by_ssh.c:316
79msgid "No remotecmd\n" 83msgid "No remotecmd\n"
80msgstr "" 84msgstr ""
81 85
82#: plugins/check_by_ssh.c:320 86#: plugins/check_by_ssh.c:334
83#, c-format 87#, c-format
84msgid "" 88msgid ""
85"%s: In passive mode, you must provide a service name for each command.\n" 89"%s: In passive mode, you must provide a service name for each command.\n"
86msgstr "" 90msgstr ""
87 91
88#: plugins/check_by_ssh.c:323 92#: plugins/check_by_ssh.c:337
89#, c-format 93#, c-format
90msgid "" 94msgid ""
91"%s: In passive mode, you must provide the host short name from the nagios " 95"%s: In passive mode, you must provide the host short name from the nagios "
92"configs.\n" 96"configs.\n"
93msgstr "" 97msgstr ""
94 98
95#: plugins/check_by_ssh.c:338 99#: plugins/check_by_ssh.c:352
96msgid "" 100msgid ""
97"Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" 101"Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n"
98msgstr "" 102msgstr ""
99 103
100#: plugins/check_by_ssh.c:341 104#: plugins/check_by_ssh.c:355
101msgid "" 105msgid ""
102"This plugin uses SSH to execute commands on a remote host\n" 106"This plugin uses SSH to execute commands on a remote host\n"
103"\n" 107"\n"
104msgstr "" 108msgstr ""
105 109
106#: plugins/check_by_ssh.c:351 110#: plugins/check_by_ssh.c:365
107msgid "" 111msgid ""
108" -1, --proto1\n" 112" -1, --proto1\n"
109" tell ssh to use Protocol 1\n" 113" tell ssh to use Protocol 1\n"
110" -2, --proto2\n" 114" -2, --proto2\n"
111" tell ssh to use Protocol 2\n" 115" tell ssh to use Protocol 2\n"
116" -S, --skiplines=n\n"
117" Ignore first n lines on STDERR (to suppress a logon banner)\n"
112" -f\n" 118" -f\n"
113" tells ssh to fork rather than create a tty\n" 119" tells ssh to fork rather than create a tty\n"
114msgstr "" 120msgstr ""
115 121
116#: plugins/check_by_ssh.c:359 122#: plugins/check_by_ssh.c:375
117msgid "" 123msgid ""
118" -C, --command='COMMAND STRING'\n" 124" -C, --command='COMMAND STRING'\n"
119" command to execute on the remote machine\n" 125" command to execute on the remote machine\n"
@@ -129,7 +135,7 @@ msgid ""
129" short name of host in nagios configuration [optional]\n" 135" short name of host in nagios configuration [optional]\n"
130msgstr "" 136msgstr ""
131 137
132#: plugins/check_by_ssh.c:377 138#: plugins/check_by_ssh.c:393
133msgid "" 139msgid ""
134"\n" 140"\n"
135"The most common mode of use is to refer to a local identity file with\n" 141"The most common mode of use is to refer to a local identity file with\n"
@@ -141,7 +147,7 @@ msgid ""
141"execute additional commands as proxy\n" 147"execute additional commands as proxy\n"
142msgstr "" 148msgstr ""
143 149
144#: plugins/check_by_ssh.c:386 150#: plugins/check_by_ssh.c:402
145msgid "" 151msgid ""
146"\n" 152"\n"
147"To use passive mode, provide multiple '-C' options, and provide\n" 153"To use passive mode, provide multiple '-C' options, and provide\n"
@@ -149,7 +155,18 @@ msgid ""
149"options)\n" 155"options)\n"
150msgstr "" 156msgstr ""
151 157
152#: plugins/check_by_ssh.c:401 158#: plugins/check_by_ssh.c:407
159msgid ""
160"\n"
161"$ check_by_ssh -H localhost -n lh -s c1:c2:c3 \\\n"
162" -C uptime -C uptime -C uptime -O /tmp/foo\n"
163"$ cat /tmp/foo\n"
164"[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c1;0; up 2 days...\n"
165"[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c2;0; up 2 days...\n"
166"[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c3;0; up 2 days...\n"
167msgstr ""
168
169#: plugins/check_by_ssh.c:425
153#, c-format 170#, c-format
154msgid "" 171msgid ""
155"\n" 172"\n"
@@ -157,99 +174,105 @@ msgid ""
157" -C <command> [-n name] [-s servicelist] [-O outputfile] [-p port]\n" 174" -C <command> [-n name] [-s servicelist] [-O outputfile] [-p port]\n"
158msgstr "" 175msgstr ""
159 176
160#: plugins/check_dig.c:65 177#: plugins/check_dig.c:67
161msgid "Cannot catch SIGALRM\n" 178msgid "Cannot catch SIGALRM\n"
162msgstr "" 179msgstr ""
163 180
164#: plugins/check_dig.c:83 plugins/check_dns.c:111 plugins/check_hpjd.c:112 181#: plugins/check_dig.c:91 plugins/check_dns.c:90 plugins/check_hpjd.c:112
165#: plugins/check_nagios.c:95 plugins/check_procs.c:123 182#: plugins/check_nagios.c:101 plugins/check_procs.c:127
166#: plugins/check_snmp.c:173 plugins/check_swap.c:131 plugins/check_users.c:54 183#: plugins/check_snmp.c:173 plugins/check_swap.c:151 plugins/check_users.c:57
167#: plugins/negate.c:93 plugins/urlize.c:87 184#: plugins/negate.c:93 plugins/urlize.c:87
168#, c-format 185#, c-format
169msgid "Could not open pipe: %s\n" 186msgid "Could not open pipe: %s\n"
170msgstr "" 187msgstr ""
171 188
172#: plugins/check_dig.c:108 189#: plugins/check_dig.c:128
173msgid "Server not found in ANSWER SECTION" 190msgid "Server not found in ANSWER SECTION"
174msgstr "" 191msgstr ""
175 192
176#: plugins/check_dig.c:118 193#: plugins/check_dig.c:137
177msgid "No ANSWER SECTION found" 194msgid "No ANSWER SECTION found"
178msgstr "" 195msgstr ""
179 196
180#: plugins/check_dig.c:135 197#: plugins/check_dig.c:154
181msgid "dig returned error status" 198msgid "dig returned error status"
182msgstr "" 199msgstr ""
183 200
184#: plugins/check_dig.c:142 plugins/check_dns.c:221 plugins/check_dns.c:224 201#: plugins/check_dig.c:161 plugins/check_dns.c:205 plugins/check_dns.c:208
185#: plugins/check_dns.c:227 202#: plugins/check_dns.c:211
186msgid " Probably a non-existent host/domain" 203msgid " Probably a non-existent host/domain"
187msgstr "" 204msgstr ""
188 205
189#: plugins/check_dig.c:150 206#: plugins/check_dig.c:169
190#, c-format 207#, c-format
191msgid "%.3f seconds response time (%s)" 208msgid "%.3f seconds response time (%s)"
192msgstr "" 209msgstr ""
193 210
194#: plugins/check_dig.c:198 plugins/check_pgsql.c:210 plugins/check_ping.c:199 211#: plugins/check_dig.c:219 plugins/check_pgsql.c:209 plugins/check_ping.c:201
195#: plugins/check_time.c:206 plugins/negate.c:172 plugins/urlize.c:72 212#: plugins/check_time.c:220 plugins/negate.c:172 plugins/urlize.c:72
196msgid "Unknown argument" 213msgid "Unknown argument"
197msgstr "" 214msgstr ""
198 215
199#: plugins/check_dig.c:210 plugins/check_dig.c:265 plugins/check_hpjd.c:347 216#: plugins/check_dig.c:231 plugins/check_dig.c:288 plugins/check_hpjd.c:347
200#: plugins/check_real.c:368 plugins/check_smtp.c:314 217#: plugins/check_real.c:368 plugins/check_smtp.c:386
201msgid "Invalid host name" 218msgid "Invalid host name"
202msgstr "" 219msgstr ""
203 220
204#: plugins/check_dig.c:218 221#: plugins/check_dig.c:239
205msgid "Server port must be a nonnegative integer" 222msgid "Server port must be a nonnegative integer"
206msgstr "" 223msgstr ""
207 224
208#: plugins/check_dig.c:228 225#: plugins/check_dig.c:250
209msgid "Input causes overflow in warning interval"
210msgstr ""
211
212#: plugins/check_dig.c:231
213msgid "Warning interval must be a nonnegative integer" 226msgid "Warning interval must be a nonnegative integer"
214msgstr "" 227msgstr ""
215 228
216#: plugins/check_dig.c:238 229#: plugins/check_dig.c:258
217msgid "Input causes overflow in critical interval"
218msgstr ""
219
220#: plugins/check_dig.c:241
221msgid "Critical interval must be a nonnegative integer" 230msgid "Critical interval must be a nonnegative integer"
222msgstr "" 231msgstr ""
223 232
224#: plugins/check_dig.c:249 233#: plugins/check_dig.c:266
225msgid "Time interval must be a nonnegative integer" 234msgid "Time interval must be a nonnegative integer"
226msgstr "" 235msgstr ""
227 236
228#: plugins/check_dig.c:301 plugins/urlize.c:132 237#: plugins/check_dig.c:324 plugins/urlize.c:132
229msgid "" 238msgid ""
230"Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" 239"Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n"
231msgstr "" 240msgstr ""
232 241
233#: plugins/check_dig.c:304 242#: plugins/check_dig.c:327
234msgid "" 243msgid ""
235"Test the DNS service on the specified host using dig\n" 244"Test the DNS service on the specified host using dig\n"
236"\n" 245"\n"
237msgstr "" 246msgstr ""
238 247
239#: plugins/check_dig.c:312 248#: plugins/check_dig.c:335
240msgid "" 249msgid ""
241" -l, --lookup=STRING\n" 250" -l, --lookup=STRING\n"
242" machine name to lookup\n" 251" machine name to lookup\n"
243msgstr "" 252msgstr ""
244 253
245#: plugins/check_dig.c:331 254#: plugins/check_dig.c:339
255msgid ""
256" -T, --record_type=STRING\n"
257" record type to lookup (default: A)\n"
258msgstr ""
259
260#: plugins/check_dig.c:343
261msgid ""
262" -a, --expected_address=STRING\n"
263" an address expected to be in the asnwer section.\n"
264" if not set, uses whatever was in -l\n"
265msgstr ""
266
267#: plugins/check_dig.c:363
246#, c-format 268#, c-format
247msgid "" 269msgid ""
248"Usage: %s -H host -l lookup [-p <server port>] [-w <warning interval>]\n" 270"Usage: %s -H host -l lookup [-p <server port>] [-T <query type>]\n"
249" [-c <critical interval>] [-t <timeout>] [-v]\n" 271" [-w <warning interval>] [-c <critical interval>] [-t <timeout>]\n"
272" [-a <expected answer address>] [-v]\n"
250msgstr "" 273msgstr ""
251 274
252#: plugins/check_disk.c:212 275#: plugins/check_disk.c:213
253#, c-format 276#, c-format
254msgid "" 277msgid ""
255"%s\n" 278"%s\n"
@@ -257,70 +280,70 @@ msgid ""
257"lu warn%%:%.0f%% crit%%:%.0f%%" 280"lu warn%%:%.0f%% crit%%:%.0f%%"
258msgstr "" 281msgstr ""
259 282
260#: plugins/check_disk.c:230 283#: plugins/check_disk.c:231
261#, c-format 284#, c-format
262msgid "%s [%s not found]" 285msgid "%s [%s not found]"
263msgstr "" 286msgstr ""
264 287
265#: plugins/check_disk.c:306 288#: plugins/check_disk.c:307
266msgid "Timeout Interval must be an integer!\n" 289msgid "Timeout Interval must be an integer!\n"
267msgstr "" 290msgstr ""
268 291
269#: plugins/check_disk.c:323 plugins/check_swap.c:292 292#: plugins/check_disk.c:324 plugins/check_swap.c:391
270msgid "Warning threshold must be integer or percentage!\n" 293msgid "Warning threshold must be integer or percentage!\n"
271msgstr "" 294msgstr ""
272 295
273#: plugins/check_disk.c:340 plugins/check_swap.c:309 296#: plugins/check_disk.c:341 plugins/check_swap.c:408
274msgid "Critical threshold must be integer or percentage!\n" 297msgid "Critical threshold must be integer or percentage!\n"
275msgstr "" 298msgstr ""
276 299
277#: plugins/check_disk.c:361 300#: plugins/check_disk.c:362
278#, c-format 301#, c-format
279msgid "unit type %s not known\n" 302msgid "unit type %s not known\n"
280msgstr "" 303msgstr ""
281 304
282#: plugins/check_disk.c:364 305#: plugins/check_disk.c:365
283#, c-format 306#, c-format
284msgid "failed allocating storage for '%s'\n" 307msgid "failed allocating storage for '%s'\n"
285msgstr "" 308msgstr ""
286 309
287#: plugins/check_disk.c:431 310#: plugins/check_disk.c:440
288msgid "check_disk: unrecognized option\n" 311msgid "check_disk: unrecognized option\n"
289msgstr "" 312msgstr ""
290 313
291#: plugins/check_disk.c:488 314#: plugins/check_disk.c:497
292msgid "INPUT ERROR: No thresholds specified" 315msgid "INPUT ERROR: No thresholds specified"
293msgstr "" 316msgstr ""
294 317
295#: plugins/check_disk.c:494 318#: plugins/check_disk.c:503
296#, c-format 319#, c-format
297msgid "" 320msgid ""
298"INPUT ERROR: C_DFP (%f) should be less than W_DFP (%.1f) and both should be " 321"INPUT ERROR: C_DFP (%f) should be less than W_DFP (%.1f) and both should be "
299"between zero and 100 percent, inclusive" 322"between zero and 100 percent, inclusive"
300msgstr "" 323msgstr ""
301 324
302#: plugins/check_disk.c:501 325#: plugins/check_disk.c:510
303#, c-format 326#, c-format
304msgid "" 327msgid ""
305"INPUT ERROR: C_DF (%lu) should be less than W_DF (%lu) and both should be " 328"INPUT ERROR: C_DF (%lu) should be less than W_DF (%lu) and both should be "
306"greater than zero" 329"greater than zero"
307msgstr "" 330msgstr ""
308 331
309#: plugins/check_disk.c:566 plugins/check_dns.c:406 plugins/check_dummy.c:84 332#: plugins/check_disk.c:575 plugins/check_dns.c:394 plugins/check_dummy.c:89
310#: plugins/check_hpjd.c:381 plugins/check_http.c:1103 plugins/check_mrtg.c:307 333#: plugins/check_hpjd.c:381 plugins/check_http.c:1113 plugins/check_mrtg.c:311
311#: plugins/check_mrtgtraf.c:325 plugins/check_nwstat.c:903 334#: plugins/check_mrtgtraf.c:323 plugins/check_nwstat.c:909
312#: plugins/check_overcr.c:423 plugins/check_tcp.c:596 335#: plugins/check_overcr.c:423 plugins/check_tcp.c:600
313msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n" 336msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"
314msgstr "" 337msgstr ""
315 338
316#: plugins/check_disk.c:569 339#: plugins/check_disk.c:578
317msgid "" 340msgid ""
318"This plugin checks the amount of used disk space on a mounted file system\n" 341"This plugin checks the amount of used disk space on a mounted file system\n"
319"and generates an alert if free space is less than one of the threshold " 342"and generates an alert if free space is less than one of the threshold "
320"values." 343"values."
321msgstr "" 344msgstr ""
322 345
323#: plugins/check_disk.c:577 346#: plugins/check_disk.c:586
324#, c-format 347#, c-format
325msgid "" 348msgid ""
326" -w, --warning=INTEGER\n" 349" -w, --warning=INTEGER\n"
@@ -336,7 +359,7 @@ msgid ""
336" Clear thresholds\n" 359" Clear thresholds\n"
337msgstr "" 360msgstr ""
338 361
339#: plugins/check_disk.c:589 362#: plugins/check_disk.c:598
340msgid "" 363msgid ""
341" -u, --units=STRING\n" 364" -u, --units=STRING\n"
342" Choose bytes, kB, MB, GB, TB (default: MB)\n" 365" Choose bytes, kB, MB, GB, TB (default: MB)\n"
@@ -346,7 +369,7 @@ msgid ""
346" Same as '--units MB'\n" 369" Same as '--units MB'\n"
347msgstr "" 370msgstr ""
348 371
349#: plugins/check_disk.c:597 372#: plugins/check_disk.c:606
350msgid "" 373msgid ""
351" -l, --local\n" 374" -l, --local\n"
352" Only check local filesystems\n" 375" Only check local filesystems\n"
@@ -362,14 +385,14 @@ msgid ""
362" Display only devices/mountpoints with errors\n" 385" Display only devices/mountpoints with errors\n"
363msgstr "" 386msgstr ""
364 387
365#: plugins/check_disk.c:617 388#: plugins/check_disk.c:626
366msgid "" 389msgid ""
367"Examples:\n" 390"Examples:\n"
368" check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /\n" 391" check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /\n"
369" Checks /tmp and /var at 10%,5% and / at 100MB, 50MB\n" 392" Checks /tmp and /var at 10%,5% and / at 100MB, 50MB\n"
370msgstr "" 393msgstr ""
371 394
372#: plugins/check_disk.c:630 395#: plugins/check_disk.c:639
373#, c-format 396#, c-format
374msgid "" 397msgid ""
375"Usage: %s -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]\n" 398"Usage: %s -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]\n"
@@ -378,114 +401,135 @@ msgid ""
378" %s (-V|--version)\n" 401" %s (-V|--version)\n"
379msgstr "" 402msgstr ""
380 403
381#: plugins/check_dns.c:129 plugins/check_dns.c:158 404#: plugins/check_dns.c:108
382msgid "Unknown error (plugin)" 405msgid "Unknown error (plugin)"
383msgstr "" 406msgstr ""
384 407
385#: plugins/check_dns.c:153 408#: plugins/check_dns.c:128
386#, c-format 409#, c-format
387msgid "DNS CRITICAL - '%s' returned empty host name string\n" 410msgid "DNS CRITICAL - '%s' returned empty host name string\n"
388msgstr "" 411msgstr ""
389 412
390#: plugins/check_dns.c:190 413#: plugins/check_dns.c:167
391msgid "nslookup returned error status" 414msgid "nslookup returned error status"
392msgstr "" 415msgstr ""
393 416
394#: plugins/check_dns.c:197 417#: plugins/check_dns.c:174
395#, c-format 418#, c-format
396msgid "DNS CRITICAL - '%s' output parsing exited with no address\n" 419msgid "DNS CRITICAL - '%s' output parsing exited with no address\n"
397msgstr "" 420msgstr ""
398 421
399#: plugins/check_dns.c:203 422#: plugins/check_dns.c:180
400#, c-format 423#, c-format
401msgid "expected %s but got %s" 424msgid "expected %s but got %s"
402msgstr "" 425msgstr ""
403 426
404#: plugins/check_dns.c:215 427#: plugins/check_dns.c:186
405#, c-format 428#, c-format
406msgid "DNS ok - %.3f seconds response time, address%s %s|%s\n" 429msgid "server %s is not authoritative for %s"
430msgstr ""
431
432#: plugins/check_dns.c:198
433msgid "DNS"
407msgstr "" 434msgstr ""
408 435
409#: plugins/check_dns.c:220 436#: plugins/check_dns.c:198 plugins/check_dummy.c:58 plugins/check_http.c:678
437#: plugins/check_http.c:928 plugins/check_procs.c:263
438msgid "OK"
439msgstr ""
440
441#: plugins/check_dns.c:199
442#, c-format
443msgid "%.3f second response time, "
444msgid_plural "%.3f seconds response time, "
445msgstr[0] ""
446msgstr[1] ""
447
448#: plugins/check_dns.c:200
449#, c-format
450msgid "%s returns %s"
451msgstr ""
452
453#: plugins/check_dns.c:204
410#, c-format 454#, c-format
411msgid "DNS WARNING - %s\n" 455msgid "DNS WARNING - %s\n"
412msgstr "" 456msgstr ""
413 457
414#: plugins/check_dns.c:223 458#: plugins/check_dns.c:207
415#, c-format 459#, c-format
416msgid "DNS CRITICAL - %s\n" 460msgid "DNS CRITICAL - %s\n"
417msgstr "" 461msgstr ""
418 462
419#: plugins/check_dns.c:226 463#: plugins/check_dns.c:210
420#, c-format 464#, c-format
421msgid "DNS problem - %s\n" 465msgid "DNS problem - %s\n"
422msgstr "" 466msgstr ""
423 467
424#: plugins/check_dns.c:244 468#: plugins/check_dns.c:228
425#, c-format 469#, c-format
426msgid "No response from name server %s\n" 470msgid "No response from name server %s\n"
427msgstr "" 471msgstr ""
428 472
429#: plugins/check_dns.c:248 473#: plugins/check_dns.c:232
430#, c-format 474#, c-format
431msgid "Name server %s has no records\n" 475msgid "Name server %s has no records\n"
432msgstr "" 476msgstr ""
433 477
434#: plugins/check_dns.c:255 478#: plugins/check_dns.c:239
435#, c-format 479#, c-format
436msgid "Connection to name server %s was refused\n" 480msgid "Connection to name server %s was refused\n"
437msgstr "" 481msgstr ""
438 482
439#: plugins/check_dns.c:261 483#: plugins/check_dns.c:245
440#, c-format 484#, c-format
441msgid "Domain %s was not found by the server\n" 485msgid "Domain %s was not found by the server\n"
442msgstr "" 486msgstr ""
443 487
444#: plugins/check_dns.c:265 488#: plugins/check_dns.c:249
445msgid "Network is unreachable\n" 489msgid "Network is unreachable\n"
446msgstr "" 490msgstr ""
447 491
448#: plugins/check_dns.c:269 492#: plugins/check_dns.c:253
449#, c-format 493#, c-format
450msgid "Server failure for %s\n" 494msgid "Server failure for %s\n"
451msgstr "" 495msgstr ""
452 496
453#: plugins/check_dns.c:314 plugins/check_fping.c:243 plugins/check_game.c:210 497#: plugins/check_dns.c:299 plugins/check_fping.c:243 plugins/check_game.c:210
454#: plugins/check_overcr.c:335 plugins/check_radius.c:213 498#: plugins/check_overcr.c:335 plugins/check_radius.c:216
455#: plugins/check_tcp.c:402 plugins/check_udp.c:147 plugins/check_users.c:134 499#: plugins/check_tcp.c:406 plugins/check_udp.c:147 plugins/check_users.c:143
456#, c-format 500#, c-format
457msgid "" 501msgid ""
458"%s: Unknown argument: %s\n" 502"%s: Unknown argument: %s\n"
459"\n" 503"\n"
460msgstr "" 504msgstr ""
461 505
462#: plugins/check_dns.c:331 plugins/check_dns.c:343 plugins/check_dns.c:354 506#: plugins/check_dns.c:316 plugins/check_dns.c:328 plugins/check_dns.c:339
463#: plugins/check_dns.c:359 plugins/check_dns.c:369 plugins/check_dns.c:380 507#: plugins/check_dns.c:344 plugins/check_dns.c:357 plugins/check_dns.c:368
464#: plugins/check_game.c:227 plugins/check_game.c:235 508#: plugins/check_game.c:227 plugins/check_game.c:235
465msgid "Input buffer overflow\n" 509msgid "Input buffer overflow\n"
466msgstr "" 510msgstr ""
467 511
468#: plugins/check_dns.c:338 512#: plugins/check_dns.c:323
469msgid "" 513msgid ""
470"Invalid server name/address\n" 514"Invalid server name/address\n"
471"\n" 515"\n"
472msgstr "" 516msgstr ""
473 517
474#: plugins/check_dns.c:349 plugins/check_fping.c:257 518#: plugins/check_dns.c:334 plugins/check_fping.c:257
475#: plugins/check_radius.c:227 519#: plugins/check_radius.c:230
476msgid "" 520msgid ""
477"Invalid host name/address\n" 521"Invalid host name/address\n"
478"\n" 522"\n"
479msgstr "" 523msgstr ""
480 524
481#: plugins/check_dns.c:376 525#: plugins/check_dns.c:364
482#, c-format 526#, c-format
483msgid "" 527msgid ""
484"Invalid name/address: %s\n" 528"Invalid name/address: %s\n"
485"\n" 529"\n"
486msgstr "" 530msgstr ""
487 531
488#: plugins/check_dns.c:413 532#: plugins/check_dns.c:401
489msgid "" 533msgid ""
490"-H, --hostname=HOST\n" 534"-H, --hostname=HOST\n"
491" The name or address you want to query\n" 535" The name or address you want to query\n"
@@ -493,9 +537,11 @@ msgid ""
493" Optional DNS server you want to use for the lookup\n" 537" Optional DNS server you want to use for the lookup\n"
494"-a, --expected-address=IP-ADDRESS\n" 538"-a, --expected-address=IP-ADDRESS\n"
495" Optional IP address you expect the DNS server to return\n" 539" Optional IP address you expect the DNS server to return\n"
540"-A, --expect-authority\n"
541" Optionally expect the DNS server to be authoritative for the lookup\n"
496msgstr "" 542msgstr ""
497 543
498#: plugins/check_dns.c:423 544#: plugins/check_dns.c:413
499msgid "" 545msgid ""
500"\n" 546"\n"
501"This plugin uses the nslookup program to obtain the IP address\n" 547"This plugin uses the nslookup program to obtain the IP address\n"
@@ -504,10 +550,10 @@ msgid ""
504"specified in /etc/resolv.conf will be used.\n" 550"specified in /etc/resolv.conf will be used.\n"
505msgstr "" 551msgstr ""
506 552
507#: plugins/check_dns.c:438 553#: plugins/check_dns.c:428
508#, c-format 554#, c-format
509msgid "" 555msgid ""
510"Usage: %s -H host [-s server] [-a expected-address] [-t timeout]\n" 556"Usage: %s -H host [-s server] [-a expected-address] [-A] [-t timeout]\n"
511" %s --help\n" 557" %s --help\n"
512" %s --version\n" 558" %s --version\n"
513msgstr "" 559msgstr ""
@@ -520,16 +566,33 @@ msgstr ""
520msgid "Arguments to check_dummy must be an integer\n" 566msgid "Arguments to check_dummy must be an integer\n"
521msgstr "" 567msgstr ""
522 568
523#: plugins/check_dummy.c:91 569#: plugins/check_dummy.c:61 plugins/check_http.c:680 plugins/check_procs.c:265
570msgid "WARNING"
571msgstr ""
572
573#: plugins/check_dummy.c:64 plugins/check_http.c:682 plugins/check_procs.c:270
574msgid "CRITICAL"
575msgstr ""
576
577#: plugins/check_dummy.c:67 plugins/check_http.c:676
578msgid "UNKNOWN"
579msgstr ""
580
581#: plugins/check_dummy.c:70
582#, c-format
583msgid "Status %d is not a supported error state\n"
584msgstr ""
585
586#: plugins/check_dummy.c:96
524msgid "" 587msgid ""
525"\n" 588"\n"
526"This plugin will simply return the state corresponding to the numeric value\n" 589"This plugin will simply return the state corresponding to the numeric value\n"
527"of the <state> argument.\n" 590"of the <state> argument with optional text.\n"
528msgstr "" 591msgstr ""
529 592
530#: plugins/check_dummy.c:103 593#: plugins/check_dummy.c:108
531#, c-format 594#, c-format
532msgid "Usage: %s <integer state>\n" 595msgid "Usage: %s <integer state> [optional text]\n"
533msgstr "" 596msgstr ""
534 597
535#: plugins/check_fping.c:83 598#: plugins/check_fping.c:83
@@ -685,8 +748,8 @@ msgid ""
685msgstr "" 748msgstr ""
686 749
687#: plugins/check_hpjd.c:87 plugins/check_mrtg.c:61 plugins/check_mrtgtraf.c:67 750#: plugins/check_hpjd.c:87 plugins/check_mrtg.c:61 plugins/check_mrtgtraf.c:67
688#: plugins/check_mysql.c:51 plugins/check_real.c:69 plugins/check_smtp.c:74 751#: plugins/check_mysql.c:51 plugins/check_real.c:69 plugins/check_smtp.c:93
689#: plugins/check_swap.c:78 plugins/check_time.c:63 752#: plugins/check_swap.c:93 plugins/check_time.c:64
690msgid "Invalid command arguments supplied\n" 753msgid "Invalid command arguments supplied\n"
691msgstr "" 754msgstr ""
692 755
@@ -740,13 +803,13 @@ msgid "Printer ok - (%s)\n"
740msgstr "" 803msgstr ""
741 804
742#: plugins/check_hpjd.c:324 plugins/check_mysql.c:132 plugins/check_real.c:306 805#: plugins/check_hpjd.c:324 plugins/check_mysql.c:132 plugins/check_real.c:306
743#: plugins/check_smtp.c:236 806#: plugins/check_smtp.c:294
744msgid "Invalid host name\n" 807msgid "Invalid host name\n"
745msgstr "" 808msgstr ""
746 809
747#: plugins/check_hpjd.c:337 plugins/check_load.c:230 plugins/check_mrtg.c:228 810#: plugins/check_hpjd.c:337 plugins/check_load.c:230 plugins/check_mrtg.c:232
748#: plugins/check_mrtgtraf.c:264 plugins/check_mysql.c:154 811#: plugins/check_mrtgtraf.c:262 plugins/check_mysql.c:154
749#: plugins/check_real.c:358 plugins/check_smtp.c:304 plugins/check_swap.c:324 812#: plugins/check_real.c:358 plugins/check_smtp.c:376 plugins/check_swap.c:423
750msgid "Invalid argument\n" 813msgid "Invalid argument\n"
751msgstr "" 814msgstr ""
752 815
@@ -769,246 +832,230 @@ msgstr ""
769msgid "Usage: %s -H host [-C community]\n" 832msgid "Usage: %s -H host [-C community]\n"
770msgstr "" 833msgstr ""
771 834
772#: plugins/check_http.c:141 835#: plugins/check_http.c:142
773msgid "check_http: could not parse arguments\n" 836msgid "check_http: could not parse arguments\n"
774msgstr "" 837msgstr ""
775 838
776#: plugins/check_http.c:162 839#: plugins/check_http.c:163
777msgid "HTTP CRITICAL - Could not make SSL connection\n" 840msgid "HTTP CRITICAL - Could not make SSL connection\n"
778msgstr "" 841msgstr ""
779 842
780#: plugins/check_http.c:168 plugins/check_http.c:495 843#: plugins/check_http.c:169 plugins/check_http.c:501
781msgid "ERROR: Cannot retrieve server certificate.\n" 844msgid "ERROR: Cannot retrieve server certificate.\n"
782msgstr "" 845msgstr ""
783 846
784#: plugins/check_http.c:239 847#: plugins/check_http.c:242
785msgid "unknown argument" 848msgid "unknown argument"
786msgstr "" 849msgstr ""
787 850
788#: plugins/check_http.c:251 851#: plugins/check_http.c:254
789msgid "timeout interval must be a non-negative integer" 852msgid "timeout interval must be a non-negative integer"
790msgstr "" 853msgstr ""
791 854
792#: plugins/check_http.c:257 855#: plugins/check_http.c:260
793msgid "invalid critical threshold" 856msgid "invalid critical threshold"
794msgstr "" 857msgstr ""
795 858
796#: plugins/check_http.c:265 859#: plugins/check_http.c:268
797msgid "invalid warning threshold" 860msgid "invalid warning threshold"
798msgstr "" 861msgstr ""
799 862
800#: plugins/check_http.c:279 plugins/check_http.c:294 863#: plugins/check_http.c:282 plugins/check_http.c:297
801msgid "check_http: invalid option - SSL is not available\n" 864msgid "check_http: invalid option - SSL is not available\n"
802msgstr "" 865msgstr ""
803 866
804#: plugins/check_http.c:288 867#: plugins/check_http.c:291
805msgid "invalid certificate expiration period" 868msgid "invalid certificate expiration period"
806msgstr "" 869msgstr ""
807 870
808#: plugins/check_http.c:309 871#: plugins/check_http.c:312
809#, c-format 872#, c-format
810msgid "option f:%d \n" 873msgid "option f:%d \n"
811msgstr "" 874msgstr ""
812 875
813#: plugins/check_http.c:324 876#: plugins/check_http.c:327
814msgid "invalid port number" 877msgid "invalid port number"
815msgstr "" 878msgstr ""
816 879
817#: plugins/check_http.c:352 880#: plugins/check_http.c:358
818msgid "check_http: call for regex which was not a compiled option\n" 881msgid "check_http: call for regex which was not a compiled option\n"
819msgstr "" 882msgstr ""
820 883
821#: plugins/check_http.c:366 884#: plugins/check_http.c:372
822#, c-format 885#, c-format
823msgid "Could Not Compile Regular Expression: %s" 886msgid "Could Not Compile Regular Expression: %s"
824msgstr "" 887msgstr ""
825 888
826#: plugins/check_http.c:378 plugins/check_ldap.c:241 plugins/check_ping.c:222 889#: plugins/check_http.c:384 plugins/check_ldap.c:241 plugins/check_ping.c:224
827#: plugins/check_smtp.c:294 plugins/check_ssh.c:128 plugins/check_tcp.c:421 890#: plugins/check_smtp.c:366 plugins/check_ssh.c:128 plugins/check_tcp.c:425
828msgid "IPv6 support not available\n" 891msgid "IPv6 support not available\n"
829msgstr "" 892msgstr ""
830 893
831#: plugins/check_http.c:400 894#: plugins/check_http.c:406
832msgid "check_http: you must specify a server address or host name\n" 895msgid "check_http: you must specify a server address or host name\n"
833msgstr "" 896msgstr ""
834 897
835#: plugins/check_http.c:488 plugins/check_http.c:503 898#: plugins/check_http.c:494 plugins/check_http.c:509
836msgid "Unable to open TCP socket\n" 899msgid "Unable to open TCP socket\n"
837msgstr "" 900msgstr ""
838 901
839#: plugins/check_http.c:561 902#: plugins/check_http.c:571
840msgid "Client Certificate Required\n" 903msgid "Client Certificate Required\n"
841msgstr "" 904msgstr ""
842 905
843#: plugins/check_http.c:563 plugins/check_http.c:568 906#: plugins/check_http.c:573 plugins/check_http.c:578
844msgid "Error in recv()\n" 907msgid "Error in recv()\n"
845msgstr "" 908msgstr ""
846 909
847#: plugins/check_http.c:576 910#: plugins/check_http.c:586
848#, c-format 911#, c-format
849msgid "No data received %s\n" 912msgid "No data received %s\n"
850msgstr "" 913msgstr ""
851 914
852#: plugins/check_http.c:620 915#: plugins/check_http.c:630
853msgid "Invalid HTTP response received from host\n" 916msgid "Invalid HTTP response received from host\n"
854msgstr "" 917msgstr ""
855 918
856#: plugins/check_http.c:623 919#: plugins/check_http.c:633
857#, c-format 920#, c-format
858msgid "Invalid HTTP response received from host on port %d\n" 921msgid "Invalid HTTP response received from host on port %d\n"
859msgstr "" 922msgstr ""
860 923
861#: plugins/check_http.c:631 924#: plugins/check_http.c:641
862#, c-format 925#, c-format
863msgid "HTTP OK: Status line output matched \"%s\"\n" 926msgid "HTTP OK: Status line output matched \"%s\"\n"
864msgstr "" 927msgstr ""
865 928
866#: plugins/check_http.c:643 929#: plugins/check_http.c:653
867#, c-format 930#, c-format
868msgid "HTTP CRITICAL: Invalid Status Line (%s)\n" 931msgid "HTTP CRITICAL: Invalid Status Line (%s)\n"
869msgstr "" 932msgstr ""
870 933
871#: plugins/check_http.c:650 934#: plugins/check_http.c:660
872#, c-format 935#, c-format
873msgid "HTTP CRITICAL: Invalid Status (%s)\n" 936msgid "HTTP CRITICAL: Invalid Status (%s)\n"
874msgstr "" 937msgstr ""
875 938
876#: plugins/check_http.c:654 939#: plugins/check_http.c:664
877#, c-format 940#, c-format
878msgid "HTTP CRITICAL: %s\n" 941msgid "HTTP CRITICAL: %s\n"
879msgstr "" 942msgstr ""
880 943
881#: plugins/check_http.c:658 944#: plugins/check_http.c:668
882#, c-format 945#, c-format
883msgid "HTTP WARNING: %s\n" 946msgid "HTTP WARNING: %s\n"
884msgstr "" 947msgstr ""
885 948
886#: plugins/check_http.c:666 949#: plugins/check_http.c:686
887msgid "UNKNOWN"
888msgstr ""
889
890#: plugins/check_http.c:668 plugins/check_http.c:918 plugins/check_procs.c:249
891msgid "OK"
892msgstr ""
893
894#: plugins/check_http.c:670 plugins/check_procs.c:251
895msgid "WARNING"
896msgstr ""
897
898#: plugins/check_http.c:672 plugins/check_procs.c:256
899msgid "CRITICAL"
900msgstr ""
901
902#: plugins/check_http.c:676
903#, c-format 950#, c-format
904msgid " - %s - %.3f second response time %s%s|%s %s\n" 951msgid " - %s - %.3f second response time %s%s|%s %s\n"
905msgstr "" 952msgstr ""
906 953
907#: plugins/check_http.c:688 954#: plugins/check_http.c:698
908#, c-format 955#, c-format
909msgid "HTTP problem: %s - %.3f second response time %s%s|%s %s\n" 956msgid "HTTP problem: %s - %.3f second response time %s%s|%s %s\n"
910msgstr "" 957msgstr ""
911 958
912#: plugins/check_http.c:702 plugins/check_http.c:719 959#: plugins/check_http.c:712 plugins/check_http.c:729
913#, c-format 960#, c-format
914msgid "HTTP OK %s - %.3f second response time %s%s|%s %s\n" 961msgid "HTTP OK %s - %.3f second response time %s%s|%s %s\n"
915msgstr "" 962msgstr ""
916 963
917#: plugins/check_http.c:709 964#: plugins/check_http.c:719
918#, c-format 965#, c-format
919msgid "CRITICAL - string not found%s|%s %s\n" 966msgid "CRITICAL - string not found%s|%s %s\n"
920msgstr "" 967msgstr ""
921 968
922#: plugins/check_http.c:727 969#: plugins/check_http.c:737
923#, c-format 970#, c-format
924msgid "CRITICAL - pattern not found%s|%s %s\n" 971msgid "CRITICAL - pattern not found%s|%s %s\n"
925msgstr "" 972msgstr ""
926 973
927#: plugins/check_http.c:734 974#: plugins/check_http.c:744
928#, c-format 975#, c-format
929msgid "CRITICAL - Execute Error: %s\n" 976msgid "CRITICAL - Execute Error: %s\n"
930msgstr "" 977msgstr ""
931 978
932#: plugins/check_http.c:744 979#: plugins/check_http.c:754
933#, c-format 980#, c-format
934msgid "HTTP WARNING: page size %d too small%s|%s\n" 981msgid "HTTP WARNING: page size %d too small%s|%s\n"
935msgstr "" 982msgstr ""
936 983
937#: plugins/check_http.c:749 984#: plugins/check_http.c:759
938#, c-format 985#, c-format
939msgid "HTTP OK %s - %d bytes in %.3f seconds %s%s|%s %s\n" 986msgid "HTTP OK %s - %d bytes in %.3f seconds %s%s|%s %s\n"
940msgstr "" 987msgstr ""
941 988
942#: plugins/check_http.c:785 989#: plugins/check_http.c:795
943msgid "ERROR: could not allocate addr\n" 990msgid "ERROR: could not allocate addr\n"
944msgstr "" 991msgstr ""
945 992
946#: plugins/check_http.c:789 plugins/check_http.c:809 993#: plugins/check_http.c:799 plugins/check_http.c:819
947msgid "ERROR: could not allocate url\n" 994msgid "ERROR: could not allocate url\n"
948msgstr "" 995msgstr ""
949 996
950#: plugins/check_http.c:799 997#: plugins/check_http.c:809
951#, c-format 998#, c-format
952msgid "UNKNOWN - Could not find redirect location - %s%s\n" 999msgid "UNKNOWN - Could not find redirect location - %s%s\n"
953msgstr "" 1000msgstr ""
954 1001
955#: plugins/check_http.c:852 1002#: plugins/check_http.c:862
956#, c-format 1003#, c-format
957msgid "UNKNOWN - Could not parse redirect location - %s%s\n" 1004msgid "UNKNOWN - Could not parse redirect location - %s%s\n"
958msgstr "" 1005msgstr ""
959 1006
960#: plugins/check_http.c:862 1007#: plugins/check_http.c:872
961#, c-format 1008#, c-format
962msgid "WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n" 1009msgid "WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n"
963msgstr "" 1010msgstr ""
964 1011
965#: plugins/check_http.c:870 1012#: plugins/check_http.c:880
966#, c-format 1013#, c-format
967msgid "WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n" 1014msgid "WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n"
968msgstr "" 1015msgstr ""
969 1016
970#: plugins/check_http.c:918 1017#: plugins/check_http.c:928
971#, c-format 1018#, c-format
972msgid "SSL seeding: %s\n" 1019msgid "SSL seeding: %s\n"
973msgstr "" 1020msgstr ""
974 1021
975#: plugins/check_http.c:918 1022#: plugins/check_http.c:928
976msgid "Failed" 1023msgid "Failed"
977msgstr "" 1024msgstr ""
978 1025
979#: plugins/check_http.c:925 1026#: plugins/check_http.c:935
980msgid "CRITICAL - Cannot create SSL context.\n" 1027msgid "CRITICAL - Cannot create SSL context.\n"
981msgstr "" 1028msgstr ""
982 1029
983#: plugins/check_http.c:949 1030#: plugins/check_http.c:959
984msgid "CRITICAL - Cannot initiate SSL handshake.\n" 1031msgid "CRITICAL - Cannot initiate SSL handshake.\n"
985msgstr "" 1032msgstr ""
986 1033
987#: plugins/check_http.c:977 plugins/check_http.c:989 1034#: plugins/check_http.c:987 plugins/check_http.c:999
988msgid "CRITICAL - Wrong time format in certificate.\n" 1035msgid "CRITICAL - Wrong time format in certificate.\n"
989msgstr "" 1036msgstr ""
990 1037
991#: plugins/check_http.c:1018 1038#: plugins/check_http.c:1028
992#, c-format 1039#, c-format
993msgid "WARNING - Certificate expires in %d day(s) (%s).\n" 1040msgid "WARNING - Certificate expires in %d day(s) (%s).\n"
994msgstr "" 1041msgstr ""
995 1042
996#: plugins/check_http.c:1022 1043#: plugins/check_http.c:1032
997#, c-format 1044#, c-format
998msgid "CRITICAL - Certificate expired on %s.\n" 1045msgid "CRITICAL - Certificate expired on %s.\n"
999msgstr "" 1046msgstr ""
1000 1047
1001#: plugins/check_http.c:1027 1048#: plugins/check_http.c:1037
1002#, c-format 1049#, c-format
1003msgid "WARNING - Certificate expires today (%s).\n" 1050msgid "WARNING - Certificate expires today (%s).\n"
1004msgstr "" 1051msgstr ""
1005 1052
1006#: plugins/check_http.c:1031 1053#: plugins/check_http.c:1041
1007#, c-format 1054#, c-format
1008msgid "OK - Certificate will expire on %s.\n" 1055msgid "OK - Certificate will expire on %s.\n"
1009msgstr "" 1056msgstr ""
1010 1057
1011#: plugins/check_http.c:1106 1058#: plugins/check_http.c:1116
1012msgid "" 1059msgid ""
1013"This plugin tests the HTTP service on the specified host. It can test\n" 1060"This plugin tests the HTTP service on the specified host. It can test\n"
1014"normal (http) and secure (https) servers, follow redirects, search for\n" 1061"normal (http) and secure (https) servers, follow redirects, search for\n"
@@ -1016,11 +1063,11 @@ msgid ""
1016"certificate expiration times.\n" 1063"certificate expiration times.\n"
1017msgstr "" 1064msgstr ""
1018 1065
1019#: plugins/check_http.c:1114 1066#: plugins/check_http.c:1124
1020msgid "NOTE: One or both of -H and -I must be specified\n" 1067msgid "NOTE: One or both of -H and -I must be specified\n"
1021msgstr "" 1068msgstr ""
1022 1069
1023#: plugins/check_http.c:1118 1070#: plugins/check_http.c:1128
1024#, c-format 1071#, c-format
1025msgid "" 1072msgid ""
1026" -H, --hostname=ADDRESS\n" 1073" -H, --hostname=ADDRESS\n"
@@ -1032,7 +1079,7 @@ msgid ""
1032" Port number (default: %d)\n" 1079" Port number (default: %d)\n"
1033msgstr "" 1080msgstr ""
1034 1081
1035#: plugins/check_http.c:1129 1082#: plugins/check_http.c:1139
1036msgid "" 1083msgid ""
1037" -S, --ssl\n" 1084" -S, --ssl\n"
1038" Connect via SSL\n" 1085" Connect via SSL\n"
@@ -1041,7 +1088,7 @@ msgid ""
1041" (when this option is used the url is not checked.)\n" 1088" (when this option is used the url is not checked.)\n"
1042msgstr "" 1089msgstr ""
1043 1090
1044#: plugins/check_http.c:1137 1091#: plugins/check_http.c:1147
1045#, c-format 1092#, c-format
1046msgid "" 1093msgid ""
1047" -e, --expect=STRING\n" 1094" -e, --expect=STRING\n"
@@ -1054,9 +1101,11 @@ msgid ""
1054" URL to GET or POST (default: /)\n" 1101" URL to GET or POST (default: /)\n"
1055" -P, --post=STRING\n" 1102" -P, --post=STRING\n"
1056" URL encoded http POST data\n" 1103" URL encoded http POST data\n"
1104" -T, --content-type=STRING\n"
1105" specify Content-Type header media type when POSTing\n"
1057msgstr "" 1106msgstr ""
1058 1107
1059#: plugins/check_http.c:1149 1108#: plugins/check_http.c:1161
1060msgid "" 1109msgid ""
1061" -l, --linespan\n" 1110" -l, --linespan\n"
1062" Allow regex to span newlines (must precede -r or -R)\n" 1111" Allow regex to span newlines (must precede -r or -R)\n"
@@ -1066,7 +1115,7 @@ msgid ""
1066" Search page for case-insensitive regex STRING\n" 1115" Search page for case-insensitive regex STRING\n"
1067msgstr "" 1116msgstr ""
1068 1117
1069#: plugins/check_http.c:1158 1118#: plugins/check_http.c:1170
1070msgid "" 1119msgid ""
1071" -a, --authorization=AUTH_PAIR\n" 1120" -a, --authorization=AUTH_PAIR\n"
1072" Username:password on sites with basic authentication\n" 1121" Username:password on sites with basic authentication\n"
@@ -1078,7 +1127,7 @@ msgid ""
1078" Minimum page size required (bytes)\n" 1127" Minimum page size required (bytes)\n"
1079msgstr "" 1128msgstr ""
1080 1129
1081#: plugins/check_http.c:1174 1130#: plugins/check_http.c:1186
1082msgid "" 1131msgid ""
1083"This plugin will attempt to open an HTTP connection with the host. " 1132"This plugin will attempt to open an HTTP connection with the host. "
1084"Successful\n" 1133"Successful\n"
@@ -1090,7 +1139,7 @@ msgid ""
1090"(fully qualified domain name) as the [host_name] argument.\n" 1139"(fully qualified domain name) as the [host_name] argument.\n"
1091msgstr "" 1140msgstr ""
1092 1141
1093#: plugins/check_http.c:1183 1142#: plugins/check_http.c:1195
1094msgid "" 1143msgid ""
1095"\n" 1144"\n"
1096"This plugin can also check whether an SSL enabled web server is able to\n" 1145"This plugin can also check whether an SSL enabled web server is able to\n"
@@ -1098,7 +1147,7 @@ msgid ""
1098"certificate is still valid for the specified number of days.\n" 1147"certificate is still valid for the specified number of days.\n"
1099msgstr "" 1148msgstr ""
1100 1149
1101#: plugins/check_http.c:1187 1150#: plugins/check_http.c:1199
1102msgid "" 1151msgid ""
1103"\n" 1152"\n"
1104"CHECK CONTENT: check_http -w 5 -c 10 --ssl www.verisign.com\n" 1153"CHECK CONTENT: check_http -w 5 -c 10 --ssl www.verisign.com\n"
@@ -1111,7 +1160,7 @@ msgid ""
1111"\n" 1160"\n"
1112msgstr "" 1161msgstr ""
1113 1162
1114#: plugins/check_http.c:1194 1163#: plugins/check_http.c:1206
1115msgid "" 1164msgid ""
1116"CHECK CERTIFICATE: check_http www.verisign.com -C 14\n" 1165"CHECK CERTIFICATE: check_http www.verisign.com -C 14\n"
1117"\n" 1166"\n"
@@ -1124,7 +1173,7 @@ msgid ""
1124"the certificate is expired.\n" 1173"the certificate is expired.\n"
1125msgstr "" 1174msgstr ""
1126 1175
1127#: plugins/check_http.c:1212 1176#: plugins/check_http.c:1224
1128#, c-format 1177#, c-format
1129msgid "" 1178msgid ""
1130"Usage: %s (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n" 1179"Usage: %s (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n"
@@ -1404,43 +1453,43 @@ msgstr ""
1404msgid "Unable to process MRTG log file\n" 1453msgid "Unable to process MRTG log file\n"
1405msgstr "" 1454msgstr ""
1406 1455
1407#: plugins/check_mrtg.c:123 plugins/check_mrtgtraf.c:121 1456#: plugins/check_mrtg.c:123 plugins/check_mrtgtraf.c:120
1408#, c-format 1457#, c-format
1409msgid "MRTG data has expired (%d minutes old)\n" 1458msgid "MRTG data has expired (%d minutes old)\n"
1410msgstr "" 1459msgstr ""
1411 1460
1412#: plugins/check_mrtg.c:143 1461#: plugins/check_mrtg.c:141 plugins/check_mrtgtraf.c:179
1413msgid "Ave" 1462#: plugins/check_mrtgtraf.c:180
1463msgid "Avg"
1414msgstr "" 1464msgstr ""
1415 1465
1416#: plugins/check_mrtg.c:143 plugins/check_mrtgtraf.c:175 1466#: plugins/check_mrtg.c:141 plugins/check_mrtgtraf.c:179
1417#: plugins/check_mrtgtraf.c:183 plugins/check_mrtgtraf.c:184 1467#: plugins/check_mrtgtraf.c:180
1418#: plugins/check_mrtgtraf.c:189 plugins/check_mrtgtraf.c:190
1419msgid "Max" 1468msgid "Max"
1420msgstr "" 1469msgstr ""
1421 1470
1422#: plugins/check_mrtg.c:207 plugins/check_mrtg.c:259 1471#: plugins/check_mrtg.c:211 plugins/check_mrtg.c:263
1423msgid "Invalid variable number\n" 1472msgid "Invalid variable number\n"
1424msgstr "" 1473msgstr ""
1425 1474
1426#: plugins/check_mrtg.c:242 1475#: plugins/check_mrtg.c:246
1427#, c-format 1476#, c-format
1428msgid "" 1477msgid ""
1429"%s is not a valid expiration time\n" 1478"%s is not a valid expiration time\n"
1430"Use '%s -h' for additional help\n" 1479"Use '%s -h' for additional help\n"
1431msgstr "" 1480msgstr ""
1432 1481
1433#: plugins/check_mrtg.c:286 1482#: plugins/check_mrtg.c:290
1434msgid "You must supply the variable number\n" 1483msgid "You must supply the variable number\n"
1435msgstr "" 1484msgstr ""
1436 1485
1437#: plugins/check_mrtg.c:310 1486#: plugins/check_mrtg.c:314
1438msgid "" 1487msgid ""
1439"This plugin will check either the average or maximum value of one of the\n" 1488"This plugin will check either the average or maximum value of one of the\n"
1440"two variables recorded in an MRTG log file.\n" 1489"two variables recorded in an MRTG log file.\n"
1441msgstr "" 1490msgstr ""
1442 1491
1443#: plugins/check_mrtg.c:318 1492#: plugins/check_mrtg.c:322
1444msgid "" 1493msgid ""
1445" -F, --logfile=FILE\n" 1494" -F, --logfile=FILE\n"
1446" The MRTG log file containing the data you want to monitor\n" 1495" The MRTG log file containing the data you want to monitor\n"
@@ -1456,7 +1505,7 @@ msgid ""
1456" Threshold value for data to result in CRITICAL status\n" 1505" Threshold value for data to result in CRITICAL status\n"
1457msgstr "" 1506msgstr ""
1458 1507
1459#: plugins/check_mrtg.c:332 1508#: plugins/check_mrtg.c:336
1460#, c-format 1509#, c-format
1461msgid "" 1510msgid ""
1462" -l, --label=STRING\n" 1511" -l, --label=STRING\n"
@@ -1466,7 +1515,7 @@ msgid ""
1466" \"Bytes Per Second\", \"%% Utilization\")\n" 1515" \"Bytes Per Second\", \"%% Utilization\")\n"
1467msgstr "" 1516msgstr ""
1468 1517
1469#: plugins/check_mrtg.c:339 1518#: plugins/check_mrtg.c:343
1470msgid "" 1519msgid ""
1471"If the value exceeds the <vwl> threshold, a WARNING status is returned. If\n" 1520"If the value exceeds the <vwl> threshold, a WARNING status is returned. If\n"
1472"the value exceeds the <vcl> threshold, a CRITICAL status is returned. If\n" 1521"the value exceeds the <vcl> threshold, a CRITICAL status is returned. If\n"
@@ -1475,7 +1524,7 @@ msgid ""
1475"\n" 1524"\n"
1476msgstr "" 1525msgstr ""
1477 1526
1478#: plugins/check_mrtg.c:345 1527#: plugins/check_mrtg.c:349
1479msgid "" 1528msgid ""
1480"This plugin is useful for monitoring MRTG data that does not correspond to\n" 1529"This plugin is useful for monitoring MRTG data that does not correspond to\n"
1481"bandwidth usage. (Use the check_mrtgtraf plugin for monitoring bandwidth).\n" 1530"bandwidth usage. (Use the check_mrtgtraf plugin for monitoring bandwidth).\n"
@@ -1487,7 +1536,7 @@ msgid ""
1487"\n" 1536"\n"
1488msgstr "" 1537msgstr ""
1489 1538
1490#: plugins/check_mrtg.c:352 1539#: plugins/check_mrtg.c:356
1491msgid "" 1540msgid ""
1492"Notes:\n" 1541"Notes:\n"
1493"- This plugin only monitors one of the two variables stored in the MRTG log\n" 1542"- This plugin only monitors one of the two variables stored in the MRTG log\n"
@@ -1499,40 +1548,24 @@ msgid ""
1499" http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html\n" 1548" http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html\n"
1500msgstr "" 1549msgstr ""
1501 1550
1502#: plugins/check_mrtg.c:372 1551#: plugins/check_mrtg.c:376
1503#, c-format 1552#, c-format
1504msgid "" 1553msgid ""
1505"Usage: %s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n" 1554"Usage: %s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n"
1506" [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n" 1555" [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n"
1507msgstr "" 1556msgstr ""
1508 1557
1509#: plugins/check_mrtgtraf.c:174 1558#: plugins/check_mrtgtraf.c:178
1510#, c-format 1559#, c-format
1511msgid "Traffic CRITICAL %s. In = %0.1f %s, %s. Out = %0.1f %s" 1560msgid "%s. In = %0.1f %s, %s. Out = %0.1f %s|%s %s\n"
1512msgstr "" 1561msgstr ""
1513 1562
1514#: plugins/check_mrtgtraf.c:175 plugins/check_mrtgtraf.c:183 1563#: plugins/check_mrtgtraf.c:191
1515#: plugins/check_mrtgtraf.c:184 plugins/check_mrtgtraf.c:189
1516#: plugins/check_mrtgtraf.c:190
1517msgid "Avg"
1518msgstr ""
1519
1520#: plugins/check_mrtgtraf.c:182
1521#, c-format
1522msgid "Traffic WARNING %s. In = %0.1f %s, %s. Out = %0.1f %s"
1523msgstr ""
1524
1525#: plugins/check_mrtgtraf.c:188
1526#, c-format 1564#, c-format
1527msgid "Traffic OK - %s. In = %0.1f %s, %s. Out = %0.1f %s\n" 1565msgid "Traffic %s - %s\n"
1528msgstr "" 1566msgstr ""
1529 1567
1530#: plugins/check_mrtgtraf.c:193 1568#: plugins/check_mrtgtraf.c:330
1531#, c-format
1532msgid "UNKNOWN %s\n"
1533msgstr ""
1534
1535#: plugins/check_mrtgtraf.c:332
1536msgid "" 1569msgid ""
1537" -F, --filename=STRING\n" 1570" -F, --filename=STRING\n"
1538" File to read log from\n" 1571" File to read log from\n"
@@ -1546,7 +1579,7 @@ msgid ""
1546" Critical threshold pair \"<incoming>,<outgoing>\"\n" 1579" Critical threshold pair \"<incoming>,<outgoing>\"\n"
1547msgstr "" 1580msgstr ""
1548 1581
1549#: plugins/check_mrtgtraf.c:344 1582#: plugins/check_mrtgtraf.c:342
1550msgid "" 1583msgid ""
1551"\n" 1584"\n"
1552"This plugin will check the incoming/outgoing transfer rates of a router,\n" 1585"This plugin will check the incoming/outgoing transfer rates of a router,\n"
@@ -1558,7 +1591,7 @@ msgid ""
1558"\n" 1591"\n"
1559msgstr "" 1592msgstr ""
1560 1593
1561#: plugins/check_mrtgtraf.c:352 1594#: plugins/check_mrtgtraf.c:350
1562msgid "" 1595msgid ""
1563"Notes:\n" 1596"Notes:\n"
1564"- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from\n" 1597"- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from\n"
@@ -1570,7 +1603,7 @@ msgid ""
1570" for future enhancements of this plugin.\n" 1603" for future enhancements of this plugin.\n"
1571msgstr "" 1604msgstr ""
1572 1605
1573#: plugins/check_mrtgtraf.c:370 1606#: plugins/check_mrtgtraf.c:368
1574#, c-format 1607#, c-format
1575msgid "" 1608msgid ""
1576"Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c " 1609"Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c "
@@ -1607,53 +1640,53 @@ msgstr ""
1607msgid "Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n" 1640msgid "Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n"
1608msgstr "" 1641msgstr ""
1609 1642
1610#: plugins/check_nagios.c:78 1643#: plugins/check_nagios.c:81
1611msgid "Error: Cannot open status log for reading!\n" 1644msgid "Error: Cannot open status log for reading!\n"
1612msgstr "" 1645msgstr ""
1613 1646
1614#: plugins/check_nagios.c:116 1647#: plugins/check_nagios.c:138
1615#, c-format 1648#, c-format
1616msgid "Found process: %s\n" 1649msgid "Found process: %s %s\n"
1617msgstr "" 1650msgstr ""
1618 1651
1619#: plugins/check_nagios.c:136 1652#: plugins/check_nagios.c:159
1620msgid "Could not locate a running Nagios process!\n" 1653msgid "Could not locate a running Nagios process!\n"
1621msgstr "" 1654msgstr ""
1622 1655
1623#: plugins/check_nagios.c:147 1656#: plugins/check_nagios.c:170
1624#, c-format 1657#, c-format
1625msgid "Nagios %s: located %d process%s, status log updated %d second%s ago\n" 1658msgid "Nagios %s: located %d process%s, status log updated %d second%s ago\n"
1626msgstr "" 1659msgstr ""
1627 1660
1628#: plugins/check_nagios.c:186 plugins/check_nagios.c:220 1661#: plugins/check_nagios.c:209 plugins/check_nagios.c:243
1629#, c-format 1662#, c-format
1630msgid "" 1663msgid ""
1631"Expiration time must be an integer (seconds)\n" 1664"Expiration time must be an integer (seconds)\n"
1632"Type '%s -h' for additional help\n" 1665"Type '%s -h' for additional help\n"
1633msgstr "" 1666msgstr ""
1634 1667
1635#: plugins/check_nagios.c:200 1668#: plugins/check_nagios.c:223
1636#, c-format 1669#, c-format
1637msgid "" 1670msgid ""
1638"%s: Unknown argument: %c\n" 1671"%s: Unknown argument: %c\n"
1639"\n" 1672"\n"
1640msgstr "" 1673msgstr ""
1641 1674
1642#: plugins/check_nagios.c:232 1675#: plugins/check_nagios.c:255
1643#, c-format 1676#, c-format
1644msgid "" 1677msgid ""
1645"You must provide the status_log\n" 1678"You must provide the status_log\n"
1646"Type '%s -h' for additional help\n" 1679"Type '%s -h' for additional help\n"
1647msgstr "" 1680msgstr ""
1648 1681
1649#: plugins/check_nagios.c:236 1682#: plugins/check_nagios.c:259
1650#, c-format 1683#, c-format
1651msgid "" 1684msgid ""
1652"You must provide a process string\n" 1685"You must provide a process string\n"
1653"Type '%s -h' for additional help\n" 1686"Type '%s -h' for additional help\n"
1654msgstr "" 1687msgstr ""
1655 1688
1656#: plugins/check_nagios.c:254 1689#: plugins/check_nagios.c:277
1657msgid "" 1690msgid ""
1658"This plugin attempts to check the status of the Nagios process on the local\n" 1691"This plugin attempts to check the status of the Nagios process on the local\n"
1659"machine. The plugin will check to make sure the Nagios status log is no " 1692"machine. The plugin will check to make sure the Nagios status log is no "
@@ -1665,7 +1698,7 @@ msgid ""
1665"by the <process_string> argument.\n" 1698"by the <process_string> argument.\n"
1666msgstr "" 1699msgstr ""
1667 1700
1668#: plugins/check_nagios.c:265 1701#: plugins/check_nagios.c:288
1669msgid "" 1702msgid ""
1670"-F, --filename=FILE\n" 1703"-F, --filename=FILE\n"
1671" Name of the log file to check\n" 1704" Name of the log file to check\n"
@@ -1675,90 +1708,125 @@ msgid ""
1675" Command to search for in process table\n" 1708" Command to search for in process table\n"
1676msgstr "" 1709msgstr ""
1677 1710
1678#: plugins/check_nagios.c:273 1711#: plugins/check_nagios.c:296
1679msgid "" 1712msgid ""
1680"Example:\n" 1713"Example:\n"
1681" ./check_nagios -e 5 \\ -F /usr/local/nagios/var/status.log \\ -C /usr/" 1714" ./check_nagios -e 5 \\ -F /usr/local/nagios/var/status.log \\ -C /usr/"
1682"local/nagios/bin/nagios\n" 1715"local/nagios/bin/nagios\n"
1683msgstr "" 1716msgstr ""
1684 1717
1685#: plugins/check_nagios.c:286 1718#: plugins/check_nagios.c:309
1686#, c-format 1719#, c-format
1687msgid "" 1720msgid ""
1688"Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n" 1721"Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n"
1689msgstr "" 1722msgstr ""
1690 1723
1691#: plugins/check_nt.c:118 1724#: plugins/check_nt.c:127
1692#, c-format 1725#, c-format
1693msgid "Wrong client version - running: %s, required: %s" 1726msgid "Wrong client version - running: %s, required: %s"
1694msgstr "" 1727msgstr ""
1695 1728
1696#: plugins/check_nt.c:129 plugins/check_nt.c:182 1729#: plugins/check_nt.c:138 plugins/check_nt.c:198
1697msgid "missing -l parameters" 1730msgid "missing -l parameters"
1698msgstr "" 1731msgstr ""
1699 1732
1700#: plugins/check_nt.c:131 1733#: plugins/check_nt.c:140
1701msgid "wrong -l parameter." 1734msgid "wrong -l parameter."
1702msgstr "" 1735msgstr ""
1703 1736
1704#: plugins/check_nt.c:135 1737#: plugins/check_nt.c:144
1705msgid "CPU Load" 1738msgid "CPU Load"
1706msgstr "" 1739msgstr ""
1707 1740
1708#: plugins/check_nt.c:156 1741#: plugins/check_nt.c:145
1742msgid " "
1743msgstr ""
1744
1745#: plugins/check_nt.c:167
1709#, c-format 1746#, c-format
1710msgid " %lu%% (%lu min average)" 1747msgid " %lu%% (%lu min average)"
1711msgstr "" 1748msgstr ""
1712 1749
1713#: plugins/check_nt.c:163 1750#: plugins/check_nt.c:169
1751#, c-format
1752msgid " '%lu min avg Load'=%lu%%;%lu;%lu;0;100"
1753msgstr ""
1754
1755#: plugins/check_nt.c:179
1714msgid "not enough values for -l parameters" 1756msgid "not enough values for -l parameters"
1715msgstr "" 1757msgstr ""
1716 1758
1717#: plugins/check_nt.c:175 1759#: plugins/check_nt.c:191
1718#, c-format 1760#, c-format
1719msgid "System Uptime : %u day(s) %u hour(s) %u minute(s)" 1761msgid "System Uptime : %u day(s) %u hour(s) %u minute(s)"
1720msgstr "" 1762msgstr ""
1721 1763
1722#: plugins/check_nt.c:184 1764#: plugins/check_nt.c:200
1723msgid "wrong -l argument" 1765msgid "wrong -l argument"
1724msgstr "" 1766msgstr ""
1725 1767
1726#: plugins/check_nt.c:193 1768#: plugins/check_nt.c:211
1727#, c-format 1769#, c-format
1728msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)" 1770msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)"
1729msgstr "" 1771msgstr ""
1730 1772
1731#: plugins/check_nt.c:208 1773#: plugins/check_nt.c:214
1774#, c-format
1775msgid "'%s:\\ Used Space'=%.2fGb;%.2f;%.2f;0.00;%.2f"
1776msgstr ""
1777
1778#: plugins/check_nt.c:228
1732msgid "Free disk space : Invalid drive " 1779msgid "Free disk space : Invalid drive "
1733msgstr "" 1780msgstr ""
1734 1781
1735#: plugins/check_nt.c:218 1782#: plugins/check_nt.c:238
1736msgid "No service/process specified" 1783msgid "No service/process specified"
1737msgstr "" 1784msgstr ""
1738 1785
1739#: plugins/check_nt.c:222 1786#: plugins/check_nt.c:242
1740msgid "ShowAll" 1787msgid "ShowAll"
1741msgstr "" 1788msgstr ""
1742 1789
1743#: plugins/check_nt.c:222 1790#: plugins/check_nt.c:242
1744msgid "ShowFail" 1791msgid "ShowFail"
1745msgstr "" 1792msgstr ""
1746 1793
1747#: plugins/check_nt.c:237 1794#: plugins/check_nt.c:262
1748#, c-format 1795#, c-format
1749msgid "" 1796msgid ""
1750"Memory usage: total:%.2f Mb - used: %.2f Mb (%.0f%%) - free: %.2f Mb (%.0f%%)" 1797"Memory usage: total:%.2f Mb - used: %.2f Mb (%.0f%%) - free: %.2f Mb (%.0f%%)"
1751msgstr "" 1798msgstr ""
1752 1799
1753#: plugins/check_nt.c:253 plugins/check_nt.c:289 1800#: plugins/check_nt.c:265
1801#, c-format
1802msgid "'Memory usage'=%.2fMb;%.2f;%.2f;0.00;%.2f"
1803msgstr ""
1804
1805#: plugins/check_nt.c:301 plugins/check_nt.c:383
1754msgid "No counter specified" 1806msgid "No counter specified"
1755msgstr "" 1807msgstr ""
1756 1808
1757#: plugins/check_nt.c:319 1809#: plugins/check_nt.c:319
1810msgid "%"
1811msgstr ""
1812
1813#: plugins/check_nt.c:334
1814msgid "Minimum value contains non-numbers"
1815msgstr ""
1816
1817#: plugins/check_nt.c:338
1818msgid "Maximum value contains non-numbers"
1819msgstr ""
1820
1821#: plugins/check_nt.c:345
1822msgid "No unit counter specified"
1823msgstr ""
1824
1825#: plugins/check_nt.c:413
1758msgid "Please specify a variable to check" 1826msgid "Please specify a variable to check"
1759msgstr "" 1827msgstr ""
1760 1828
1761#: plugins/check_nt.c:404 plugins/check_nwstat.c:775 1829#: plugins/check_nt.c:500 plugins/check_nwstat.c:781
1762#: plugins/check_overcr.c:352 1830#: plugins/check_overcr.c:352
1763#, c-format 1831#, c-format
1764msgid "" 1832msgid ""
@@ -1766,11 +1834,11 @@ msgid ""
1766"Type '%s -h' for additional help\n" 1834"Type '%s -h' for additional help\n"
1767msgstr "" 1835msgstr ""
1768 1836
1769#: plugins/check_nt.c:457 1837#: plugins/check_nt.c:553
1770msgid "None" 1838msgid "None"
1771msgstr "" 1839msgstr ""
1772 1840
1773#: plugins/check_nt.c:516 1841#: plugins/check_nt.c:612
1774msgid "" 1842msgid ""
1775"Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n" 1843"Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n"
1776"\n" 1844"\n"
@@ -1779,7 +1847,7 @@ msgid ""
1779"\n" 1847"\n"
1780msgstr "" 1848msgstr ""
1781 1849
1782#: plugins/check_nt.c:521 1850#: plugins/check_nt.c:617
1783#, c-format 1851#, c-format
1784msgid "" 1852msgid ""
1785"\n" 1853"\n"
@@ -1802,19 +1870,19 @@ msgid ""
1802" Print version information\n" 1870" Print version information\n"
1803msgstr "" 1871msgstr ""
1804 1872
1805#: plugins/check_nt.c:539 1873#: plugins/check_nt.c:635
1806msgid "" 1874msgid ""
1807"-v, --variable=STRING\n" 1875"-v, --variable=STRING\n"
1808" Variable to check. Valid variables are:\n" 1876" Variable to check. Valid variables are:\n"
1809msgstr "" 1877msgstr ""
1810 1878
1811#: plugins/check_nt.c:542 1879#: plugins/check_nt.c:638
1812msgid "" 1880msgid ""
1813" CLIENTVERSION = Get the NSClient version\n" 1881" CLIENTVERSION = Get the NSClient version\n"
1814" If -l <version> is specified, will return warning if versions differ.\n" 1882" If -l <version> is specified, will return warning if versions differ.\n"
1815msgstr "" 1883msgstr ""
1816 1884
1817#: plugins/check_nt.c:545 1885#: plugins/check_nt.c:641
1818msgid "" 1886msgid ""
1819" CPULOAD = Average CPU load on last x minutes.\n" 1887" CPULOAD = Average CPU load on last x minutes.\n"
1820" Request a -l parameter with the following syntax:\n" 1888" Request a -l parameter with the following syntax:\n"
@@ -1825,26 +1893,26 @@ msgid ""
1825" ie: -l 60,90,95,120,90,95\n" 1893" ie: -l 60,90,95,120,90,95\n"
1826msgstr "" 1894msgstr ""
1827 1895
1828#: plugins/check_nt.c:552 1896#: plugins/check_nt.c:648
1829msgid "" 1897msgid ""
1830" UPTIME = Get the uptime of the machine.\n" 1898" UPTIME = Get the uptime of the machine.\n"
1831" No specific parameters. No warning or critical threshold\n" 1899" No specific parameters. No warning or critical threshold\n"
1832msgstr "" 1900msgstr ""
1833 1901
1834#: plugins/check_nt.c:555 1902#: plugins/check_nt.c:651
1835msgid "" 1903msgid ""
1836" USEDDISKSPACE = Size and percentage of disk use.\n" 1904" USEDDISKSPACE = Size and percentage of disk use.\n"
1837" Request a -l parameter containing the drive letter only.\n" 1905" Request a -l parameter containing the drive letter only.\n"
1838" Warning and critical thresholds can be specified with -w and -c.\n" 1906" Warning and critical thresholds can be specified with -w and -c.\n"
1839msgstr "" 1907msgstr ""
1840 1908
1841#: plugins/check_nt.c:559 1909#: plugins/check_nt.c:655
1842msgid "" 1910msgid ""
1843" MEMUSE = Memory use.\n" 1911" MEMUSE = Memory use.\n"
1844" Warning and critical thresholds can be specified with -w and -c.\n" 1912" Warning and critical thresholds can be specified with -w and -c.\n"
1845msgstr "" 1913msgstr ""
1846 1914
1847#: plugins/check_nt.c:562 1915#: plugins/check_nt.c:658
1848msgid "" 1916msgid ""
1849" SERVICESTATE = Check the state of one or several services.\n" 1917" SERVICESTATE = Check the state of one or several services.\n"
1850" Request a -l parameters with the following syntax:\n" 1918" Request a -l parameters with the following syntax:\n"
@@ -1853,13 +1921,13 @@ msgid ""
1853"\t\t in the returned string.\n" 1921"\t\t in the returned string.\n"
1854msgstr "" 1922msgstr ""
1855 1923
1856#: plugins/check_nt.c:568 1924#: plugins/check_nt.c:664
1857msgid "" 1925msgid ""
1858" PROCSTATE = Check if one or several process are running.\n" 1926" PROCSTATE = Check if one or several process are running.\n"
1859" Same syntax as SERVICESTATE.\n" 1927" Same syntax as SERVICESTATE.\n"
1860msgstr "" 1928msgstr ""
1861 1929
1862#: plugins/check_nt.c:571 1930#: plugins/check_nt.c:667
1863#, c-format 1931#, c-format
1864msgid "" 1932msgid ""
1865" COUNTER = Check any performance counter of Windows NT/2000.\n" 1933" COUNTER = Check any performance counter of Windows NT/2000.\n"
@@ -1872,7 +1940,7 @@ msgid ""
1872" \"%%.f %%%% paging file used.\"\n" 1940" \"%%.f %%%% paging file used.\"\n"
1873msgstr "" 1941msgstr ""
1874 1942
1875#: plugins/check_nt.c:580 1943#: plugins/check_nt.c:676
1876msgid "" 1944msgid ""
1877"Notes:\n" 1945"Notes:\n"
1878" - The NSClient service should be running on the server to get any " 1946" - The NSClient service should be running on the server to get any "
@@ -1881,191 +1949,191 @@ msgid ""
1881" - Critical thresholds should be lower than warning thresholds\n" 1949" - Critical thresholds should be lower than warning thresholds\n"
1882msgstr "" 1950msgstr ""
1883 1951
1884#: plugins/check_nt.c:591 1952#: plugins/check_nt.c:687
1885#, c-format 1953#, c-format
1886msgid "" 1954msgid ""
1887"Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n" 1955"Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n"
1888" [-l params] [-d SHOWALL] [-t timeout]\n" 1956" [-l params] [-d SHOWALL] [-t timeout]\n"
1889msgstr "" 1957msgstr ""
1890 1958
1891#: plugins/check_nwstat.c:143 1959#: plugins/check_nwstat.c:147
1892#, c-format 1960#, c-format
1893msgid "NetWare %s: " 1961msgid "NetWare %s: "
1894msgstr "" 1962msgstr ""
1895 1963
1896#: plugins/check_nwstat.c:174 1964#: plugins/check_nwstat.c:178
1897#, c-format 1965#, c-format
1898msgid "Up %s," 1966msgid "Up %s,"
1899msgstr "" 1967msgstr ""
1900 1968
1901#: plugins/check_nwstat.c:182 1969#: plugins/check_nwstat.c:186
1902#, c-format 1970#, c-format
1903msgid "Load %s - %s %s-min load average = %lu%%" 1971msgid "Load %s - %s %s-min load average = %lu%%"
1904msgstr "" 1972msgstr ""
1905 1973
1906#: plugins/check_nwstat.c:203 1974#: plugins/check_nwstat.c:207
1907#, c-format 1975#, c-format
1908msgid "Conns %s - %lu current connections" 1976msgid "Conns %s - %lu current connections"
1909msgstr "" 1977msgstr ""
1910 1978
1911#: plugins/check_nwstat.c:222 1979#: plugins/check_nwstat.c:226
1912#, c-format 1980#, c-format
1913msgid "%s: Long term cache hits = %lu%%" 1981msgid "%s: Long term cache hits = %lu%%"
1914msgstr "" 1982msgstr ""
1915 1983
1916#: plugins/check_nwstat.c:241 1984#: plugins/check_nwstat.c:245
1917#, c-format 1985#, c-format
1918msgid "%s: Total cache buffers = %lu" 1986msgid "%s: Total cache buffers = %lu"
1919msgstr "" 1987msgstr ""
1920 1988
1921#: plugins/check_nwstat.c:260 1989#: plugins/check_nwstat.c:264
1922#, c-format 1990#, c-format
1923msgid "%s: Dirty cache buffers = %lu" 1991msgid "%s: Dirty cache buffers = %lu"
1924msgstr "" 1992msgstr ""
1925 1993
1926#: plugins/check_nwstat.c:279 1994#: plugins/check_nwstat.c:283
1927#, c-format 1995#, c-format
1928msgid "%s: LRU sitting time = %lu minutes" 1996msgid "%s: LRU sitting time = %lu minutes"
1929msgstr "" 1997msgstr ""
1930 1998
1931#: plugins/check_nwstat.c:293 plugins/check_nwstat.c:318 1999#: plugins/check_nwstat.c:297 plugins/check_nwstat.c:322
1932#: plugins/check_nwstat.c:438 plugins/check_nwstat.c:459 2000#: plugins/check_nwstat.c:442 plugins/check_nwstat.c:463
1933#: plugins/check_nwstat.c:491 plugins/check_nwstat.c:512 2001#: plugins/check_nwstat.c:495 plugins/check_nwstat.c:516
1934#, c-format 2002#, c-format
1935msgid "Error: Volume '%s' does not exist!" 2003msgid "Error: Volume '%s' does not exist!"
1936msgstr "" 2004msgstr ""
1937 2005
1938#: plugins/check_nwstat.c:302 2006#: plugins/check_nwstat.c:306
1939#, c-format 2007#, c-format
1940msgid "%s%lu KB free on volume %s" 2008msgid "%s%lu KB free on volume %s"
1941msgstr "" 2009msgstr ""
1942 2010
1943#: plugins/check_nwstat.c:303 plugins/check_nwstat.c:446 2011#: plugins/check_nwstat.c:307 plugins/check_nwstat.c:450
1944#: plugins/check_nwstat.c:499 2012#: plugins/check_nwstat.c:503
1945msgid "Only " 2013msgid "Only "
1946msgstr "" 2014msgstr ""
1947 2015
1948#: plugins/check_nwstat.c:338 2016#: plugins/check_nwstat.c:342
1949#, c-format 2017#, c-format
1950msgid "%lu MB (%lu%%) free on volume %s" 2018msgid "%lu MB (%lu%%) free on volume %s"
1951msgstr "" 2019msgstr ""
1952 2020
1953#: plugins/check_nwstat.c:357 2021#: plugins/check_nwstat.c:361
1954#, c-format 2022#, c-format
1955msgid "Directory Services Database is %s (DS version %s)" 2023msgid "Directory Services Database is %s (DS version %s)"
1956msgstr "" 2024msgstr ""
1957 2025
1958#: plugins/check_nwstat.c:371 2026#: plugins/check_nwstat.c:375
1959#, c-format 2027#, c-format
1960msgid "Logins are %s" 2028msgid "Logins are %s"
1961msgstr "" 2029msgstr ""
1962 2030
1963#: plugins/check_nwstat.c:371 2031#: plugins/check_nwstat.c:375
1964msgid "enabled" 2032msgid "enabled"
1965msgstr "" 2033msgstr ""
1966 2034
1967#: plugins/check_nwstat.c:371 2035#: plugins/check_nwstat.c:375
1968msgid "disabled" 2036msgid "disabled"
1969msgstr "" 2037msgstr ""
1970 2038
1971#: plugins/check_nwstat.c:404 2039#: plugins/check_nwstat.c:408
1972#, c-format 2040#, c-format
1973msgid "%lu of %lu (%lu%%) packet receive buffers used" 2041msgid "%lu of %lu (%lu%%) packet receive buffers used"
1974msgstr "" 2042msgstr ""
1975 2043
1976#: plugins/check_nwstat.c:425 2044#: plugins/check_nwstat.c:429
1977#, c-format 2045#, c-format
1978msgid "%lu entries in SAP table" 2046msgid "%lu entries in SAP table"
1979msgstr "" 2047msgstr ""
1980 2048
1981#: plugins/check_nwstat.c:427 2049#: plugins/check_nwstat.c:431
1982#, c-format 2050#, c-format
1983msgid "%lu entries in SAP table for SAP type %d" 2051msgid "%lu entries in SAP table for SAP type %d"
1984msgstr "" 2052msgstr ""
1985 2053
1986#: plugins/check_nwstat.c:446 2054#: plugins/check_nwstat.c:450
1987#, c-format 2055#, c-format
1988msgid "%s%lu KB purgeable on volume %s" 2056msgid "%s%lu KB purgeable on volume %s"
1989msgstr "" 2057msgstr ""
1990 2058
1991#: plugins/check_nwstat.c:479 2059#: plugins/check_nwstat.c:483
1992#, c-format 2060#, c-format
1993msgid "%lu MB (%lu%%) purgeable on volume %s" 2061msgid "%lu MB (%lu%%) purgeable on volume %s"
1994msgstr "" 2062msgstr ""
1995 2063
1996#: plugins/check_nwstat.c:499 2064#: plugins/check_nwstat.c:503
1997#, c-format 2065#, c-format
1998msgid "%s%lu KB not yet purgeable on volume %s" 2066msgid "%s%lu KB not yet purgeable on volume %s"
1999msgstr "" 2067msgstr ""
2000 2068
2001#: plugins/check_nwstat.c:532 2069#: plugins/check_nwstat.c:536
2002#, c-format 2070#, c-format
2003msgid "%lu MB (%lu%%) not yet purgeable on volume %s" 2071msgid "%lu MB (%lu%%) not yet purgeable on volume %s"
2004msgstr "" 2072msgstr ""
2005 2073
2006#: plugins/check_nwstat.c:550 2074#: plugins/check_nwstat.c:554
2007#, c-format 2075#, c-format
2008msgid "%lu open files" 2076msgid "%lu open files"
2009msgstr "" 2077msgstr ""
2010 2078
2011#: plugins/check_nwstat.c:567 2079#: plugins/check_nwstat.c:571
2012#, c-format 2080#, c-format
2013msgid "%lu abended threads" 2081msgid "%lu abended threads"
2014msgstr "" 2082msgstr ""
2015 2083
2016#: plugins/check_nwstat.c:592 2084#: plugins/check_nwstat.c:596
2017#, c-format 2085#, c-format
2018msgid "%lu current service processes (%lu max)" 2086msgid "%lu current service processes (%lu max)"
2019msgstr "" 2087msgstr ""
2020 2088
2021#: plugins/check_nwstat.c:608 2089#: plugins/check_nwstat.c:612
2022msgid "Critical: Time not in sync with network!" 2090msgid "Critical: Time not in sync with network!"
2023msgstr "" 2091msgstr ""
2024 2092
2025#: plugins/check_nwstat.c:611 2093#: plugins/check_nwstat.c:615
2026msgid "OK! Time in sync with network!" 2094msgid "OK! Time in sync with network!"
2027msgstr "" 2095msgstr ""
2028 2096
2029#: plugins/check_nwstat.c:627 2097#: plugins/check_nwstat.c:631
2030#, c-format 2098#, c-format
2031msgid "LRU sitting time = %lu seconds" 2099msgid "LRU sitting time = %lu seconds"
2032msgstr "" 2100msgstr ""
2033 2101
2034#: plugins/check_nwstat.c:643 2102#: plugins/check_nwstat.c:647
2035#, c-format 2103#, c-format
2036msgid "dirty cache buffers = %lu%% of the total" 2104msgid "dirty cache buffers = %lu%% of the total"
2037msgstr "" 2105msgstr ""
2038 2106
2039#: plugins/check_nwstat.c:658 2107#: plugins/check_nwstat.c:662
2040#, c-format 2108#, c-format
2041msgid "total cache buffers = %lu%% of the original" 2109msgid "total cache buffers = %lu%% of the original"
2042msgstr "" 2110msgstr ""
2043 2111
2044#: plugins/check_nwstat.c:668 2112#: plugins/check_nwstat.c:672
2045#, c-format 2113#, c-format
2046msgid "NDS Version %s" 2114msgid "NDS Version %s"
2047msgstr "" 2115msgstr ""
2048 2116
2049#: plugins/check_nwstat.c:677 2117#: plugins/check_nwstat.c:681
2050#, c-format 2118#, c-format
2051msgid "Up %s" 2119msgid "Up %s"
2052msgstr "" 2120msgstr ""
2053 2121
2054#: plugins/check_nwstat.c:687 2122#: plugins/check_nwstat.c:691
2055#, c-format 2123#, c-format
2056msgid "Module %s version %s is loaded" 2124msgid "Module %s version %s is loaded"
2057msgstr "" 2125msgstr ""
2058 2126
2059#: plugins/check_nwstat.c:690 2127#: plugins/check_nwstat.c:694
2060#, c-format 2128#, c-format
2061msgid "Module %s is not loaded" 2129msgid "Module %s is not loaded"
2062msgstr "" 2130msgstr ""
2063 2131
2064#: plugins/check_nwstat.c:695 plugins/check_overcr.c:270 2132#: plugins/check_nwstat.c:699 plugins/check_overcr.c:270
2065msgid "Nothing to check!\n" 2133msgid "Nothing to check!\n"
2066msgstr "" 2134msgstr ""
2067 2135
2068#: plugins/check_nwstat.c:906 2136#: plugins/check_nwstat.c:912
2069#, c-format 2137#, c-format
2070msgid "" 2138msgid ""
2071"Usage: %s This plugin attempts to contact the MRTGEXT NLM running\n" 2139"Usage: %s This plugin attempts to contact the MRTGEXT NLM running\n"
@@ -2073,7 +2141,7 @@ msgid ""
2073"\n" 2141"\n"
2074msgstr "" 2142msgstr ""
2075 2143
2076#: plugins/check_nwstat.c:917 2144#: plugins/check_nwstat.c:923
2077msgid "" 2145msgid ""
2078" -v, --variable=STRING\n" 2146" -v, --variable=STRING\n"
2079" Variable to check. Valid variables include:\n" 2147" Variable to check. Valid variables include:\n"
@@ -2085,7 +2153,7 @@ msgid ""
2085" UPTIME = server uptime\n" 2153" UPTIME = server uptime\n"
2086msgstr "" 2154msgstr ""
2087 2155
2088#: plugins/check_nwstat.c:927 2156#: plugins/check_nwstat.c:933
2089msgid "" 2157msgid ""
2090" LTCH = percent long term cache hits\n" 2158" LTCH = percent long term cache hits\n"
2091" CBUFF = current number of cache buffers\n" 2159" CBUFF = current number of cache buffers\n"
@@ -2094,7 +2162,7 @@ msgid ""
2094" TCB = dirty cache buffers as a percentage of the original\n" 2162" TCB = dirty cache buffers as a percentage of the original\n"
2095msgstr "" 2163msgstr ""
2096 2164
2097#: plugins/check_nwstat.c:934 2165#: plugins/check_nwstat.c:940
2098msgid "" 2166msgid ""
2099" OFILES = number of open files\n" 2167" OFILES = number of open files\n"
2100" VPF<vol> = percent free space on volume <vol>\n" 2168" VPF<vol> = percent free space on volume <vol>\n"
@@ -2105,7 +2173,7 @@ msgid ""
2105" VKNP<vol> = KB of not yet purgeable space on volume <vol>\n" 2173" VKNP<vol> = KB of not yet purgeable space on volume <vol>\n"
2106msgstr "" 2174msgstr ""
2107 2175
2108#: plugins/check_nwstat.c:943 2176#: plugins/check_nwstat.c:949
2109msgid "" 2177msgid ""
2110" LRUM = LRU sitting time in minutes\n" 2178" LRUM = LRU sitting time in minutes\n"
2111" LRUS = LRU sitting time in seconds\n" 2179" LRUS = LRU sitting time in seconds\n"
@@ -2117,7 +2185,7 @@ msgid ""
2117" SAPENTRIES<n> = number of entries in the SAP table for SAP type <n>\n" 2185" SAPENTRIES<n> = number of entries in the SAP table for SAP type <n>\n"
2118msgstr "" 2186msgstr ""
2119 2187
2120#: plugins/check_nwstat.c:953 2188#: plugins/check_nwstat.c:959
2121msgid "" 2189msgid ""
2122" TSYNC = timesync status \n" 2190" TSYNC = timesync status \n"
2123" LOGINS = check to see if logins are enabled\n" 2191" LOGINS = check to see if logins are enabled\n"
@@ -2126,7 +2194,7 @@ msgid ""
2126" (e.g. \"NLM:TSANDS.NLM\")\n" 2194" (e.g. \"NLM:TSANDS.NLM\")\n"
2127msgstr "" 2195msgstr ""
2128 2196
2129#: plugins/check_nwstat.c:960 2197#: plugins/check_nwstat.c:966
2130msgid "" 2198msgid ""
2131" -w, --warning=INTEGER\n" 2199" -w, --warning=INTEGER\n"
2132" Threshold which will result in a warning status\n" 2200" Threshold which will result in a warning status\n"
@@ -2136,7 +2204,7 @@ msgid ""
2136" Include server version string in results\n" 2204" Include server version string in results\n"
2137msgstr "" 2205msgstr ""
2138 2206
2139#: plugins/check_nwstat.c:970 2207#: plugins/check_nwstat.c:976
2140msgid "" 2208msgid ""
2141"\n" 2209"\n"
2142"Notes:\n" 2210"Notes:\n"
@@ -2148,7 +2216,7 @@ msgid ""
2148" TCB, LRUS and LRUM.\n" 2216" TCB, LRUS and LRUM.\n"
2149msgstr "" 2217msgstr ""
2150 2218
2151#: plugins/check_nwstat.c:987 2219#: plugins/check_nwstat.c:993
2152#, c-format 2220#, c-format
2153msgid "" 2221msgid ""
2154"Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n" 2222"Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n"
@@ -2265,182 +2333,172 @@ msgstr ""
2265msgid "PGSQL: CRITICAL - no connection to '%s' (%s).\n" 2333msgid "PGSQL: CRITICAL - no connection to '%s' (%s).\n"
2266msgstr "" 2334msgstr ""
2267 2335
2268#: plugins/check_pgsql.c:161 2336#: plugins/check_pgsql.c:169
2269#, c-format 2337#, c-format
2270msgid "PGSQL: CRITICAL - database %s (%d sec.)\n" 2338msgid "PGSQL: %s - database %s (%d sec.)|%s\n"
2271msgstr "" 2339msgstr ""
2272 2340
2273#: plugins/check_pgsql.c:167 2341#: plugins/check_pgsql.c:219 plugins/check_snmp.c:449 plugins/negate.c:183
2274#, c-format
2275msgid "PGSQL: WARNING - database %s (%d sec.)\n"
2276msgstr ""
2277
2278#: plugins/check_pgsql.c:172
2279#, c-format
2280msgid "PGSQL: ok - database %s (%d sec.)\n"
2281msgstr ""
2282
2283#: plugins/check_pgsql.c:220 plugins/check_snmp.c:449 plugins/negate.c:183
2284msgid "Timeout Interval must be an integer" 2342msgid "Timeout Interval must be an integer"
2285msgstr "" 2343msgstr ""
2286 2344
2287#: plugins/check_pgsql.c:226 plugins/check_pgsql.c:232 2345#: plugins/check_pgsql.c:225 plugins/check_pgsql.c:231
2288msgid "Invalid critical threshold" 2346msgid "Invalid critical threshold"
2289msgstr "" 2347msgstr ""
2290 2348
2291#: plugins/check_pgsql.c:238 2349#: plugins/check_pgsql.c:237
2292msgid "You gave an invalid host name" 2350msgid "You gave an invalid host name"
2293msgstr "" 2351msgstr ""
2294 2352
2295#: plugins/check_pgsql.c:244 2353#: plugins/check_pgsql.c:243
2296msgid "Port must be an integer" 2354msgid "Port must be an integer"
2297msgstr "" 2355msgstr ""
2298 2356
2299#: plugins/check_pgsql.c:250 2357#: plugins/check_pgsql.c:249
2300msgid "Database name is not valid" 2358msgid "Database name is not valid"
2301msgstr "" 2359msgstr ""
2302 2360
2303#: plugins/check_pgsql.c:256 2361#: plugins/check_pgsql.c:255
2304msgid "user name is not valid" 2362msgid "user name is not valid"
2305msgstr "" 2363msgstr ""
2306 2364
2307#: plugins/check_pgsql.c:390 2365#: plugins/check_pgsql.c:389
2308msgid "" 2366msgid ""
2309"Test whether a PostgreSQL DBMS is accepting connections.\n" 2367"Test whether a PostgreSQL DBMS is accepting connections.\n"
2310"\n" 2368"\n"
2311msgstr "" 2369msgstr ""
2312 2370
2313#: plugins/check_ping.c:80 2371#: plugins/check_ping.c:82
2314msgid "Could not parse arguments" 2372msgid "Could not parse arguments"
2315msgstr "" 2373msgstr ""
2316 2374
2317#: plugins/check_ping.c:123 2375#: plugins/check_ping.c:124
2318msgid "Error: Could not interpret output from ping command\n" 2376msgid "Error: Could not interpret output from ping command\n"
2319msgstr "" 2377msgstr ""
2320 2378
2321#: plugins/check_ping.c:139 2379#: plugins/check_ping.c:140
2322#, c-format 2380#, c-format
2323msgid "PING %s - %sPacket loss = %d%%" 2381msgid "PING %s - %sPacket loss = %d%%"
2324msgstr "" 2382msgstr ""
2325 2383
2326#: plugins/check_ping.c:142 2384#: plugins/check_ping.c:143
2327#, c-format 2385#, c-format
2328msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms" 2386msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms"
2329msgstr "" 2387msgstr ""
2330 2388
2331#: plugins/check_ping.c:233 2389#: plugins/check_ping.c:235
2332msgid "Could not realloc() addresses\n" 2390msgid "Could not realloc() addresses\n"
2333msgstr "" 2391msgstr ""
2334 2392
2335#: plugins/check_ping.c:248 plugins/check_ping.c:328 2393#: plugins/check_ping.c:250 plugins/check_ping.c:331
2336#, c-format 2394#, c-format
2337msgid "<max_packets> (%s) must be a non-negative number\n" 2395msgid "<max_packets> (%s) must be a non-negative number\n"
2338msgstr "" 2396msgstr ""
2339 2397
2340#: plugins/check_ping.c:271 2398#: plugins/check_ping.c:273
2341#, c-format 2399#, c-format
2342msgid "" 2400msgid ""
2343"Invalid host name/address: %s\n" 2401"Invalid host name/address: %s\n"
2344"\n" 2402"\n"
2345msgstr "" 2403msgstr ""
2346 2404
2347#: plugins/check_ping.c:282 2405#: plugins/check_ping.c:285
2348#, c-format 2406#, c-format
2349msgid "<wpl> (%s) must be an integer percentage\n" 2407msgid "<wpl> (%s) must be an integer percentage\n"
2350msgstr "" 2408msgstr ""
2351 2409
2352#: plugins/check_ping.c:293 2410#: plugins/check_ping.c:296
2353#, c-format 2411#, c-format
2354msgid "<cpl> (%s) must be an integer percentage\n" 2412msgid "<cpl> (%s) must be an integer percentage\n"
2355msgstr "" 2413msgstr ""
2356 2414
2357#: plugins/check_ping.c:304 2415#: plugins/check_ping.c:307
2358#, c-format 2416#, c-format
2359msgid "<wrta> (%s) must be a non-negative number\n" 2417msgid "<wrta> (%s) must be a non-negative number\n"
2360msgstr "" 2418msgstr ""
2361 2419
2362#: plugins/check_ping.c:315 2420#: plugins/check_ping.c:318
2363#, c-format 2421#, c-format
2364msgid "<crta> (%s) must be a non-negative number\n" 2422msgid "<crta> (%s) must be a non-negative number\n"
2365msgstr "" 2423msgstr ""
2366 2424
2367#: plugins/check_ping.c:346 2425#: plugins/check_ping.c:349
2368#, c-format 2426#, c-format
2369msgid "" 2427msgid ""
2370"%s: Warning threshold must be integer or percentage!\n" 2428"%s: Warning threshold must be integer or percentage!\n"
2371"\n" 2429"\n"
2372msgstr "" 2430msgstr ""
2373 2431
2374#: plugins/check_ping.c:357 2432#: plugins/check_ping.c:360
2375msgid "<wrta> was not set\n" 2433msgid "<wrta> was not set\n"
2376msgstr "" 2434msgstr ""
2377 2435
2378#: plugins/check_ping.c:361 2436#: plugins/check_ping.c:364
2379msgid "<crta> was not set\n" 2437msgid "<crta> was not set\n"
2380msgstr "" 2438msgstr ""
2381 2439
2382#: plugins/check_ping.c:365 2440#: plugins/check_ping.c:368
2383msgid "<wpl> was not set\n" 2441msgid "<wpl> was not set\n"
2384msgstr "" 2442msgstr ""
2385 2443
2386#: plugins/check_ping.c:369 2444#: plugins/check_ping.c:372
2387msgid "<cpl> was not set\n" 2445msgid "<cpl> was not set\n"
2388msgstr "" 2446msgstr ""
2389 2447
2390#: plugins/check_ping.c:373 2448#: plugins/check_ping.c:376
2391#, c-format 2449#, c-format
2392msgid "<wrta> (%f) cannot be larger than <crta> (%f)\n" 2450msgid "<wrta> (%f) cannot be larger than <crta> (%f)\n"
2393msgstr "" 2451msgstr ""
2394 2452
2395#: plugins/check_ping.c:377 2453#: plugins/check_ping.c:380
2396#, c-format 2454#, c-format
2397msgid "<wpl> (%d) cannot be larger than <cpl> (%d)\n" 2455msgid "<wpl> (%d) cannot be larger than <cpl> (%d)\n"
2398msgstr "" 2456msgstr ""
2399 2457
2400#: plugins/check_ping.c:390 2458#: plugins/check_ping.c:393
2401msgid "Invalid host name/address" 2459msgid "Invalid host name/address"
2402msgstr "" 2460msgstr ""
2403 2461
2404#: plugins/check_ping.c:408 2462#: plugins/check_ping.c:411
2405#, c-format 2463#, c-format
2406msgid "Cannot open pipe: %s" 2464msgid "Cannot open pipe: %s"
2407msgstr "" 2465msgstr ""
2408 2466
2409#: plugins/check_ping.c:412 2467#: plugins/check_ping.c:415
2410#, c-format 2468#, c-format
2411msgid "Cannot open stderr for %s\n" 2469msgid "Cannot open stderr for %s\n"
2412msgstr "" 2470msgstr ""
2413 2471
2414#: plugins/check_ping.c:468 2472#: plugins/check_ping.c:471
2415#, c-format 2473#, c-format
2416msgid "PING CRITICAL - Network unreachable (%s)" 2474msgid "PING CRITICAL - Network unreachable (%s)"
2417msgstr "" 2475msgstr ""
2418 2476
2419#: plugins/check_ping.c:470 2477#: plugins/check_ping.c:473
2420#, c-format 2478#, c-format
2421msgid "PING CRITICAL - Host Unreachable (%s)" 2479msgid "PING CRITICAL - Host Unreachable (%s)"
2422msgstr "" 2480msgstr ""
2423 2481
2424#: plugins/check_ping.c:472 2482#: plugins/check_ping.c:475
2425#, c-format 2483#, c-format
2426msgid "PING CRITICAL - Host not found (%s)" 2484msgid "PING CRITICAL - Host not found (%s)"
2427msgstr "" 2485msgstr ""
2428 2486
2429#: plugins/check_ping.c:479 2487#: plugins/check_ping.c:482
2430msgid "unable to realloc warn_text" 2488msgid "unable to realloc warn_text"
2431msgstr "" 2489msgstr ""
2432 2490
2433#: plugins/check_ping.c:505 plugins/check_procs.c:586 2491#: plugins/check_ping.c:508 plugins/check_procs.c:582
2434msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>" 2492msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"
2435msgstr "" 2493msgstr ""
2436 2494
2437#: plugins/check_ping.c:508 2495#: plugins/check_ping.c:511
2438msgid "" 2496msgid ""
2439"Use ping to check connection statistics for a remote host.\n" 2497"Use ping to check connection statistics for a remote host.\n"
2440"\n" 2498"\n"
2441msgstr "" 2499msgstr ""
2442 2500
2443#: plugins/check_ping.c:516 2501#: plugins/check_ping.c:519
2444#, c-format 2502#, c-format
2445msgid "" 2503msgid ""
2446"-H, --hostname=HOST\n" 2504"-H, --hostname=HOST\n"
@@ -2455,7 +2513,7 @@ msgid ""
2455" show HTML in the plugin output (obsoleted by urlize)\n" 2513" show HTML in the plugin output (obsoleted by urlize)\n"
2456msgstr "" 2514msgstr ""
2457 2515
2458#: plugins/check_ping.c:531 2516#: plugins/check_ping.c:534
2459#, c-format 2517#, c-format
2460msgid "" 2518msgid ""
2461"THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel\n" 2519"THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel\n"
@@ -2464,7 +2522,7 @@ msgid ""
2464"\n" 2522"\n"
2465msgstr "" 2523msgstr ""
2466 2524
2467#: plugins/check_ping.c:536 2525#: plugins/check_ping.c:539
2468msgid "" 2526msgid ""
2469"This plugin uses the ping command to probe the specified host for packet " 2527"This plugin uses the ping command to probe the specified host for packet "
2470"loss\n" 2528"loss\n"
@@ -2476,169 +2534,168 @@ msgid ""
2476"\n" 2534"\n"
2477msgstr "" 2535msgstr ""
2478 2536
2479#: plugins/check_procs.c:116 2537#: plugins/check_procs.c:120
2480msgid "Unable to parse command line\n" 2538msgid "Unable to parse command line\n"
2481msgstr "" 2539msgstr ""
2482 2540
2483#: plugins/check_procs.c:119 2541#: plugins/check_procs.c:123
2484#, c-format 2542#, c-format
2485msgid "CMD: %s\n" 2543msgid "CMD: %s\n"
2486msgstr "" 2544msgstr ""
2487 2545
2488#: plugins/check_procs.c:215 2546#: plugins/check_procs.c:229
2489#, c-format 2547#, c-format
2490msgid "Not parseable: %s" 2548msgid "Not parseable: %s"
2491msgstr "" 2549msgstr ""
2492 2550
2493#: plugins/check_procs.c:222 2551#: plugins/check_procs.c:236
2494#, c-format 2552#, c-format
2495msgid "STDERR: %s" 2553msgid "STDERR: %s"
2496msgstr "" 2554msgstr ""
2497 2555
2498#: plugins/check_procs.c:224 2556#: plugins/check_procs.c:238
2499msgid "System call sent warnings to stderr\n" 2557msgid "System call sent warnings to stderr\n"
2500msgstr "" 2558msgstr ""
2501 2559
2502#: plugins/check_procs.c:231 2560#: plugins/check_procs.c:245
2503msgid "System call returned nonzero status\n" 2561msgid "System call returned nonzero status\n"
2504msgstr "" 2562msgstr ""
2505 2563
2506#: plugins/check_procs.c:236 plugins/check_users.c:96 2564#: plugins/check_procs.c:250 plugins/check_users.c:99
2507msgid "Unable to read output\n" 2565msgid "Unable to read output\n"
2508msgstr "" 2566msgstr ""
2509 2567
2510#: plugins/check_procs.c:253 2568#: plugins/check_procs.c:267
2511#, c-format 2569#, c-format
2512msgid "%d warn out of " 2570msgid "%d warn out of "
2513msgstr "" 2571msgstr ""
2514 2572
2515#: plugins/check_procs.c:258 2573#: plugins/check_procs.c:272
2516#, c-format 2574#, c-format
2517msgid "%d crit, %d warn out of " 2575msgid "%d crit, %d warn out of "
2518msgstr "" 2576msgstr ""
2519 2577
2520#: plugins/check_procs.c:261 2578#: plugins/check_procs.c:275
2521#, c-format 2579#, c-format
2522msgid "%d process" 2580msgid "%d process"
2523msgid_plural "%d processes" 2581msgid_plural "%d processes"
2524msgstr[0] "" 2582msgstr[0] ""
2525msgstr[1] "" 2583msgstr[1] ""
2526 2584
2527#: plugins/check_procs.c:264 2585#: plugins/check_procs.c:278
2528#, c-format 2586#, c-format
2529msgid " with %s" 2587msgid " with %s"
2530msgstr "" 2588msgstr ""
2531 2589
2532#: plugins/check_procs.c:328 plugins/check_ssh.c:117 2590#: plugins/check_procs.c:342 plugins/check_ssh.c:117
2533msgid "" 2591msgid ""
2534"Timeout Interval must be an integer!\n" 2592"Timeout Interval must be an integer!\n"
2535"\n" 2593"\n"
2536msgstr "" 2594msgstr ""
2537 2595
2538#: plugins/check_procs.c:342 2596#: plugins/check_procs.c:356
2539msgid "" 2597msgid ""
2540"Critical Process Count must be an integer!\n" 2598"Critical Process Count must be an integer!\n"
2541"\n" 2599"\n"
2542msgstr "" 2600msgstr ""
2543 2601
2544#: plugins/check_procs.c:354 2602#: plugins/check_procs.c:368
2545#, c-format
2546msgid "" 2603msgid ""
2547"%s: Warning Process Count must be an integer!\n" 2604"Warning Process Count must be an integer!\n"
2548"\n" 2605"\n"
2549msgstr "" 2606msgstr ""
2550 2607
2551#: plugins/check_procs.c:362 2608#: plugins/check_procs.c:376
2552#, c-format 2609#, c-format
2553msgid "" 2610msgid ""
2554"%s: Parent Process ID must be an integer!\n" 2611"%s: Parent Process ID must be an integer!\n"
2555"\n" 2612"\n"
2556msgstr "" 2613msgstr ""
2557 2614
2558#: plugins/check_procs.c:371 plugins/check_procs.c:484 2615#: plugins/check_procs.c:382 plugins/check_procs.c:480
2559#, c-format 2616#, c-format
2560msgid "%s%sSTATE = %s" 2617msgid "%s%sSTATE = %s"
2561msgstr "" 2618msgstr ""
2562 2619
2563#: plugins/check_procs.c:380 2620#: plugins/check_procs.c:391
2564#, c-format 2621#, c-format
2565msgid "UID %d was not found\n" 2622msgid "UID %s was not found\n"
2566msgstr "" 2623msgstr ""
2567 2624
2568#: plugins/check_procs.c:389 2625#: plugins/check_procs.c:397
2569#, c-format 2626#, c-format
2570msgid "User name %s was not found\n" 2627msgid "User name %s was not found\n"
2571msgstr "" 2628msgstr ""
2572 2629
2573#: plugins/check_procs.c:397 2630#: plugins/check_procs.c:402
2574#, c-format 2631#, c-format
2575msgid "%s%sUID = %d (%s)" 2632msgid "%s%sUID = %d (%s)"
2576msgstr "" 2633msgstr ""
2577 2634
2578#: plugins/check_procs.c:406 2635#: plugins/check_procs.c:411
2579#, c-format 2636#, c-format
2580msgid "%s%scommand name '%s'" 2637msgid "%s%scommand name '%s'"
2581msgstr "" 2638msgstr ""
2582 2639
2583#: plugins/check_procs.c:415 2640#: plugins/check_procs.c:420
2584#, c-format 2641#, c-format
2585msgid "%s%sargs '%s'" 2642msgid "%s%sargs '%s'"
2586msgstr "" 2643msgstr ""
2587 2644
2588#: plugins/check_procs.c:420 2645#: plugins/check_procs.c:425
2589#, c-format 2646#, c-format
2590msgid "%s%sRSS >= %d" 2647msgid "%s%sRSS >= %d"
2591msgstr "" 2648msgstr ""
2592 2649
2593#: plugins/check_procs.c:424 2650#: plugins/check_procs.c:429
2594#, c-format 2651#, c-format
2595msgid "" 2652msgid ""
2596"%s: RSS must be an integer!\n" 2653"%s: RSS must be an integer!\n"
2597"\n" 2654"\n"
2598msgstr "" 2655msgstr ""
2599 2656
2600#: plugins/check_procs.c:430 2657#: plugins/check_procs.c:432
2601#, c-format 2658#, c-format
2602msgid "%s%sVSZ >= %d" 2659msgid "%s%sVSZ >= %d"
2603msgstr "" 2660msgstr ""
2604 2661
2605#: plugins/check_procs.c:434 2662#: plugins/check_procs.c:436
2606#, c-format 2663#, c-format
2607msgid "" 2664msgid ""
2608"%s: VSZ must be an integer!\n" 2665"%s: VSZ must be an integer!\n"
2609"\n" 2666"\n"
2610msgstr "" 2667msgstr ""
2611 2668
2612#: plugins/check_procs.c:441 2669#: plugins/check_procs.c:440
2613#, c-format 2670#, c-format
2614msgid "%s%sPCPU >= %.2f" 2671msgid "%s%sPCPU >= %.2f"
2615msgstr "" 2672msgstr ""
2616 2673
2617#: plugins/check_procs.c:445 2674#: plugins/check_procs.c:444
2618#, c-format 2675#, c-format
2619msgid "" 2676msgid ""
2620"%s: PCPU must be a float!\n" 2677"%s: PCPU must be a float!\n"
2621"\n" 2678"\n"
2622msgstr "" 2679msgstr ""
2623 2680
2624#: plugins/check_procs.c:467 2681#: plugins/check_procs.c:463
2625#, c-format 2682#, c-format
2626msgid "" 2683msgid ""
2627"%s: metric must be one of PROCS, VSZ, RSS, CPU!\n" 2684"%s: metric must be one of PROCS, VSZ, RSS, CPU!\n"
2628"\n" 2685"\n"
2629msgstr "" 2686msgstr ""
2630 2687
2631#: plugins/check_procs.c:504 2688#: plugins/check_procs.c:500
2632#, c-format 2689#, c-format
2633msgid "wmax (%d) cannot be greater than cmax (%d)\n" 2690msgid "wmax (%d) cannot be greater than cmax (%d)\n"
2634msgstr "" 2691msgstr ""
2635 2692
2636#: plugins/check_procs.c:508 2693#: plugins/check_procs.c:504
2637#, c-format 2694#, c-format
2638msgid "wmin (%d) cannot be less than cmin (%d)\n" 2695msgid "wmin (%d) cannot be less than cmin (%d)\n"
2639msgstr "" 2696msgstr ""
2640 2697
2641#: plugins/check_procs.c:589 2698#: plugins/check_procs.c:585
2642msgid "" 2699msgid ""
2643"Checks all processes and generates WARNING or CRITICAL states if the " 2700"Checks all processes and generates WARNING or CRITICAL states if the "
2644"specified\n" 2701"specified\n"
@@ -2649,7 +2706,7 @@ msgid ""
2649"\n" 2706"\n"
2650msgstr "" 2707msgstr ""
2651 2708
2652#: plugins/check_procs.c:596 2709#: plugins/check_procs.c:592
2653msgid "" 2710msgid ""
2654"\n" 2711"\n"
2655"Required Arguments:\n" 2712"Required Arguments:\n"
@@ -2659,7 +2716,7 @@ msgid ""
2659" Generate critical state if metric is outside this range\n" 2716" Generate critical state if metric is outside this range\n"
2660msgstr "" 2717msgstr ""
2661 2718
2662#: plugins/check_procs.c:603 2719#: plugins/check_procs.c:599
2663msgid "" 2720msgid ""
2664"\n" 2721"\n"
2665"Optional Arguments:\n" 2722"Optional Arguments:\n"
@@ -2673,7 +2730,7 @@ msgid ""
2673" Extra information. Up to 3 verbosity levels\n" 2730" Extra information. Up to 3 verbosity levels\n"
2674msgstr "" 2731msgstr ""
2675 2732
2676#: plugins/check_procs.c:614 2733#: plugins/check_procs.c:610
2677msgid "" 2734msgid ""
2678"\n" 2735"\n"
2679"Optional Filters:\n" 2736"Optional Filters:\n"
@@ -2689,7 +2746,7 @@ msgid ""
2689" Only scan for processes with rss higher than indicated.\n" 2746" Only scan for processes with rss higher than indicated.\n"
2690msgstr "" 2747msgstr ""
2691 2748
2692#: plugins/check_procs.c:627 2749#: plugins/check_procs.c:623
2693msgid "" 2750msgid ""
2694" -P, --pcpu=PCPU\n" 2751" -P, --pcpu=PCPU\n"
2695" Only scan for processes with pcpu higher than indicated.\n" 2752" Only scan for processes with pcpu higher than indicated.\n"
@@ -2701,7 +2758,7 @@ msgid ""
2701" Only scan for exact matches of COMMAND (without path).\n" 2758" Only scan for exact matches of COMMAND (without path).\n"
2702msgstr "" 2759msgstr ""
2703 2760
2704#: plugins/check_procs.c:637 2761#: plugins/check_procs.c:633
2705msgid "" 2762msgid ""
2706"\n" 2763"\n"
2707"RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If\n" 2764"RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If\n"
@@ -2710,7 +2767,7 @@ msgid ""
2710"\n" 2767"\n"
2711msgstr "" 2768msgstr ""
2712 2769
2713#: plugins/check_procs.c:642 2770#: plugins/check_procs.c:638
2714msgid "" 2771msgid ""
2715"This plugin checks the number of currently running processes and\n" 2772"This plugin checks the number of currently running processes and\n"
2716"generates WARNING or CRITICAL states if the process count is outside\n" 2773"generates WARNING or CRITICAL states if the process count is outside\n"
@@ -2720,7 +2777,7 @@ msgid ""
2720"\n" 2777"\n"
2721msgstr "" 2778msgstr ""
2722 2779
2723#: plugins/check_procs.c:649 2780#: plugins/check_procs.c:645
2724msgid "" 2781msgid ""
2725"Examples:\n" 2782"Examples:\n"
2726" check_procs -w 2:2 -c 2:1024 -C portsentry\n" 2783" check_procs -w 2:2 -c 2:1024 -C portsentry\n"
@@ -2733,61 +2790,65 @@ msgid ""
2733"\n" 2790"\n"
2734" check_procs -w 50000 -c 100000 --metric=VSZ\n" 2791" check_procs -w 50000 -c 100000 --metric=VSZ\n"
2735" Alert if vsz of any processes over 50K or 100K\n" 2792" Alert if vsz of any processes over 50K or 100K\n"
2793" check_procs -w 10 -c 20 --metric=CPU\n"
2794" Alert if cpu of any processes over 10% or 20%\n"
2736"\n" 2795"\n"
2737msgstr "" 2796msgstr ""
2738 2797
2739#: plugins/check_radius.c:116 2798#: plugins/check_radius.c:117
2740msgid "Config file error" 2799msgid "Config file error"
2741msgstr "" 2800msgstr ""
2742 2801
2743#: plugins/check_radius.c:123 2802#: plugins/check_radius.c:125
2744msgid "Out of Memory?" 2803msgid "Out of Memory?"
2745msgstr "" 2804msgstr ""
2746 2805
2747#: plugins/check_radius.c:144 2806#: plugins/check_radius.c:146
2748msgid "Timeout" 2807msgid "Timeout"
2749msgstr "" 2808msgstr ""
2750 2809
2751#: plugins/check_radius.c:146 2810#: plugins/check_radius.c:148
2752msgid "Auth Error" 2811msgid "Auth Error"
2753msgstr "" 2812msgstr ""
2754 2813
2755#: plugins/check_radius.c:148 2814#: plugins/check_radius.c:150
2756msgid "Auth Failed" 2815msgid "Auth Failed"
2757msgstr "" 2816msgstr ""
2758 2817
2759#: plugins/check_radius.c:152 2818#: plugins/check_radius.c:154
2760msgid "Auth OK" 2819msgid "Auth OK"
2761msgstr "" 2820msgstr ""
2762 2821
2763#: plugins/check_radius.c:190 plugins/check_radius.c:261 2822#: plugins/check_radius.c:193 plugins/check_radius.c:267
2764msgid "Timeout interval must be a positive integer" 2823msgid "Timeout interval must be a positive integer"
2765msgstr "" 2824msgstr ""
2766 2825
2767#: plugins/check_radius.c:194 plugins/check_radius.c:255 2826#: plugins/check_radius.c:197 plugins/check_radius.c:261
2768msgid "Number of retries must be a positive integer" 2827msgid "Number of retries must be a positive integer"
2769msgstr "" 2828msgstr ""
2770 2829
2771#: plugins/check_radius.c:199 plugins/check_radius.c:237 2830#: plugins/check_radius.c:202 plugins/check_radius.c:240
2772msgid "Server port must be a positive integer" 2831msgid "Server port must be a positive integer"
2773msgstr "" 2832msgstr ""
2774 2833
2775#: plugins/check_radius.c:281 2834#: plugins/check_radius.c:287
2776msgid "Copyright (c) 1999 Robert August Vincent II\n" 2835msgid "Copyright (c) 1999 Robert August Vincent II\n"
2777msgstr "" 2836msgstr ""
2778 2837
2779#: plugins/check_radius.c:284 2838#: plugins/check_radius.c:290
2780msgid "" 2839msgid ""
2781"Tests to see if a radius server is accepting connections.\n" 2840"Tests to see if a radius server is accepting connections.\n"
2782"\n" 2841"\n"
2783msgstr "" 2842msgstr ""
2784 2843
2785#: plugins/check_radius.c:292 2844#: plugins/check_radius.c:298
2786msgid "" 2845msgid ""
2787" -u, --username=STRING\n" 2846" -u, --username=STRING\n"
2788" The user to authenticate\n" 2847" The user to authenticate\n"
2789" -p, --password=STRING\n" 2848" -p, --password=STRING\n"
2790" Password for autentication (SECURITY RISK)\n" 2849" Password for autentication (SECURITY RISK)\n"
2850" -n, --nas-id=STRING\n"
2851" NAS identifier\n"
2791" -F, --filename=STRING\n" 2852" -F, --filename=STRING\n"
2792" Configuration file\n" 2853" Configuration file\n"
2793" -e, --expect=STRING\n" 2854" -e, --expect=STRING\n"
@@ -2796,7 +2857,7 @@ msgid ""
2796" Number of times to retry a failed connection\n" 2857" Number of times to retry a failed connection\n"
2797msgstr "" 2858msgstr ""
2798 2859
2799#: plugins/check_radius.c:306 2860#: plugins/check_radius.c:314
2800msgid "" 2861msgid ""
2801"\n" 2862"\n"
2802"This plugin tests a radius server to see if it is accepting connections.\n" 2863"This plugin tests a radius server to see if it is accepting connections.\n"
@@ -2807,7 +2868,7 @@ msgid ""
2807"\n" 2868"\n"
2808msgstr "" 2869msgstr ""
2809 2870
2810#: plugins/check_radius.c:313 2871#: plugins/check_radius.c:321
2811msgid "" 2872msgid ""
2812"The password option presents a substantial security issue because the\n" 2873"The password option presents a substantial security issue because the\n"
2813"password can be determined by careful watching of the command line in\n" 2874"password can be determined by careful watching of the command line in\n"
@@ -2845,19 +2906,19 @@ msgstr ""
2845msgid "REAL %s - %d second response time\n" 2906msgid "REAL %s - %d second response time\n"
2846msgstr "" 2907msgstr ""
2847 2908
2848#: plugins/check_real.c:319 plugins/check_smtp.c:243 plugins/check_tcp.c:459 2909#: plugins/check_real.c:319 plugins/check_smtp.c:301 plugins/check_tcp.c:463
2849msgid "Server port must be a positive integer\n" 2910msgid "Server port must be a positive integer\n"
2850msgstr "" 2911msgstr ""
2851 2912
2852#: plugins/check_real.c:328 plugins/check_smtp.c:273 2913#: plugins/check_real.c:328 plugins/check_smtp.c:345
2853msgid "Warning time must be a nonnegative integer\n" 2914msgid "Warning time must be a nonnegative integer\n"
2854msgstr "" 2915msgstr ""
2855 2916
2856#: plugins/check_real.c:337 plugins/check_smtp.c:264 2917#: plugins/check_real.c:337 plugins/check_smtp.c:336
2857msgid "Critical time must be a nonnegative integer\n" 2918msgid "Critical time must be a nonnegative integer\n"
2858msgstr "" 2919msgstr ""
2859 2920
2860#: plugins/check_real.c:348 plugins/check_smtp.c:284 2921#: plugins/check_real.c:348 plugins/check_smtp.c:356
2861msgid "Time interval must be a nonnegative integer\n" 2922msgid "Time interval must be a nonnegative integer\n"
2862msgstr "" 2923msgstr ""
2863 2924
@@ -2893,47 +2954,54 @@ msgid ""
2893"values." 2954"values."
2894msgstr "" 2955msgstr ""
2895 2956
2896#: plugins/check_smtp.c:108 2957#: plugins/check_smtp.c:126
2897msgid "recv() failed\n" 2958msgid "recv() failed\n"
2898msgstr "" 2959msgstr ""
2899 2960
2900#: plugins/check_smtp.c:117 2961#: plugins/check_smtp.c:137
2901msgid "Invalid SMTP response received from host\n" 2962msgid "Invalid SMTP response received from host\n"
2902msgstr "" 2963msgstr ""
2903 2964
2904#: plugins/check_smtp.c:119 2965#: plugins/check_smtp.c:139
2905#, c-format 2966#, c-format
2906msgid "Invalid SMTP response received from host on port %d\n" 2967msgid "Invalid SMTP response received from host on port %d\n"
2907msgstr "" 2968msgstr ""
2908 2969
2909#: plugins/check_smtp.c:149 2970#: plugins/check_smtp.c:183 plugins/check_snmp.c:512
2971msgid "Could Not Compile Regular Expression"
2972msgstr ""
2973
2974#: plugins/check_smtp.c:192 plugins/check_smtp.c:202
2910#, c-format 2975#, c-format
2911msgid "" 2976msgid "SMTP %s - Invalid response '%s' to command '%s'\n"
2912"DUMMYCMD: %s\n"
2913"%s\n"
2914msgstr "" 2977msgstr ""
2915 2978
2916#: plugins/check_smtp.c:172 2979#: plugins/check_smtp.c:196 plugins/check_snmp.c:278
2917#, c-format 2980#, c-format
2918msgid "SMTP %s - %.3f sec. response time, %s|time=%ldus\n" 2981msgid "Execute Error: %s\n"
2919msgstr "" 2982msgstr ""
2920 2983
2921#: plugins/check_smtp.c:175 2984#: plugins/check_smtp.c:227
2922#, c-format 2985#, c-format
2923msgid "SMTP %s - %.3f second response time|time=%ldus\n" 2986msgid "SMTP %s - %.3f sec. response time%s%s|%s\n"
2924msgstr "" 2987msgstr ""
2925 2988
2926#: plugins/check_smtp.c:356 2989#: plugins/check_smtp.c:315 plugins/check_smtp.c:325 plugins/check_snmp.c:568
2990#, c-format
2991msgid "Could not realloc() units [%d]\n"
2992msgstr ""
2993
2994#: plugins/check_smtp.c:428
2927msgid "Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n" 2995msgid "Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n"
2928msgstr "" 2996msgstr ""
2929 2997
2930#: plugins/check_smtp.c:359 2998#: plugins/check_smtp.c:431
2931msgid "" 2999msgid ""
2932"This plugin will attempt to open an SMTP connection with the host.\n" 3000"This plugin will attempt to open an SMTP connection with the host.\n"
2933"\n" 3001"\n"
2934msgstr "" 3002msgstr ""
2935 3003
2936#: plugins/check_smtp.c:370 3004#: plugins/check_smtp.c:442
2937#, c-format 3005#, c-format
2938msgid "" 3006msgid ""
2939" -e, --expect=STRING\n" 3007" -e, --expect=STRING\n"
@@ -2941,13 +3009,14 @@ msgid ""
2941" -n, nocommand\n" 3009" -n, nocommand\n"
2942" Suppress SMTP command\n" 3010" Suppress SMTP command\n"
2943" -C, --command=STRING\n" 3011" -C, --command=STRING\n"
2944" SMTP command (default: '%s')\n" 3012" SMTP command (may be used repeatedly)\n"
3013" -R, --command=STRING\n"
3014" Expected response to command (may be used repeatedly)\n"
2945" -f, --from=STRING\n" 3015" -f, --from=STRING\n"
2946" FROM-address to include in MAIL command, required by Exchange 2000\n" 3016" FROM-address to include in MAIL command, required by Exchange 2000\n"
2947" (default: '%s')\n"
2948msgstr "" 3017msgstr ""
2949 3018
2950#: plugins/check_smtp.c:387 3019#: plugins/check_smtp.c:461
2951msgid "" 3020msgid ""
2952"\n" 3021"\n"
2953"Successul connects return STATE_OK, refusals and timeouts return\n" 3022"Successul connects return STATE_OK, refusals and timeouts return\n"
@@ -2956,12 +3025,7 @@ msgid ""
2956"STATE_WARNING return values.\n" 3025"STATE_WARNING return values.\n"
2957msgstr "" 3026msgstr ""
2958 3027
2959#: plugins/check_snmp.c:278 3028#: plugins/check_snmp.c:285 plugins/check_snmp.c:518
2960#, c-format
2961msgid "Execute Error: %s\n"
2962msgstr ""
2963
2964#: plugins/check_snmp.c:285 plugins/check_snmp.c:524
2965#, c-format 3029#, c-format
2966msgid "%s UNKNOWN: call for regex which was not a compiled option" 3030msgid "%s UNKNOWN: call for regex which was not a compiled option"
2967msgstr "" 3031msgstr ""
@@ -2969,7 +3033,7 @@ msgstr ""
2969#: plugins/check_snmp.c:322 plugins/negate.c:108 3033#: plugins/check_snmp.c:322 plugins/negate.c:108
2970#, c-format 3034#, c-format
2971msgid "" 3035msgid ""
2972"%s problem - No data recieved from host\n" 3036"%s problem - No data received from host\n"
2973"CMD: %s\n" 3037"CMD: %s\n"
2974msgstr "" 3038msgstr ""
2975 3039
@@ -2978,52 +3042,43 @@ msgstr ""
2978msgid "Invalid critical threshold: %s\n" 3042msgid "Invalid critical threshold: %s\n"
2979msgstr "" 3043msgstr ""
2980 3044
2981#: plugins/check_snmp.c:471 3045#: plugins/check_snmp.c:468
2982#, c-format 3046#, c-format
2983msgid "Invalid warning threshold: %s\n" 3047msgid "Invalid warning threshold: %s\n"
2984msgstr "" 3048msgstr ""
2985 3049
2986#: plugins/check_snmp.c:518 3050#: plugins/check_snmp.c:538
2987msgid "Could Not Compile Regular Expression"
2988msgstr ""
2989
2990#: plugins/check_snmp.c:544
2991#, c-format 3051#, c-format
2992msgid "Could not realloc() labels[%d]" 3052msgid "Could not realloc() labels[%d]"
2993msgstr "" 3053msgstr ""
2994 3054
2995#: plugins/check_snmp.c:557 3055#: plugins/check_snmp.c:550
2996msgid "Could not realloc() labels\n" 3056msgid "Could not realloc() labels\n"
2997msgstr "" 3057msgstr ""
2998 3058
2999#: plugins/check_snmp.c:575 3059#: plugins/check_snmp.c:580
3000#, c-format
3001msgid "Could not realloc() units [%d]\n"
3002msgstr ""
3003
3004#: plugins/check_snmp.c:588
3005msgid "Could not realloc() units\n" 3060msgid "Could not realloc() units\n"
3006msgstr "" 3061msgstr ""
3007 3062
3008#: plugins/check_snmp.c:661 3063#: plugins/check_snmp.c:653
3009#, c-format 3064#, c-format
3010msgid "" 3065msgid ""
3011"Missing secname (%s) or authpassword (%s) ! \n" 3066"Missing secname (%s) or authpassword (%s) ! \n"
3012")" 3067")"
3013msgstr "" 3068msgstr ""
3014 3069
3015#: plugins/check_snmp.c:679 3070#: plugins/check_snmp.c:671
3016#, c-format 3071#, c-format
3017msgid "Invalid SNMP version: %s\n" 3072msgid "Invalid SNMP version: %s\n"
3018msgstr "" 3073msgstr ""
3019 3074
3020#: plugins/check_snmp.c:874 3075#: plugins/check_snmp.c:864
3021msgid "" 3076msgid ""
3022"Check status of remote machines and obtain sustem information via SNMP\n" 3077"Check status of remote machines and obtain sustem information via SNMP\n"
3023"\n" 3078"\n"
3024msgstr "" 3079msgstr ""
3025 3080
3026#: plugins/check_snmp.c:884 3081#: plugins/check_snmp.c:874
3027msgid "" 3082msgid ""
3028" -P, --protocol=[1|3]\n" 3083" -P, --protocol=[1|3]\n"
3029" SNMP protocol version\n" 3084" SNMP protocol version\n"
@@ -3033,7 +3088,7 @@ msgid ""
3033" SNMPv3 auth proto\n" 3088" SNMPv3 auth proto\n"
3034msgstr "" 3089msgstr ""
3035 3090
3036#: plugins/check_snmp.c:893 3091#: plugins/check_snmp.c:883
3037#, c-format 3092#, c-format
3038msgid "" 3093msgid ""
3039" -C, --community=STRING\n" 3094" -C, --community=STRING\n"
@@ -3047,7 +3102,7 @@ msgid ""
3047" SNMPv3 crypt passwd (DES)\n" 3102" SNMPv3 crypt passwd (DES)\n"
3048msgstr "" 3103msgstr ""
3049 3104
3050#: plugins/check_snmp.c:905 3105#: plugins/check_snmp.c:895
3051#, c-format 3106#, c-format
3052msgid "" 3107msgid ""
3053" -o, --oid=OID(s)\n" 3108" -o, --oid=OID(s)\n"
@@ -3060,7 +3115,7 @@ msgid ""
3060" to be the data that should be used in the evaluation.\n" 3115" to be the data that should be used in the evaluation.\n"
3061msgstr "" 3116msgstr ""
3062 3117
3063#: plugins/check_snmp.c:915 3118#: plugins/check_snmp.c:905
3064msgid "" 3119msgid ""
3065" -w, --warning=INTEGER_RANGE(s)\n" 3120" -w, --warning=INTEGER_RANGE(s)\n"
3066" Range(s) which will not result in a WARNING status\n" 3121" Range(s) which will not result in a WARNING status\n"
@@ -3068,7 +3123,7 @@ msgid ""
3068" Range(s) which will not result in a CRITICAL status\n" 3123" Range(s) which will not result in a CRITICAL status\n"
3069msgstr "" 3124msgstr ""
3070 3125
3071#: plugins/check_snmp.c:922 3126#: plugins/check_snmp.c:912
3072msgid "" 3127msgid ""
3073" -s, --string=STRING\n" 3128" -s, --string=STRING\n"
3074" Return OK state (for that OID) if STRING is an exact match\n" 3129" Return OK state (for that OID) if STRING is an exact match\n"
@@ -3082,7 +3137,7 @@ msgid ""
3082" Prefix label for output from plugin (default -s 'SNMP')\n" 3137" Prefix label for output from plugin (default -s 'SNMP')\n"
3083msgstr "" 3138msgstr ""
3084 3139
3085#: plugins/check_snmp.c:933 3140#: plugins/check_snmp.c:923
3086msgid "" 3141msgid ""
3087" -u, --units=STRING\n" 3142" -u, --units=STRING\n"
3088" Units label(s) for output data (e.g., 'sec.').\n" 3143" Units label(s) for output data (e.g., 'sec.').\n"
@@ -3090,7 +3145,7 @@ msgid ""
3090" Separates output on multiple OID requests\n" 3145" Separates output on multiple OID requests\n"
3091msgstr "" 3146msgstr ""
3092 3147
3093#: plugins/check_snmp.c:943 3148#: plugins/check_snmp.c:933
3094msgid "" 3149msgid ""
3095"\n" 3150"\n"
3096"- This plugin uses the 'snmpget' command included with the NET-SNMP " 3151"- This plugin uses the 'snmpget' command included with the NET-SNMP "
@@ -3100,14 +3155,14 @@ msgid ""
3100" http://net-snmp.sourceforge.net before you can use this plugin.\n" 3155" http://net-snmp.sourceforge.net before you can use this plugin.\n"
3101msgstr "" 3156msgstr ""
3102 3157
3103#: plugins/check_snmp.c:948 3158#: plugins/check_snmp.c:938
3104msgid "" 3159msgid ""
3105"- Multiple OIDs may be indicated by a comma- or space-delimited list (lists " 3160"- Multiple OIDs may be indicated by a comma- or space-delimited list (lists "
3106"with\n" 3161"with\n"
3107" internal spaces must be quoted) [max 8 OIDs]\n" 3162" internal spaces must be quoted) [max 8 OIDs]\n"
3108msgstr "" 3163msgstr ""
3109 3164
3110#: plugins/check_snmp.c:952 3165#: plugins/check_snmp.c:942
3111msgid "" 3166msgid ""
3112"- Ranges are inclusive and are indicated with colons. When specified as\n" 3167"- Ranges are inclusive and are indicated with colons. When specified as\n"
3113" 'min:max' a STATE_OK will be returned if the result is within the " 3168" 'min:max' a STATE_OK will be returned if the result is within the "
@@ -3116,14 +3171,14 @@ msgid ""
3116" returned if the result is outside the specified range.\n" 3171" returned if the result is outside the specified range.\n"
3117msgstr "" 3172msgstr ""
3118 3173
3119#: plugins/check_snmp.c:958 3174#: plugins/check_snmp.c:948
3120msgid "" 3175msgid ""
3121"- If specified in the order 'max:min' a non-OK state will be returned if " 3176"- If specified in the order 'max:min' a non-OK state will be returned if "
3122"the\n" 3177"the\n"
3123" result is within the (inclusive) range.\n" 3178" result is within the (inclusive) range.\n"
3124msgstr "" 3179msgstr ""
3125 3180
3126#: plugins/check_snmp.c:962 3181#: plugins/check_snmp.c:952
3127msgid "" 3182msgid ""
3128"- Upper or lower bounds may be omitted to skip checking the respective " 3183"- Upper or lower bounds may be omitted to skip checking the respective "
3129"limit.\n" 3184"limit.\n"
@@ -3136,7 +3191,7 @@ msgid ""
3136" returned from the SNMP query is an unsigned integer.\n" 3191" returned from the SNMP query is an unsigned integer.\n"
3137msgstr "" 3192msgstr ""
3138 3193
3139#: plugins/check_snmp.c:976 3194#: plugins/check_snmp.c:966
3140#, c-format 3195#, c-format
3141msgid "" 3196msgid ""
3142"Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n" 3197"Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n"
@@ -3172,46 +3227,46 @@ msgstr ""
3172msgid "Usage: %s [-46] [-t <timeout>] [-p <port>] <host>\n" 3227msgid "Usage: %s [-46] [-t <timeout>] [-p <port>] <host>\n"
3173msgstr "" 3228msgstr ""
3174 3229
3175#: plugins/check_swap.c:125 3230#: plugins/check_swap.c:145
3176#, c-format 3231#, c-format
3177msgid "Command: %s\n" 3232msgid "Command: %s\n"
3178msgstr "" 3233msgstr ""
3179 3234
3180#: plugins/check_swap.c:127 3235#: plugins/check_swap.c:147
3181#, c-format 3236#, c-format
3182msgid "Format: %s\n" 3237msgid "Format: %s\n"
3183msgstr "" 3238msgstr ""
3184 3239
3185#: plugins/check_swap.c:163 3240#: plugins/check_swap.c:183
3186#, c-format 3241#, c-format
3187msgid "total=%d, used=%d, free=%d\n" 3242msgid "total=%d, used=%d, free=%d\n"
3188msgstr "" 3243msgstr ""
3189 3244
3190#: plugins/check_swap.c:186 3245#: plugins/check_swap.c:197
3191#, c-format 3246#, c-format
3192msgid "total=%d, free=%d\n" 3247msgid "total=%d, free=%d\n"
3193msgstr "" 3248msgstr ""
3194 3249
3195#: plugins/check_swap.c:222 3250#: plugins/check_swap.c:314
3196#, c-format 3251#, c-format
3197msgid " %d%% free (%lu MB out of %lu MB)%s" 3252msgid " %d%% free (%llu MB out of %llu MB)"
3198msgstr "" 3253msgstr ""
3199 3254
3200#: plugins/check_swap.c:365 3255#: plugins/check_swap.c:464
3201msgid "Warning percentage should be more than critical percentage\n" 3256msgid "Warning percentage should be more than critical percentage\n"
3202msgstr "" 3257msgstr ""
3203 3258
3204#: plugins/check_swap.c:369 3259#: plugins/check_swap.c:468
3205msgid "Warning free space should be more than critical free space\n" 3260msgid "Warning free space should be more than critical free space\n"
3206msgstr "" 3261msgstr ""
3207 3262
3208#: plugins/check_swap.c:386 3263#: plugins/check_swap.c:485
3209msgid "" 3264msgid ""
3210"Check swap space on local server.\n" 3265"Check swap space on local server.\n"
3211"\n" 3266"\n"
3212msgstr "" 3267msgstr ""
3213 3268
3214#: plugins/check_swap.c:392 3269#: plugins/check_swap.c:491
3215#, c-format 3270#, c-format
3216msgid "" 3271msgid ""
3217"\n" 3272"\n"
@@ -3219,19 +3274,19 @@ msgid ""
3219" Exit with WARNING status if less than INTEGER bytes of swap space are " 3274" Exit with WARNING status if less than INTEGER bytes of swap space are "
3220"free\n" 3275"free\n"
3221" -w, --warning=PERCENT%%\n" 3276" -w, --warning=PERCENT%%\n"
3222" Exit with WARNING status if less than PERCENT of swap space has been " 3277" Exit with WARNING status if less than PERCENT of swap space is free\n"
3223"used\n"
3224" -c, --critical=INTEGER\n" 3278" -c, --critical=INTEGER\n"
3225" Exit with CRITICAL status if less than INTEGER bytes of swap space are " 3279" Exit with CRITICAL status if less than INTEGER bytes of swap space are "
3226"free\n" 3280"free\n"
3227" -c, --critical=PERCENT%%\n" 3281" -c, --critical=PERCENT%%\n"
3228" Exit with CRITCAL status if less than PERCENT of swap space has been " 3282" Exit with CRITCAL status if less than PERCENT of swap space is free\n"
3229"used\n"
3230" -a, --allswaps\n" 3283" -a, --allswaps\n"
3231" Conduct comparisons for all swap partitions, one by one\n" 3284" Conduct comparisons for all swap partitions, one by one\n"
3285" -v, --verbose\n"
3286" Verbose output. Up to 3 levels\n"
3232msgstr "" 3287msgstr ""
3233 3288
3234#: plugins/check_swap.c:404 3289#: plugins/check_swap.c:505
3235msgid "" 3290msgid ""
3236"\n" 3291"\n"
3237"On Solaris, if -a specified, uses swap -l, otherwise uses swap -s.\n" 3292"On Solaris, if -a specified, uses swap -l, otherwise uses swap -s.\n"
@@ -3239,18 +3294,18 @@ msgid ""
3239"real memory\n" 3294"real memory\n"
3240msgstr "" 3295msgstr ""
3241 3296
3242#: plugins/check_swap.c:408 3297#: plugins/check_swap.c:509
3243msgid "" 3298msgid ""
3244"\n" 3299"\n"
3245"On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n" 3300"On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n"
3246msgstr "" 3301msgstr ""
3247 3302
3248#: plugins/check_swap.c:420 3303#: plugins/check_swap.c:521
3249#, c-format 3304#, c-format
3250msgid "" 3305msgid ""
3251"Usage:\n" 3306"Usage:\n"
3252" %s [-a] -w <used_percentage>%% -c <used_percentage>%%\n" 3307" %s [-av] -w <percent_free>%% -c <percent_free>%%\n"
3253" %s [-a] -w <bytes_free> -c <bytes_free>\n" 3308" %s [-av] -w <bytes_free> -c <bytes_free>\n"
3254" %s (-h | --help) for detailed help\n" 3309" %s (-h | --help) for detailed help\n"
3255" %s (-V | --version) for version information\n" 3310" %s (-V | --version) for version information\n"
3256msgstr "" 3311msgstr ""
@@ -3268,61 +3323,61 @@ msgstr ""
3268msgid "%s %s%s - %.3f second response time on port %d" 3323msgid "%s %s%s - %.3f second response time on port %d"
3269msgstr "" 3324msgstr ""
3270 3325
3271#: plugins/check_tcp.c:426 3326#: plugins/check_tcp.c:430
3272msgid "invalid host name or address" 3327msgid "invalid host name or address"
3273msgstr "" 3328msgstr ""
3274 3329
3275#: plugins/check_tcp.c:431 plugins/check_time.c:252 plugins/check_time.c:264 3330#: plugins/check_tcp.c:435 plugins/check_time.c:266 plugins/check_time.c:278
3276#: plugins/check_udp.c:166 plugins/check_users.c:145 3331#: plugins/check_udp.c:166 plugins/check_users.c:154
3277msgid "Critical threshold must be a nonnegative integer\n" 3332msgid "Critical threshold must be a nonnegative integer\n"
3278msgstr "" 3333msgstr ""
3279 3334
3280#: plugins/check_tcp.c:438 plugins/check_time.c:233 plugins/check_time.c:257 3335#: plugins/check_tcp.c:442 plugins/check_time.c:247 plugins/check_time.c:271
3281#: plugins/check_udp.c:173 plugins/check_users.c:151 plugins/check_users.c:161 3336#: plugins/check_udp.c:173 plugins/check_users.c:160 plugins/check_users.c:170
3282#: plugins/check_users.c:168 3337#: plugins/check_users.c:177
3283msgid "Warning threshold must be a nonnegative integer\n" 3338msgid "Warning threshold must be a nonnegative integer\n"
3284msgstr "" 3339msgstr ""
3285 3340
3286#: plugins/check_tcp.c:453 3341#: plugins/check_tcp.c:457
3287msgid "Timeout interval must be a positive integer\n" 3342msgid "Timeout interval must be a positive integer\n"
3288msgstr "" 3343msgstr ""
3289 3344
3290#: plugins/check_tcp.c:476 3345#: plugins/check_tcp.c:480
3291msgid "Maxbytes must be a positive integer\n" 3346msgid "Maxbytes must be a positive integer\n"
3292msgstr "" 3347msgstr ""
3293 3348
3294#: plugins/check_tcp.c:490 3349#: plugins/check_tcp.c:494
3295msgid "Refuse mut be one of ok, warn, crit\n" 3350msgid "Refuse mut be one of ok, warn, crit\n"
3296msgstr "" 3351msgstr ""
3297 3352
3298#: plugins/check_tcp.c:496 3353#: plugins/check_tcp.c:500
3299msgid "Delay must be a positive integer\n" 3354msgid "Delay must be a positive integer\n"
3300msgstr "" 3355msgstr ""
3301 3356
3302#: plugins/check_tcp.c:501 3357#: plugins/check_tcp.c:505
3303msgid "SSL support not available. Install OpenSSL and recompile." 3358msgid "SSL support not available. Install OpenSSL and recompile."
3304msgstr "" 3359msgstr ""
3305 3360
3306#: plugins/check_tcp.c:509 3361#: plugins/check_tcp.c:513
3307msgid "You must provide a server address\n" 3362msgid "You must provide a server address\n"
3308msgstr "" 3363msgstr ""
3309 3364
3310#: plugins/check_tcp.c:527 3365#: plugins/check_tcp.c:531
3311msgid "ERROR: Cannot create SSL context.\n" 3366msgid "ERROR: Cannot create SSL context.\n"
3312msgstr "" 3367msgstr ""
3313 3368
3314#: plugins/check_tcp.c:553 3369#: plugins/check_tcp.c:557
3315msgid "ERROR: Cannot initiate SSL handshake.\n" 3370msgid "ERROR: Cannot initiate SSL handshake.\n"
3316msgstr "" 3371msgstr ""
3317 3372
3318#: plugins/check_tcp.c:599 3373#: plugins/check_tcp.c:603
3319#, c-format 3374#, c-format
3320msgid "" 3375msgid ""
3321"This plugin tests %s connections with the specified host.\n" 3376"This plugin tests %s connections with the specified host.\n"
3322"\n" 3377"\n"
3323msgstr "" 3378msgstr ""
3324 3379
3325#: plugins/check_tcp.c:610 3380#: plugins/check_tcp.c:614
3326msgid "" 3381msgid ""
3327" -s, --send=STRING\n" 3382" -s, --send=STRING\n"
3328" String to send to the server\n" 3383" String to send to the server\n"
@@ -3332,7 +3387,7 @@ msgid ""
3332" String to send server to initiate a clean close of the connection\n" 3387" String to send server to initiate a clean close of the connection\n"
3333msgstr "" 3388msgstr ""
3334 3389
3335#: plugins/check_tcp.c:618 3390#: plugins/check_tcp.c:622
3336msgid "" 3391msgid ""
3337" -r, --refuse=ok|warn|crit\n" 3392" -r, --refuse=ok|warn|crit\n"
3338" Accept tcp refusals with states ok, warn, crit (default: crit)\n" 3393" Accept tcp refusals with states ok, warn, crit (default: crit)\n"
@@ -3342,7 +3397,7 @@ msgid ""
3342" Seconds to wait between sending string and polling for response\n" 3397" Seconds to wait between sending string and polling for response\n"
3343msgstr "" 3398msgstr ""
3344 3399
3345#: plugins/check_tcp.c:641 3400#: plugins/check_tcp.c:645
3346#, c-format 3401#, c-format
3347msgid "" 3402msgid ""
3348"Usage: %s -H host -p port [-w <warning time>] [-c <critical time>]\n" 3403"Usage: %s -H host -p port [-w <warning time>] [-c <critical time>]\n"
@@ -3351,67 +3406,67 @@ msgid ""
3351" [-r <refuse state>] [-v] [-4|-6]\n" 3406" [-r <refuse state>] [-v] [-4|-6]\n"
3352msgstr "" 3407msgstr ""
3353 3408
3354#: plugins/check_time.c:87 3409#: plugins/check_time.c:88
3355#, c-format 3410#, c-format
3356msgid "TIME UNKNOWN - could not connect to server %s, port %d\n" 3411msgid "TIME UNKNOWN - could not connect to server %s, port %d\n"
3357msgstr "" 3412msgstr ""
3358 3413
3359#: plugins/check_time.c:100 3414#: plugins/check_time.c:101
3360#, c-format 3415#, c-format
3361msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n" 3416msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n"
3362msgstr "" 3417msgstr ""
3363 3418
3364#: plugins/check_time.c:124 3419#: plugins/check_time.c:125
3365#, c-format 3420#, c-format
3366msgid "TIME UNKNOWN - no data on recv() from server %s, port %d\n" 3421msgid "TIME UNKNOWN - no data on recv() from server %s, port %d\n"
3367msgstr "" 3422msgstr ""
3368 3423
3369#: plugins/check_time.c:136 3424#: plugins/check_time.c:138
3370#, c-format 3425#, c-format
3371msgid "TIME %s - %d second response time\n" 3426msgid "TIME %s - %d second response time|%s\n"
3372msgstr "" 3427msgstr ""
3373 3428
3374#: plugins/check_time.c:150 3429#: plugins/check_time.c:156
3375#, c-format 3430#, c-format
3376msgid "TIME %s - %lu second time difference\n" 3431msgid "TIME %s - %lu second time difference|%s %s\n"
3377msgstr "" 3432msgstr ""
3378 3433
3379#: plugins/check_time.c:215 plugins/check_time.c:290 plugins/check_udp.c:161 3434#: plugins/check_time.c:229 plugins/check_time.c:304 plugins/check_udp.c:161
3380#: plugins/check_udp.c:202 3435#: plugins/check_udp.c:202
3381msgid "Invalid host name/address\n" 3436msgid "Invalid host name/address\n"
3382msgstr "" 3437msgstr ""
3383 3438
3384#: plugins/check_time.c:229 3439#: plugins/check_time.c:243
3385msgid "Warning thresholds must be a nonnegative integer\n" 3440msgid "Warning thresholds must be a nonnegative integer\n"
3386msgstr "" 3441msgstr ""
3387 3442
3388#: plugins/check_time.c:248 3443#: plugins/check_time.c:262
3389msgid "Critical thresholds must be a nonnegative integer\n" 3444msgid "Critical thresholds must be a nonnegative integer\n"
3390msgstr "" 3445msgstr ""
3391 3446
3392#: plugins/check_time.c:271 plugins/check_udp.c:186 3447#: plugins/check_time.c:285 plugins/check_udp.c:186
3393msgid "Server port must be a nonnegative integer\n" 3448msgid "Server port must be a nonnegative integer\n"
3394msgstr "" 3449msgstr ""
3395 3450
3396#: plugins/check_time.c:277 plugins/check_udp.c:180 3451#: plugins/check_time.c:291 plugins/check_udp.c:180
3397msgid "Timeout interval must be a nonnegative integer\n" 3452msgid "Timeout interval must be a nonnegative integer\n"
3398msgstr "" 3453msgstr ""
3399 3454
3400#: plugins/check_time.c:294 plugins/check_udp.c:207 3455#: plugins/check_time.c:308 plugins/check_udp.c:207
3401msgid "Host name was not supplied\n" 3456msgid "Host name was not supplied\n"
3402msgstr "" 3457msgstr ""
3403 3458
3404#: plugins/check_time.c:314 plugins/check_udp.c:225 plugins/check_users.c:186 3459#: plugins/check_time.c:328 plugins/check_udp.c:225 plugins/check_users.c:195
3405msgid "Copyright (c) 1999 Ethan Galstad\n" 3460msgid "Copyright (c) 1999 Ethan Galstad\n"
3406msgstr "" 3461msgstr ""
3407 3462
3408#: plugins/check_time.c:317 3463#: plugins/check_time.c:331
3409msgid "" 3464msgid ""
3410"This plugin will check the time on the specified host.\n" 3465"This plugin will check the time on the specified host.\n"
3411"\n" 3466"\n"
3412msgstr "" 3467msgstr ""
3413 3468
3414#: plugins/check_time.c:326 3469#: plugins/check_time.c:340
3415msgid "" 3470msgid ""
3416" -u, --udp\n" 3471" -u, --udp\n"
3417" Use UDP to connect, not TCP\n" 3472" Use UDP to connect, not TCP\n"
@@ -3425,7 +3480,7 @@ msgid ""
3425" Response time (sec.) necessary to result in critical status\n" 3480" Response time (sec.) necessary to result in critical status\n"
3426msgstr "" 3481msgstr ""
3427 3482
3428#: plugins/check_time.c:349 3483#: plugins/check_time.c:363
3429#, c-format 3484#, c-format
3430msgid "" 3485msgid ""
3431"Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n" 3486"Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n"
@@ -3474,11 +3529,11 @@ msgid ""
3474" [-e expect] [-s send] [-t to_sec] [-v]\n" 3529" [-e expect] [-s send] [-t to_sec] [-v]\n"
3475msgstr "" 3530msgstr ""
3476 3531
3477#: plugins/check_ups.c:546 3532#: plugins/check_ups.c:573
3478msgid "Copyright (c) 2000 Tom Shields" 3533msgid "Copyright (c) 2000 Tom Shields"
3479msgstr "" 3534msgstr ""
3480 3535
3481#: plugins/check_ups.c:549 3536#: plugins/check_ups.c:576
3482msgid "" 3537msgid ""
3483"This plugin tests the UPS service on the specified host.\n" 3538"This plugin tests the UPS service on the specified host.\n"
3484"Network UPS Tools from www.exploits.org must be running for this plugin to\n" 3539"Network UPS Tools from www.exploits.org must be running for this plugin to\n"
@@ -3486,13 +3541,13 @@ msgid ""
3486"\n" 3541"\n"
3487msgstr "" 3542msgstr ""
3488 3543
3489#: plugins/check_ups.c:559 3544#: plugins/check_ups.c:586
3490msgid "" 3545msgid ""
3491" -u, --ups=STRING\n" 3546" -u, --ups=STRING\n"
3492" Name of UPS\n" 3547" Name of UPS\n"
3493msgstr "" 3548msgstr ""
3494 3549
3495#: plugins/check_ups.c:569 3550#: plugins/check_ups.c:596
3496msgid "" 3551msgid ""
3497"This plugin attempts to determine the status of a UPS (Uninterruptible " 3552"This plugin attempts to determine the status of a UPS (Uninterruptible "
3498"Power\n" 3553"Power\n"
@@ -3505,7 +3560,7 @@ msgid ""
3505"\n" 3560"\n"
3506msgstr "" 3561msgstr ""
3507 3562
3508#: plugins/check_ups.c:576 3563#: plugins/check_ups.c:603
3509msgid "" 3564msgid ""
3510"You may also specify a variable to check [such as temperature, utility " 3565"You may also specify a variable to check [such as temperature, utility "
3511"voltage,\n" 3566"voltage,\n"
@@ -3517,7 +3572,7 @@ msgid ""
3517"\n" 3572"\n"
3518msgstr "" 3573msgstr ""
3519 3574
3520#: plugins/check_ups.c:582 3575#: plugins/check_ups.c:609
3521msgid "" 3576msgid ""
3522"Notes:\n" 3577"Notes:\n"
3523"\n" 3578"\n"
@@ -3528,31 +3583,31 @@ msgid ""
3528"\n" 3583"\n"
3529msgstr "" 3584msgstr ""
3530 3585
3531#: plugins/check_ups.c:597 3586#: plugins/check_ups.c:624
3532#, c-format 3587#, c-format
3533msgid "" 3588msgid ""
3534"Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n" 3589"Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n"
3535" [-t timeout] [-v]\n" 3590" [-t timeout] [-v]\n"
3536msgstr "" 3591msgstr ""
3537 3592
3538#: plugins/check_users.c:73 3593#: plugins/check_users.c:76
3539#, c-format 3594#, c-format
3540msgid "# users=%d" 3595msgid "# users=%d"
3541msgstr "" 3596msgstr ""
3542 3597
3543#: plugins/check_users.c:98 3598#: plugins/check_users.c:106
3544#, c-format 3599#, c-format
3545msgid "USERS %s - %d users currently logged in\n" 3600msgid "USERS %s - %d users currently logged in |%s\n"
3546msgstr "" 3601msgstr ""
3547 3602
3548#: plugins/check_users.c:189 3603#: plugins/check_users.c:198
3549msgid "" 3604msgid ""
3550"This plugin checks the number of users currently logged in on the local\n" 3605"This plugin checks the number of users currently logged in on the local\n"
3551"system and generates an error if the number exceeds the thresholds " 3606"system and generates an error if the number exceeds the thresholds "
3552"specified.\n" 3607"specified.\n"
3553msgstr "" 3608msgstr ""
3554 3609
3555#: plugins/check_users.c:197 3610#: plugins/check_users.c:206
3556msgid "" 3611msgid ""
3557" -w, --warning=INTEGER\n" 3612" -w, --warning=INTEGER\n"
3558" Set WARNING status if more than INTEGER users are logged in\n" 3613" Set WARNING status if more than INTEGER users are logged in\n"
@@ -3597,7 +3652,7 @@ msgstr ""
3597#: plugins/urlize.c:105 3652#: plugins/urlize.c:105
3598#, c-format 3653#, c-format
3599msgid "" 3654msgid ""
3600"%s problem - No data recieved from host\n" 3655"%s problem - No data received from host\n"
3601"CMD: %s</A>\n" 3656"CMD: %s</A>\n"
3602msgstr "" 3657msgstr ""
3603 3658
diff --git a/po/fr.po b/po/fr.po
index 65a5a9b..c1de41d 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -6,7 +6,7 @@
6msgid "" 6msgid ""
7msgstr "" 7msgstr ""
8"Project-Id-Version: nagios-plugins 1.3.99\n" 8"Project-Id-Version: nagios-plugins 1.3.99\n"
9"POT-Creation-Date: 2003-10-29 21:39-0500\n" 9"POT-Creation-Date: 2004-11-12 00:44+0000\n"
10"PO-Revision-Date: 2003-07-25 06:55-0400\n" 10"PO-Revision-Date: 2003-07-25 06:55-0400\n"
11"Last-Translator: Pierre-Antoine Angelini <paangelini@users.sourceforge.net>\n" 11"Last-Translator: Pierre-Antoine Angelini <paangelini@users.sourceforge.net>\n"
12"Language-Team: French <traduc@traduc.org>\n" 12"Language-Team: French <traduc@traduc.org>\n"
@@ -15,104 +15,110 @@ msgstr ""
15"Content-Transfer-Encoding: 8bit\n" 15"Content-Transfer-Encoding: 8bit\n"
16"Report-Msgid-Bugs-To: \n" 16"Report-Msgid-Bugs-To: \n"
17 17
18#: plugins/check_by_ssh.c:69 plugins/check_dig.c:68 plugins/check_disk.c:164 18#: plugins/check_by_ssh.c:70 plugins/check_dig.c:70 plugins/check_disk.c:165
19#: plugins/check_fping.c:69 plugins/check_nagios.c:64 plugins/check_nt.c:103 19#: plugins/check_fping.c:69 plugins/check_nagios.c:67 plugins/check_nt.c:112
20#: plugins/check_nwstat.c:125 plugins/check_radius.c:111 20#: plugins/check_nwstat.c:126 plugins/check_radius.c:112
21#: plugins/check_ssh.c:56 plugins/check_tcp.c:211 plugins/check_users.c:49 21#: plugins/check_ssh.c:56 plugins/check_tcp.c:212 plugins/check_users.c:52
22#: plugins/negate.c:83 22#: plugins/negate.c:83
23msgid "Could not parse arguments\n" 23msgid "Could not parse arguments\n"
24msgstr "" 24msgstr ""
25 25
26#: plugins/check_by_ssh.c:74 plugins/check_dns.c:91 plugins/check_nagios.c:68 26#: plugins/check_by_ssh.c:75 plugins/check_dns.c:69 plugins/check_nagios.c:71
27#: plugins/check_pgsql.c:140 plugins/check_ping.c:84 plugins/negate.c:87 27#: plugins/check_pgsql.c:140 plugins/check_ping.c:86 plugins/negate.c:87
28msgid "Cannot catch SIGALRM" 28msgid "Cannot catch SIGALRM"
29msgstr "" 29msgstr ""
30 30
31#: plugins/check_by_ssh.c:88 31#: plugins/check_by_ssh.c:89
32#, c-format 32#, c-format
33msgid "Unable to open pipe: %s" 33msgid "Unable to open pipe: %s"
34msgstr "" 34msgstr ""
35 35
36#: plugins/check_by_ssh.c:96 plugins/check_dig.c:89 plugins/check_dns.c:117 36#: plugins/check_by_ssh.c:97 plugins/check_dig.c:97 plugins/check_dns.c:96
37#: plugins/check_fping.c:89 plugins/check_hpjd.c:118 plugins/check_load.c:115 37#: plugins/check_fping.c:89 plugins/check_hpjd.c:118 plugins/check_load.c:115
38#: plugins/check_nagios.c:101 plugins/check_procs.c:129 38#: plugins/check_nagios.c:107 plugins/check_procs.c:133
39#: plugins/check_snmp.c:179 plugins/check_swap.c:137 plugins/check_users.c:60 39#: plugins/check_snmp.c:179 plugins/check_swap.c:157 plugins/check_users.c:63
40#: plugins/negate.c:97 plugins/urlize.c:93 40#: plugins/negate.c:97 plugins/urlize.c:93
41#, c-format 41#, c-format
42msgid "Could not open stderr for %s\n" 42msgid "Could not open stderr for %s\n"
43msgstr "" 43msgstr ""
44 44
45#: plugins/check_by_ssh.c:123 45#: plugins/check_by_ssh.c:129
46#, c-format 46#, c-format
47msgid "SSH WARNING: could not open %s\n" 47msgid "SSH WARNING: could not open %s\n"
48msgstr "" 48msgstr ""
49 49
50#: plugins/check_by_ssh.c:142 50#: plugins/check_by_ssh.c:148
51#, c-format 51#, c-format
52msgid "[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n" 52msgid "[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n"
53msgstr "" 53msgstr ""
54 54
55#: plugins/check_by_ssh.c:228 55#: plugins/check_by_ssh.c:235
56msgid "timeout interval must be an integer" 56msgid "timeout interval must be an integer"
57msgstr "" 57msgstr ""
58 58
59#: plugins/check_by_ssh.c:234 59#: plugins/check_by_ssh.c:241
60msgid "invalid host name" 60msgid "invalid host name"
61msgstr "" 61msgstr ""
62 62
63#: plugins/check_by_ssh.c:239 63#: plugins/check_by_ssh.c:246
64msgid "port must be an integer" 64msgid "port must be an integer"
65msgstr "" 65msgstr ""
66 66
67#: plugins/check_by_ssh.c:284 67#: plugins/check_by_ssh.c:288
68msgid "skip lines must be an integer"
69msgstr ""
70
71#: plugins/check_by_ssh.c:298
68#, c-format 72#, c-format
69msgid "%s: You must provide a host name\n" 73msgid "%s: You must provide a host name\n"
70msgstr "" 74msgstr ""
71 75
72#: plugins/check_by_ssh.c:286 76#: plugins/check_by_ssh.c:300
73#, c-format 77#, c-format
74msgid "%s: Invalid host name %s\n" 78msgid "%s: Invalid host name %s\n"
75msgstr "" 79msgstr ""
76 80
77#: plugins/check_by_ssh.c:302 81#: plugins/check_by_ssh.c:316
78msgid "No remotecmd\n" 82msgid "No remotecmd\n"
79msgstr "" 83msgstr ""
80 84
81#: plugins/check_by_ssh.c:320 85#: plugins/check_by_ssh.c:334
82#, c-format 86#, c-format
83msgid "" 87msgid ""
84"%s: In passive mode, you must provide a service name for each command.\n" 88"%s: In passive mode, you must provide a service name for each command.\n"
85msgstr "" 89msgstr ""
86 90
87#: plugins/check_by_ssh.c:323 91#: plugins/check_by_ssh.c:337
88#, c-format 92#, c-format
89msgid "" 93msgid ""
90"%s: In passive mode, you must provide the host short name from the nagios " 94"%s: In passive mode, you must provide the host short name from the nagios "
91"configs.\n" 95"configs.\n"
92msgstr "" 96msgstr ""
93 97
94#: plugins/check_by_ssh.c:338 98#: plugins/check_by_ssh.c:352
95msgid "" 99msgid ""
96"Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" 100"Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n"
97msgstr "" 101msgstr ""
98 102
99#: plugins/check_by_ssh.c:341 103#: plugins/check_by_ssh.c:355
100msgid "" 104msgid ""
101"This plugin uses SSH to execute commands on a remote host\n" 105"This plugin uses SSH to execute commands on a remote host\n"
102"\n" 106"\n"
103msgstr "" 107msgstr ""
104 108
105#: plugins/check_by_ssh.c:351 109#: plugins/check_by_ssh.c:365
106msgid "" 110msgid ""
107" -1, --proto1\n" 111" -1, --proto1\n"
108" tell ssh to use Protocol 1\n" 112" tell ssh to use Protocol 1\n"
109" -2, --proto2\n" 113" -2, --proto2\n"
110" tell ssh to use Protocol 2\n" 114" tell ssh to use Protocol 2\n"
115" -S, --skiplines=n\n"
116" Ignore first n lines on STDERR (to suppress a logon banner)\n"
111" -f\n" 117" -f\n"
112" tells ssh to fork rather than create a tty\n" 118" tells ssh to fork rather than create a tty\n"
113msgstr "" 119msgstr ""
114 120
115#: plugins/check_by_ssh.c:359 121#: plugins/check_by_ssh.c:375
116msgid "" 122msgid ""
117" -C, --command='COMMAND STRING'\n" 123" -C, --command='COMMAND STRING'\n"
118" command to execute on the remote machine\n" 124" command to execute on the remote machine\n"
@@ -128,7 +134,7 @@ msgid ""
128" short name of host in nagios configuration [optional]\n" 134" short name of host in nagios configuration [optional]\n"
129msgstr "" 135msgstr ""
130 136
131#: plugins/check_by_ssh.c:377 137#: plugins/check_by_ssh.c:393
132msgid "" 138msgid ""
133"\n" 139"\n"
134"The most common mode of use is to refer to a local identity file with\n" 140"The most common mode of use is to refer to a local identity file with\n"
@@ -140,7 +146,7 @@ msgid ""
140"execute additional commands as proxy\n" 146"execute additional commands as proxy\n"
141msgstr "" 147msgstr ""
142 148
143#: plugins/check_by_ssh.c:386 149#: plugins/check_by_ssh.c:402
144msgid "" 150msgid ""
145"\n" 151"\n"
146"To use passive mode, provide multiple '-C' options, and provide\n" 152"To use passive mode, provide multiple '-C' options, and provide\n"
@@ -148,7 +154,18 @@ msgid ""
148"options)\n" 154"options)\n"
149msgstr "" 155msgstr ""
150 156
151#: plugins/check_by_ssh.c:401 157#: plugins/check_by_ssh.c:407
158msgid ""
159"\n"
160"$ check_by_ssh -H localhost -n lh -s c1:c2:c3 \\\n"
161" -C uptime -C uptime -C uptime -O /tmp/foo\n"
162"$ cat /tmp/foo\n"
163"[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c1;0; up 2 days...\n"
164"[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c2;0; up 2 days...\n"
165"[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c3;0; up 2 days...\n"
166msgstr ""
167
168#: plugins/check_by_ssh.c:425
152#, c-format 169#, c-format
153msgid "" 170msgid ""
154"\n" 171"\n"
@@ -156,99 +173,105 @@ msgid ""
156" -C <command> [-n name] [-s servicelist] [-O outputfile] [-p port]\n" 173" -C <command> [-n name] [-s servicelist] [-O outputfile] [-p port]\n"
157msgstr "" 174msgstr ""
158 175
159#: plugins/check_dig.c:65 176#: plugins/check_dig.c:67
160msgid "Cannot catch SIGALRM\n" 177msgid "Cannot catch SIGALRM\n"
161msgstr "" 178msgstr ""
162 179
163#: plugins/check_dig.c:83 plugins/check_dns.c:111 plugins/check_hpjd.c:112 180#: plugins/check_dig.c:91 plugins/check_dns.c:90 plugins/check_hpjd.c:112
164#: plugins/check_nagios.c:95 plugins/check_procs.c:123 181#: plugins/check_nagios.c:101 plugins/check_procs.c:127
165#: plugins/check_snmp.c:173 plugins/check_swap.c:131 plugins/check_users.c:54 182#: plugins/check_snmp.c:173 plugins/check_swap.c:151 plugins/check_users.c:57
166#: plugins/negate.c:93 plugins/urlize.c:87 183#: plugins/negate.c:93 plugins/urlize.c:87
167#, c-format 184#, c-format
168msgid "Could not open pipe: %s\n" 185msgid "Could not open pipe: %s\n"
169msgstr "" 186msgstr ""
170 187
171#: plugins/check_dig.c:108 188#: plugins/check_dig.c:128
172msgid "Server not found in ANSWER SECTION" 189msgid "Server not found in ANSWER SECTION"
173msgstr "" 190msgstr ""
174 191
175#: plugins/check_dig.c:118 192#: plugins/check_dig.c:137
176msgid "No ANSWER SECTION found" 193msgid "No ANSWER SECTION found"
177msgstr "" 194msgstr ""
178 195
179#: plugins/check_dig.c:135 196#: plugins/check_dig.c:154
180msgid "dig returned error status" 197msgid "dig returned error status"
181msgstr "" 198msgstr ""
182 199
183#: plugins/check_dig.c:142 plugins/check_dns.c:221 plugins/check_dns.c:224 200#: plugins/check_dig.c:161 plugins/check_dns.c:205 plugins/check_dns.c:208
184#: plugins/check_dns.c:227 201#: plugins/check_dns.c:211
185msgid " Probably a non-existent host/domain" 202msgid " Probably a non-existent host/domain"
186msgstr "" 203msgstr ""
187 204
188#: plugins/check_dig.c:150 205#: plugins/check_dig.c:169
189#, c-format 206#, c-format
190msgid "%.3f seconds response time (%s)" 207msgid "%.3f seconds response time (%s)"
191msgstr "" 208msgstr ""
192 209
193#: plugins/check_dig.c:198 plugins/check_pgsql.c:210 plugins/check_ping.c:199 210#: plugins/check_dig.c:219 plugins/check_pgsql.c:209 plugins/check_ping.c:201
194#: plugins/check_time.c:206 plugins/negate.c:172 plugins/urlize.c:72 211#: plugins/check_time.c:220 plugins/negate.c:172 plugins/urlize.c:72
195msgid "Unknown argument" 212msgid "Unknown argument"
196msgstr "" 213msgstr ""
197 214
198#: plugins/check_dig.c:210 plugins/check_dig.c:265 plugins/check_hpjd.c:347 215#: plugins/check_dig.c:231 plugins/check_dig.c:288 plugins/check_hpjd.c:347
199#: plugins/check_real.c:368 plugins/check_smtp.c:314 216#: plugins/check_real.c:368 plugins/check_smtp.c:386
200msgid "Invalid host name" 217msgid "Invalid host name"
201msgstr "" 218msgstr ""
202 219
203#: plugins/check_dig.c:218 220#: plugins/check_dig.c:239
204msgid "Server port must be a nonnegative integer" 221msgid "Server port must be a nonnegative integer"
205msgstr "" 222msgstr ""
206 223
207#: plugins/check_dig.c:228 224#: plugins/check_dig.c:250
208msgid "Input causes overflow in warning interval"
209msgstr ""
210
211#: plugins/check_dig.c:231
212msgid "Warning interval must be a nonnegative integer" 225msgid "Warning interval must be a nonnegative integer"
213msgstr "" 226msgstr ""
214 227
215#: plugins/check_dig.c:238 228#: plugins/check_dig.c:258
216msgid "Input causes overflow in critical interval"
217msgstr ""
218
219#: plugins/check_dig.c:241
220msgid "Critical interval must be a nonnegative integer" 229msgid "Critical interval must be a nonnegative integer"
221msgstr "" 230msgstr ""
222 231
223#: plugins/check_dig.c:249 232#: plugins/check_dig.c:266
224msgid "Time interval must be a nonnegative integer" 233msgid "Time interval must be a nonnegative integer"
225msgstr "" 234msgstr ""
226 235
227#: plugins/check_dig.c:301 plugins/urlize.c:132 236#: plugins/check_dig.c:324 plugins/urlize.c:132
228msgid "" 237msgid ""
229"Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" 238"Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n"
230msgstr "" 239msgstr ""
231 240
232#: plugins/check_dig.c:304 241#: plugins/check_dig.c:327
233msgid "" 242msgid ""
234"Test the DNS service on the specified host using dig\n" 243"Test the DNS service on the specified host using dig\n"
235"\n" 244"\n"
236msgstr "" 245msgstr ""
237 246
238#: plugins/check_dig.c:312 247#: plugins/check_dig.c:335
239msgid "" 248msgid ""
240" -l, --lookup=STRING\n" 249" -l, --lookup=STRING\n"
241" machine name to lookup\n" 250" machine name to lookup\n"
242msgstr "" 251msgstr ""
243 252
244#: plugins/check_dig.c:331 253#: plugins/check_dig.c:339
254msgid ""
255" -T, --record_type=STRING\n"
256" record type to lookup (default: A)\n"
257msgstr ""
258
259#: plugins/check_dig.c:343
260msgid ""
261" -a, --expected_address=STRING\n"
262" an address expected to be in the asnwer section.\n"
263" if not set, uses whatever was in -l\n"
264msgstr ""
265
266#: plugins/check_dig.c:363
245#, c-format 267#, c-format
246msgid "" 268msgid ""
247"Usage: %s -H host -l lookup [-p <server port>] [-w <warning interval>]\n" 269"Usage: %s -H host -l lookup [-p <server port>] [-T <query type>]\n"
248" [-c <critical interval>] [-t <timeout>] [-v]\n" 270" [-w <warning interval>] [-c <critical interval>] [-t <timeout>]\n"
271" [-a <expected answer address>] [-v]\n"
249msgstr "" 272msgstr ""
250 273
251#: plugins/check_disk.c:212 274#: plugins/check_disk.c:213
252#, c-format 275#, c-format
253msgid "" 276msgid ""
254"%s\n" 277"%s\n"
@@ -256,70 +279,70 @@ msgid ""
256"lu warn%%:%.0f%% crit%%:%.0f%%" 279"lu warn%%:%.0f%% crit%%:%.0f%%"
257msgstr "" 280msgstr ""
258 281
259#: plugins/check_disk.c:230 282#: plugins/check_disk.c:231
260#, c-format 283#, c-format
261msgid "%s [%s not found]" 284msgid "%s [%s not found]"
262msgstr "" 285msgstr ""
263 286
264#: plugins/check_disk.c:306 287#: plugins/check_disk.c:307
265msgid "Timeout Interval must be an integer!\n" 288msgid "Timeout Interval must be an integer!\n"
266msgstr "" 289msgstr ""
267 290
268#: plugins/check_disk.c:323 plugins/check_swap.c:292 291#: plugins/check_disk.c:324 plugins/check_swap.c:391
269msgid "Warning threshold must be integer or percentage!\n" 292msgid "Warning threshold must be integer or percentage!\n"
270msgstr "" 293msgstr ""
271 294
272#: plugins/check_disk.c:340 plugins/check_swap.c:309 295#: plugins/check_disk.c:341 plugins/check_swap.c:408
273msgid "Critical threshold must be integer or percentage!\n" 296msgid "Critical threshold must be integer or percentage!\n"
274msgstr "" 297msgstr ""
275 298
276#: plugins/check_disk.c:361 299#: plugins/check_disk.c:362
277#, c-format 300#, c-format
278msgid "unit type %s not known\n" 301msgid "unit type %s not known\n"
279msgstr "" 302msgstr ""
280 303
281#: plugins/check_disk.c:364 304#: plugins/check_disk.c:365
282#, c-format 305#, c-format
283msgid "failed allocating storage for '%s'\n" 306msgid "failed allocating storage for '%s'\n"
284msgstr "" 307msgstr ""
285 308
286#: plugins/check_disk.c:431 309#: plugins/check_disk.c:440
287msgid "check_disk: unrecognized option\n" 310msgid "check_disk: unrecognized option\n"
288msgstr "" 311msgstr ""
289 312
290#: plugins/check_disk.c:488 313#: plugins/check_disk.c:497
291msgid "INPUT ERROR: No thresholds specified" 314msgid "INPUT ERROR: No thresholds specified"
292msgstr "" 315msgstr ""
293 316
294#: plugins/check_disk.c:494 317#: plugins/check_disk.c:503
295#, c-format 318#, c-format
296msgid "" 319msgid ""
297"INPUT ERROR: C_DFP (%f) should be less than W_DFP (%.1f) and both should be " 320"INPUT ERROR: C_DFP (%f) should be less than W_DFP (%.1f) and both should be "
298"between zero and 100 percent, inclusive" 321"between zero and 100 percent, inclusive"
299msgstr "" 322msgstr ""
300 323
301#: plugins/check_disk.c:501 324#: plugins/check_disk.c:510
302#, c-format 325#, c-format
303msgid "" 326msgid ""
304"INPUT ERROR: C_DF (%lu) should be less than W_DF (%lu) and both should be " 327"INPUT ERROR: C_DF (%lu) should be less than W_DF (%lu) and both should be "
305"greater than zero" 328"greater than zero"
306msgstr "" 329msgstr ""
307 330
308#: plugins/check_disk.c:566 plugins/check_dns.c:406 plugins/check_dummy.c:84 331#: plugins/check_disk.c:575 plugins/check_dns.c:394 plugins/check_dummy.c:89
309#: plugins/check_hpjd.c:381 plugins/check_http.c:1103 plugins/check_mrtg.c:307 332#: plugins/check_hpjd.c:381 plugins/check_http.c:1113 plugins/check_mrtg.c:311
310#: plugins/check_mrtgtraf.c:325 plugins/check_nwstat.c:903 333#: plugins/check_mrtgtraf.c:323 plugins/check_nwstat.c:909
311#: plugins/check_overcr.c:423 plugins/check_tcp.c:596 334#: plugins/check_overcr.c:423 plugins/check_tcp.c:600
312msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n" 335msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"
313msgstr "" 336msgstr ""
314 337
315#: plugins/check_disk.c:569 338#: plugins/check_disk.c:578
316msgid "" 339msgid ""
317"This plugin checks the amount of used disk space on a mounted file system\n" 340"This plugin checks the amount of used disk space on a mounted file system\n"
318"and generates an alert if free space is less than one of the threshold " 341"and generates an alert if free space is less than one of the threshold "
319"values." 342"values."
320msgstr "" 343msgstr ""
321 344
322#: plugins/check_disk.c:577 345#: plugins/check_disk.c:586
323#, c-format 346#, c-format
324msgid "" 347msgid ""
325" -w, --warning=INTEGER\n" 348" -w, --warning=INTEGER\n"
@@ -335,7 +358,7 @@ msgid ""
335" Clear thresholds\n" 358" Clear thresholds\n"
336msgstr "" 359msgstr ""
337 360
338#: plugins/check_disk.c:589 361#: plugins/check_disk.c:598
339msgid "" 362msgid ""
340" -u, --units=STRING\n" 363" -u, --units=STRING\n"
341" Choose bytes, kB, MB, GB, TB (default: MB)\n" 364" Choose bytes, kB, MB, GB, TB (default: MB)\n"
@@ -345,7 +368,7 @@ msgid ""
345" Same as '--units MB'\n" 368" Same as '--units MB'\n"
346msgstr "" 369msgstr ""
347 370
348#: plugins/check_disk.c:597 371#: plugins/check_disk.c:606
349msgid "" 372msgid ""
350" -l, --local\n" 373" -l, --local\n"
351" Only check local filesystems\n" 374" Only check local filesystems\n"
@@ -361,14 +384,14 @@ msgid ""
361" Display only devices/mountpoints with errors\n" 384" Display only devices/mountpoints with errors\n"
362msgstr "" 385msgstr ""
363 386
364#: plugins/check_disk.c:617 387#: plugins/check_disk.c:626
365msgid "" 388msgid ""
366"Examples:\n" 389"Examples:\n"
367" check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /\n" 390" check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /\n"
368" Checks /tmp and /var at 10%,5% and / at 100MB, 50MB\n" 391" Checks /tmp and /var at 10%,5% and / at 100MB, 50MB\n"
369msgstr "" 392msgstr ""
370 393
371#: plugins/check_disk.c:630 394#: plugins/check_disk.c:639
372#, c-format 395#, c-format
373msgid "" 396msgid ""
374"Usage: %s -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]\n" 397"Usage: %s -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]\n"
@@ -377,114 +400,135 @@ msgid ""
377" %s (-V|--version)\n" 400" %s (-V|--version)\n"
378msgstr "" 401msgstr ""
379 402
380#: plugins/check_dns.c:129 plugins/check_dns.c:158 403#: plugins/check_dns.c:108
381msgid "Unknown error (plugin)" 404msgid "Unknown error (plugin)"
382msgstr "" 405msgstr ""
383 406
384#: plugins/check_dns.c:153 407#: plugins/check_dns.c:128
385#, c-format 408#, c-format
386msgid "DNS CRITICAL - '%s' returned empty host name string\n" 409msgid "DNS CRITICAL - '%s' returned empty host name string\n"
387msgstr "" 410msgstr ""
388 411
389#: plugins/check_dns.c:190 412#: plugins/check_dns.c:167
390msgid "nslookup returned error status" 413msgid "nslookup returned error status"
391msgstr "" 414msgstr ""
392 415
393#: plugins/check_dns.c:197 416#: plugins/check_dns.c:174
394#, c-format 417#, c-format
395msgid "DNS CRITICAL - '%s' output parsing exited with no address\n" 418msgid "DNS CRITICAL - '%s' output parsing exited with no address\n"
396msgstr "" 419msgstr ""
397 420
398#: plugins/check_dns.c:203 421#: plugins/check_dns.c:180
399#, c-format 422#, c-format
400msgid "expected %s but got %s" 423msgid "expected %s but got %s"
401msgstr "" 424msgstr ""
402 425
403#: plugins/check_dns.c:215 426#: plugins/check_dns.c:186
404#, c-format 427#, c-format
405msgid "DNS ok - %.3f seconds response time, address%s %s|%s\n" 428msgid "server %s is not authoritative for %s"
429msgstr ""
430
431#: plugins/check_dns.c:198
432msgid "DNS"
406msgstr "" 433msgstr ""
407 434
408#: plugins/check_dns.c:220 435#: plugins/check_dns.c:198 plugins/check_dummy.c:58 plugins/check_http.c:678
436#: plugins/check_http.c:928 plugins/check_procs.c:263
437msgid "OK"
438msgstr ""
439
440#: plugins/check_dns.c:199
441#, c-format
442msgid "%.3f second response time, "
443msgid_plural "%.3f seconds response time, "
444msgstr[0] ""
445msgstr[1] ""
446
447#: plugins/check_dns.c:200
448#, c-format
449msgid "%s returns %s"
450msgstr ""
451
452#: plugins/check_dns.c:204
409#, c-format 453#, c-format
410msgid "DNS WARNING - %s\n" 454msgid "DNS WARNING - %s\n"
411msgstr "" 455msgstr ""
412 456
413#: plugins/check_dns.c:223 457#: plugins/check_dns.c:207
414#, c-format 458#, c-format
415msgid "DNS CRITICAL - %s\n" 459msgid "DNS CRITICAL - %s\n"
416msgstr "" 460msgstr ""
417 461
418#: plugins/check_dns.c:226 462#: plugins/check_dns.c:210
419#, c-format 463#, c-format
420msgid "DNS problem - %s\n" 464msgid "DNS problem - %s\n"
421msgstr "" 465msgstr ""
422 466
423#: plugins/check_dns.c:244 467#: plugins/check_dns.c:228
424#, c-format 468#, c-format
425msgid "No response from name server %s\n" 469msgid "No response from name server %s\n"
426msgstr "" 470msgstr ""
427 471
428#: plugins/check_dns.c:248 472#: plugins/check_dns.c:232
429#, c-format 473#, c-format
430msgid "Name server %s has no records\n" 474msgid "Name server %s has no records\n"
431msgstr "" 475msgstr ""
432 476
433#: plugins/check_dns.c:255 477#: plugins/check_dns.c:239
434#, c-format 478#, c-format
435msgid "Connection to name server %s was refused\n" 479msgid "Connection to name server %s was refused\n"
436msgstr "" 480msgstr ""
437 481
438#: plugins/check_dns.c:261 482#: plugins/check_dns.c:245
439#, c-format 483#, c-format
440msgid "Domain %s was not found by the server\n" 484msgid "Domain %s was not found by the server\n"
441msgstr "" 485msgstr ""
442 486
443#: plugins/check_dns.c:265 487#: plugins/check_dns.c:249
444msgid "Network is unreachable\n" 488msgid "Network is unreachable\n"
445msgstr "" 489msgstr ""
446 490
447#: plugins/check_dns.c:269 491#: plugins/check_dns.c:253
448#, c-format 492#, c-format
449msgid "Server failure for %s\n" 493msgid "Server failure for %s\n"
450msgstr "" 494msgstr ""
451 495
452#: plugins/check_dns.c:314 plugins/check_fping.c:243 plugins/check_game.c:210 496#: plugins/check_dns.c:299 plugins/check_fping.c:243 plugins/check_game.c:210
453#: plugins/check_overcr.c:335 plugins/check_radius.c:213 497#: plugins/check_overcr.c:335 plugins/check_radius.c:216
454#: plugins/check_tcp.c:402 plugins/check_udp.c:147 plugins/check_users.c:134 498#: plugins/check_tcp.c:406 plugins/check_udp.c:147 plugins/check_users.c:143
455#, c-format 499#, c-format
456msgid "" 500msgid ""
457"%s: Unknown argument: %s\n" 501"%s: Unknown argument: %s\n"
458"\n" 502"\n"
459msgstr "" 503msgstr ""
460 504
461#: plugins/check_dns.c:331 plugins/check_dns.c:343 plugins/check_dns.c:354 505#: plugins/check_dns.c:316 plugins/check_dns.c:328 plugins/check_dns.c:339
462#: plugins/check_dns.c:359 plugins/check_dns.c:369 plugins/check_dns.c:380 506#: plugins/check_dns.c:344 plugins/check_dns.c:357 plugins/check_dns.c:368
463#: plugins/check_game.c:227 plugins/check_game.c:235 507#: plugins/check_game.c:227 plugins/check_game.c:235
464msgid "Input buffer overflow\n" 508msgid "Input buffer overflow\n"
465msgstr "" 509msgstr ""
466 510
467#: plugins/check_dns.c:338 511#: plugins/check_dns.c:323
468msgid "" 512msgid ""
469"Invalid server name/address\n" 513"Invalid server name/address\n"
470"\n" 514"\n"
471msgstr "" 515msgstr ""
472 516
473#: plugins/check_dns.c:349 plugins/check_fping.c:257 517#: plugins/check_dns.c:334 plugins/check_fping.c:257
474#: plugins/check_radius.c:227 518#: plugins/check_radius.c:230
475msgid "" 519msgid ""
476"Invalid host name/address\n" 520"Invalid host name/address\n"
477"\n" 521"\n"
478msgstr "" 522msgstr ""
479 523
480#: plugins/check_dns.c:376 524#: plugins/check_dns.c:364
481#, c-format 525#, c-format
482msgid "" 526msgid ""
483"Invalid name/address: %s\n" 527"Invalid name/address: %s\n"
484"\n" 528"\n"
485msgstr "" 529msgstr ""
486 530
487#: plugins/check_dns.c:413 531#: plugins/check_dns.c:401
488msgid "" 532msgid ""
489"-H, --hostname=HOST\n" 533"-H, --hostname=HOST\n"
490" The name or address you want to query\n" 534" The name or address you want to query\n"
@@ -492,9 +536,11 @@ msgid ""
492" Optional DNS server you want to use for the lookup\n" 536" Optional DNS server you want to use for the lookup\n"
493"-a, --expected-address=IP-ADDRESS\n" 537"-a, --expected-address=IP-ADDRESS\n"
494" Optional IP address you expect the DNS server to return\n" 538" Optional IP address you expect the DNS server to return\n"
539"-A, --expect-authority\n"
540" Optionally expect the DNS server to be authoritative for the lookup\n"
495msgstr "" 541msgstr ""
496 542
497#: plugins/check_dns.c:423 543#: plugins/check_dns.c:413
498msgid "" 544msgid ""
499"\n" 545"\n"
500"This plugin uses the nslookup program to obtain the IP address\n" 546"This plugin uses the nslookup program to obtain the IP address\n"
@@ -503,10 +549,10 @@ msgid ""
503"specified in /etc/resolv.conf will be used.\n" 549"specified in /etc/resolv.conf will be used.\n"
504msgstr "" 550msgstr ""
505 551
506#: plugins/check_dns.c:438 552#: plugins/check_dns.c:428
507#, c-format 553#, c-format
508msgid "" 554msgid ""
509"Usage: %s -H host [-s server] [-a expected-address] [-t timeout]\n" 555"Usage: %s -H host [-s server] [-a expected-address] [-A] [-t timeout]\n"
510" %s --help\n" 556" %s --help\n"
511" %s --version\n" 557" %s --version\n"
512msgstr "" 558msgstr ""
@@ -519,16 +565,33 @@ msgstr ""
519msgid "Arguments to check_dummy must be an integer\n" 565msgid "Arguments to check_dummy must be an integer\n"
520msgstr "" 566msgstr ""
521 567
522#: plugins/check_dummy.c:91 568#: plugins/check_dummy.c:61 plugins/check_http.c:680 plugins/check_procs.c:265
569msgid "WARNING"
570msgstr ""
571
572#: plugins/check_dummy.c:64 plugins/check_http.c:682 plugins/check_procs.c:270
573msgid "CRITICAL"
574msgstr ""
575
576#: plugins/check_dummy.c:67 plugins/check_http.c:676
577msgid "UNKNOWN"
578msgstr ""
579
580#: plugins/check_dummy.c:70
581#, c-format
582msgid "Status %d is not a supported error state\n"
583msgstr ""
584
585#: plugins/check_dummy.c:96
523msgid "" 586msgid ""
524"\n" 587"\n"
525"This plugin will simply return the state corresponding to the numeric value\n" 588"This plugin will simply return the state corresponding to the numeric value\n"
526"of the <state> argument.\n" 589"of the <state> argument with optional text.\n"
527msgstr "" 590msgstr ""
528 591
529#: plugins/check_dummy.c:103 592#: plugins/check_dummy.c:108
530#, c-format 593#, c-format
531msgid "Usage: %s <integer state>\n" 594msgid "Usage: %s <integer state> [optional text]\n"
532msgstr "" 595msgstr ""
533 596
534#: plugins/check_fping.c:83 597#: plugins/check_fping.c:83
@@ -684,8 +747,8 @@ msgid ""
684msgstr "" 747msgstr ""
685 748
686#: plugins/check_hpjd.c:87 plugins/check_mrtg.c:61 plugins/check_mrtgtraf.c:67 749#: plugins/check_hpjd.c:87 plugins/check_mrtg.c:61 plugins/check_mrtgtraf.c:67
687#: plugins/check_mysql.c:51 plugins/check_real.c:69 plugins/check_smtp.c:74 750#: plugins/check_mysql.c:51 plugins/check_real.c:69 plugins/check_smtp.c:93
688#: plugins/check_swap.c:78 plugins/check_time.c:63 751#: plugins/check_swap.c:93 plugins/check_time.c:64
689msgid "Invalid command arguments supplied\n" 752msgid "Invalid command arguments supplied\n"
690msgstr "" 753msgstr ""
691 754
@@ -739,13 +802,13 @@ msgid "Printer ok - (%s)\n"
739msgstr "" 802msgstr ""
740 803
741#: plugins/check_hpjd.c:324 plugins/check_mysql.c:132 plugins/check_real.c:306 804#: plugins/check_hpjd.c:324 plugins/check_mysql.c:132 plugins/check_real.c:306
742#: plugins/check_smtp.c:236 805#: plugins/check_smtp.c:294
743msgid "Invalid host name\n" 806msgid "Invalid host name\n"
744msgstr "" 807msgstr ""
745 808
746#: plugins/check_hpjd.c:337 plugins/check_load.c:230 plugins/check_mrtg.c:228 809#: plugins/check_hpjd.c:337 plugins/check_load.c:230 plugins/check_mrtg.c:232
747#: plugins/check_mrtgtraf.c:264 plugins/check_mysql.c:154 810#: plugins/check_mrtgtraf.c:262 plugins/check_mysql.c:154
748#: plugins/check_real.c:358 plugins/check_smtp.c:304 plugins/check_swap.c:324 811#: plugins/check_real.c:358 plugins/check_smtp.c:376 plugins/check_swap.c:423
749msgid "Invalid argument\n" 812msgid "Invalid argument\n"
750msgstr "" 813msgstr ""
751 814
@@ -768,246 +831,230 @@ msgstr ""
768msgid "Usage: %s -H host [-C community]\n" 831msgid "Usage: %s -H host [-C community]\n"
769msgstr "" 832msgstr ""
770 833
771#: plugins/check_http.c:141 834#: plugins/check_http.c:142
772msgid "check_http: could not parse arguments\n" 835msgid "check_http: could not parse arguments\n"
773msgstr "" 836msgstr ""
774 837
775#: plugins/check_http.c:162 838#: plugins/check_http.c:163
776msgid "HTTP CRITICAL - Could not make SSL connection\n" 839msgid "HTTP CRITICAL - Could not make SSL connection\n"
777msgstr "" 840msgstr ""
778 841
779#: plugins/check_http.c:168 plugins/check_http.c:495 842#: plugins/check_http.c:169 plugins/check_http.c:501
780msgid "ERROR: Cannot retrieve server certificate.\n" 843msgid "ERROR: Cannot retrieve server certificate.\n"
781msgstr "" 844msgstr ""
782 845
783#: plugins/check_http.c:239 846#: plugins/check_http.c:242
784msgid "unknown argument" 847msgid "unknown argument"
785msgstr "" 848msgstr ""
786 849
787#: plugins/check_http.c:251 850#: plugins/check_http.c:254
788msgid "timeout interval must be a non-negative integer" 851msgid "timeout interval must be a non-negative integer"
789msgstr "" 852msgstr ""
790 853
791#: plugins/check_http.c:257 854#: plugins/check_http.c:260
792msgid "invalid critical threshold" 855msgid "invalid critical threshold"
793msgstr "" 856msgstr ""
794 857
795#: plugins/check_http.c:265 858#: plugins/check_http.c:268
796msgid "invalid warning threshold" 859msgid "invalid warning threshold"
797msgstr "" 860msgstr ""
798 861
799#: plugins/check_http.c:279 plugins/check_http.c:294 862#: plugins/check_http.c:282 plugins/check_http.c:297
800msgid "check_http: invalid option - SSL is not available\n" 863msgid "check_http: invalid option - SSL is not available\n"
801msgstr "" 864msgstr ""
802 865
803#: plugins/check_http.c:288 866#: plugins/check_http.c:291
804msgid "invalid certificate expiration period" 867msgid "invalid certificate expiration period"
805msgstr "" 868msgstr ""
806 869
807#: plugins/check_http.c:309 870#: plugins/check_http.c:312
808#, c-format 871#, c-format
809msgid "option f:%d \n" 872msgid "option f:%d \n"
810msgstr "" 873msgstr ""
811 874
812#: plugins/check_http.c:324 875#: plugins/check_http.c:327
813msgid "invalid port number" 876msgid "invalid port number"
814msgstr "" 877msgstr ""
815 878
816#: plugins/check_http.c:352 879#: plugins/check_http.c:358
817msgid "check_http: call for regex which was not a compiled option\n" 880msgid "check_http: call for regex which was not a compiled option\n"
818msgstr "" 881msgstr ""
819 882
820#: plugins/check_http.c:366 883#: plugins/check_http.c:372
821#, c-format 884#, c-format
822msgid "Could Not Compile Regular Expression: %s" 885msgid "Could Not Compile Regular Expression: %s"
823msgstr "" 886msgstr ""
824 887
825#: plugins/check_http.c:378 plugins/check_ldap.c:241 plugins/check_ping.c:222 888#: plugins/check_http.c:384 plugins/check_ldap.c:241 plugins/check_ping.c:224
826#: plugins/check_smtp.c:294 plugins/check_ssh.c:128 plugins/check_tcp.c:421 889#: plugins/check_smtp.c:366 plugins/check_ssh.c:128 plugins/check_tcp.c:425
827msgid "IPv6 support not available\n" 890msgid "IPv6 support not available\n"
828msgstr "" 891msgstr ""
829 892
830#: plugins/check_http.c:400 893#: plugins/check_http.c:406
831msgid "check_http: you must specify a server address or host name\n" 894msgid "check_http: you must specify a server address or host name\n"
832msgstr "" 895msgstr ""
833 896
834#: plugins/check_http.c:488 plugins/check_http.c:503 897#: plugins/check_http.c:494 plugins/check_http.c:509
835msgid "Unable to open TCP socket\n" 898msgid "Unable to open TCP socket\n"
836msgstr "" 899msgstr ""
837 900
838#: plugins/check_http.c:561 901#: plugins/check_http.c:571
839msgid "Client Certificate Required\n" 902msgid "Client Certificate Required\n"
840msgstr "" 903msgstr ""
841 904
842#: plugins/check_http.c:563 plugins/check_http.c:568 905#: plugins/check_http.c:573 plugins/check_http.c:578
843msgid "Error in recv()\n" 906msgid "Error in recv()\n"
844msgstr "" 907msgstr ""
845 908
846#: plugins/check_http.c:576 909#: plugins/check_http.c:586
847#, c-format 910#, c-format
848msgid "No data received %s\n" 911msgid "No data received %s\n"
849msgstr "" 912msgstr ""
850 913
851#: plugins/check_http.c:620 914#: plugins/check_http.c:630
852msgid "Invalid HTTP response received from host\n" 915msgid "Invalid HTTP response received from host\n"
853msgstr "" 916msgstr ""
854 917
855#: plugins/check_http.c:623 918#: plugins/check_http.c:633
856#, c-format 919#, c-format
857msgid "Invalid HTTP response received from host on port %d\n" 920msgid "Invalid HTTP response received from host on port %d\n"
858msgstr "" 921msgstr ""
859 922
860#: plugins/check_http.c:631 923#: plugins/check_http.c:641
861#, c-format 924#, c-format
862msgid "HTTP OK: Status line output matched \"%s\"\n" 925msgid "HTTP OK: Status line output matched \"%s\"\n"
863msgstr "" 926msgstr ""
864 927
865#: plugins/check_http.c:643 928#: plugins/check_http.c:653
866#, c-format 929#, c-format
867msgid "HTTP CRITICAL: Invalid Status Line (%s)\n" 930msgid "HTTP CRITICAL: Invalid Status Line (%s)\n"
868msgstr "" 931msgstr ""
869 932
870#: plugins/check_http.c:650 933#: plugins/check_http.c:660
871#, c-format 934#, c-format
872msgid "HTTP CRITICAL: Invalid Status (%s)\n" 935msgid "HTTP CRITICAL: Invalid Status (%s)\n"
873msgstr "" 936msgstr ""
874 937
875#: plugins/check_http.c:654 938#: plugins/check_http.c:664
876#, c-format 939#, c-format
877msgid "HTTP CRITICAL: %s\n" 940msgid "HTTP CRITICAL: %s\n"
878msgstr "" 941msgstr ""
879 942
880#: plugins/check_http.c:658 943#: plugins/check_http.c:668
881#, c-format 944#, c-format
882msgid "HTTP WARNING: %s\n" 945msgid "HTTP WARNING: %s\n"
883msgstr "" 946msgstr ""
884 947
885#: plugins/check_http.c:666 948#: plugins/check_http.c:686
886msgid "UNKNOWN"
887msgstr ""
888
889#: plugins/check_http.c:668 plugins/check_http.c:918 plugins/check_procs.c:249
890msgid "OK"
891msgstr ""
892
893#: plugins/check_http.c:670 plugins/check_procs.c:251
894msgid "WARNING"
895msgstr ""
896
897#: plugins/check_http.c:672 plugins/check_procs.c:256
898msgid "CRITICAL"
899msgstr ""
900
901#: plugins/check_http.c:676
902#, c-format 949#, c-format
903msgid " - %s - %.3f second response time %s%s|%s %s\n" 950msgid " - %s - %.3f second response time %s%s|%s %s\n"
904msgstr "" 951msgstr ""
905 952
906#: plugins/check_http.c:688 953#: plugins/check_http.c:698
907#, c-format 954#, c-format
908msgid "HTTP problem: %s - %.3f second response time %s%s|%s %s\n" 955msgid "HTTP problem: %s - %.3f second response time %s%s|%s %s\n"
909msgstr "" 956msgstr ""
910 957
911#: plugins/check_http.c:702 plugins/check_http.c:719 958#: plugins/check_http.c:712 plugins/check_http.c:729
912#, c-format 959#, c-format
913msgid "HTTP OK %s - %.3f second response time %s%s|%s %s\n" 960msgid "HTTP OK %s - %.3f second response time %s%s|%s %s\n"
914msgstr "" 961msgstr ""
915 962
916#: plugins/check_http.c:709 963#: plugins/check_http.c:719
917#, c-format 964#, c-format
918msgid "CRITICAL - string not found%s|%s %s\n" 965msgid "CRITICAL - string not found%s|%s %s\n"
919msgstr "" 966msgstr ""
920 967
921#: plugins/check_http.c:727 968#: plugins/check_http.c:737
922#, c-format 969#, c-format
923msgid "CRITICAL - pattern not found%s|%s %s\n" 970msgid "CRITICAL - pattern not found%s|%s %s\n"
924msgstr "" 971msgstr ""
925 972
926#: plugins/check_http.c:734 973#: plugins/check_http.c:744
927#, c-format 974#, c-format
928msgid "CRITICAL - Execute Error: %s\n" 975msgid "CRITICAL - Execute Error: %s\n"
929msgstr "" 976msgstr ""
930 977
931#: plugins/check_http.c:744 978#: plugins/check_http.c:754
932#, c-format 979#, c-format
933msgid "HTTP WARNING: page size %d too small%s|%s\n" 980msgid "HTTP WARNING: page size %d too small%s|%s\n"
934msgstr "" 981msgstr ""
935 982
936#: plugins/check_http.c:749 983#: plugins/check_http.c:759
937#, c-format 984#, c-format
938msgid "HTTP OK %s - %d bytes in %.3f seconds %s%s|%s %s\n" 985msgid "HTTP OK %s - %d bytes in %.3f seconds %s%s|%s %s\n"
939msgstr "" 986msgstr ""
940 987
941#: plugins/check_http.c:785 988#: plugins/check_http.c:795
942msgid "ERROR: could not allocate addr\n" 989msgid "ERROR: could not allocate addr\n"
943msgstr "" 990msgstr ""
944 991
945#: plugins/check_http.c:789 plugins/check_http.c:809 992#: plugins/check_http.c:799 plugins/check_http.c:819
946msgid "ERROR: could not allocate url\n" 993msgid "ERROR: could not allocate url\n"
947msgstr "" 994msgstr ""
948 995
949#: plugins/check_http.c:799 996#: plugins/check_http.c:809
950#, c-format 997#, c-format
951msgid "UNKNOWN - Could not find redirect location - %s%s\n" 998msgid "UNKNOWN - Could not find redirect location - %s%s\n"
952msgstr "" 999msgstr ""
953 1000
954#: plugins/check_http.c:852 1001#: plugins/check_http.c:862
955#, c-format 1002#, c-format
956msgid "UNKNOWN - Could not parse redirect location - %s%s\n" 1003msgid "UNKNOWN - Could not parse redirect location - %s%s\n"
957msgstr "" 1004msgstr ""
958 1005
959#: plugins/check_http.c:862 1006#: plugins/check_http.c:872
960#, c-format 1007#, c-format
961msgid "WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n" 1008msgid "WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n"
962msgstr "" 1009msgstr ""
963 1010
964#: plugins/check_http.c:870 1011#: plugins/check_http.c:880
965#, c-format 1012#, c-format
966msgid "WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n" 1013msgid "WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n"
967msgstr "" 1014msgstr ""
968 1015
969#: plugins/check_http.c:918 1016#: plugins/check_http.c:928
970#, c-format 1017#, c-format
971msgid "SSL seeding: %s\n" 1018msgid "SSL seeding: %s\n"
972msgstr "" 1019msgstr ""
973 1020
974#: plugins/check_http.c:918 1021#: plugins/check_http.c:928
975msgid "Failed" 1022msgid "Failed"
976msgstr "" 1023msgstr ""
977 1024
978#: plugins/check_http.c:925 1025#: plugins/check_http.c:935
979msgid "CRITICAL - Cannot create SSL context.\n" 1026msgid "CRITICAL - Cannot create SSL context.\n"
980msgstr "" 1027msgstr ""
981 1028
982#: plugins/check_http.c:949 1029#: plugins/check_http.c:959
983msgid "CRITICAL - Cannot initiate SSL handshake.\n" 1030msgid "CRITICAL - Cannot initiate SSL handshake.\n"
984msgstr "" 1031msgstr ""
985 1032
986#: plugins/check_http.c:977 plugins/check_http.c:989 1033#: plugins/check_http.c:987 plugins/check_http.c:999
987msgid "CRITICAL - Wrong time format in certificate.\n" 1034msgid "CRITICAL - Wrong time format in certificate.\n"
988msgstr "" 1035msgstr ""
989 1036
990#: plugins/check_http.c:1018 1037#: plugins/check_http.c:1028
991#, c-format 1038#, c-format
992msgid "WARNING - Certificate expires in %d day(s) (%s).\n" 1039msgid "WARNING - Certificate expires in %d day(s) (%s).\n"
993msgstr "" 1040msgstr ""
994 1041
995#: plugins/check_http.c:1022 1042#: plugins/check_http.c:1032
996#, c-format 1043#, c-format
997msgid "CRITICAL - Certificate expired on %s.\n" 1044msgid "CRITICAL - Certificate expired on %s.\n"
998msgstr "" 1045msgstr ""
999 1046
1000#: plugins/check_http.c:1027 1047#: plugins/check_http.c:1037
1001#, c-format 1048#, c-format
1002msgid "WARNING - Certificate expires today (%s).\n" 1049msgid "WARNING - Certificate expires today (%s).\n"
1003msgstr "" 1050msgstr ""
1004 1051
1005#: plugins/check_http.c:1031 1052#: plugins/check_http.c:1041
1006#, c-format 1053#, c-format
1007msgid "OK - Certificate will expire on %s.\n" 1054msgid "OK - Certificate will expire on %s.\n"
1008msgstr "" 1055msgstr ""
1009 1056
1010#: plugins/check_http.c:1106 1057#: plugins/check_http.c:1116
1011msgid "" 1058msgid ""
1012"This plugin tests the HTTP service on the specified host. It can test\n" 1059"This plugin tests the HTTP service on the specified host. It can test\n"
1013"normal (http) and secure (https) servers, follow redirects, search for\n" 1060"normal (http) and secure (https) servers, follow redirects, search for\n"
@@ -1015,11 +1062,11 @@ msgid ""
1015"certificate expiration times.\n" 1062"certificate expiration times.\n"
1016msgstr "" 1063msgstr ""
1017 1064
1018#: plugins/check_http.c:1114 1065#: plugins/check_http.c:1124
1019msgid "NOTE: One or both of -H and -I must be specified\n" 1066msgid "NOTE: One or both of -H and -I must be specified\n"
1020msgstr "" 1067msgstr ""
1021 1068
1022#: plugins/check_http.c:1118 1069#: plugins/check_http.c:1128
1023#, fuzzy, c-format 1070#, fuzzy, c-format
1024msgid "" 1071msgid ""
1025" -H, --hostname=ADDRESS\n" 1072" -H, --hostname=ADDRESS\n"
@@ -1040,7 +1087,7 @@ msgstr ""
1040" -6, --use-ipv6\n" 1087" -6, --use-ipv6\n"
1041" Use IPv6 connection\n" 1088" Use IPv6 connection\n"
1042 1089
1043#: plugins/check_http.c:1129 1090#: plugins/check_http.c:1139
1044msgid "" 1091msgid ""
1045" -S, --ssl\n" 1092" -S, --ssl\n"
1046" Connect via SSL\n" 1093" Connect via SSL\n"
@@ -1049,7 +1096,7 @@ msgid ""
1049" (when this option is used the url is not checked.)\n" 1096" (when this option is used the url is not checked.)\n"
1050msgstr "" 1097msgstr ""
1051 1098
1052#: plugins/check_http.c:1137 1099#: plugins/check_http.c:1147
1053#, c-format 1100#, c-format
1054msgid "" 1101msgid ""
1055" -e, --expect=STRING\n" 1102" -e, --expect=STRING\n"
@@ -1062,9 +1109,11 @@ msgid ""
1062" URL to GET or POST (default: /)\n" 1109" URL to GET or POST (default: /)\n"
1063" -P, --post=STRING\n" 1110" -P, --post=STRING\n"
1064" URL encoded http POST data\n" 1111" URL encoded http POST data\n"
1112" -T, --content-type=STRING\n"
1113" specify Content-Type header media type when POSTing\n"
1065msgstr "" 1114msgstr ""
1066 1115
1067#: plugins/check_http.c:1149 1116#: plugins/check_http.c:1161
1068msgid "" 1117msgid ""
1069" -l, --linespan\n" 1118" -l, --linespan\n"
1070" Allow regex to span newlines (must precede -r or -R)\n" 1119" Allow regex to span newlines (must precede -r or -R)\n"
@@ -1074,7 +1123,7 @@ msgid ""
1074" Search page for case-insensitive regex STRING\n" 1123" Search page for case-insensitive regex STRING\n"
1075msgstr "" 1124msgstr ""
1076 1125
1077#: plugins/check_http.c:1158 1126#: plugins/check_http.c:1170
1078msgid "" 1127msgid ""
1079" -a, --authorization=AUTH_PAIR\n" 1128" -a, --authorization=AUTH_PAIR\n"
1080" Username:password on sites with basic authentication\n" 1129" Username:password on sites with basic authentication\n"
@@ -1086,7 +1135,7 @@ msgid ""
1086" Minimum page size required (bytes)\n" 1135" Minimum page size required (bytes)\n"
1087msgstr "" 1136msgstr ""
1088 1137
1089#: plugins/check_http.c:1174 1138#: plugins/check_http.c:1186
1090msgid "" 1139msgid ""
1091"This plugin will attempt to open an HTTP connection with the host. " 1140"This plugin will attempt to open an HTTP connection with the host. "
1092"Successful\n" 1141"Successful\n"
@@ -1098,7 +1147,7 @@ msgid ""
1098"(fully qualified domain name) as the [host_name] argument.\n" 1147"(fully qualified domain name) as the [host_name] argument.\n"
1099msgstr "" 1148msgstr ""
1100 1149
1101#: plugins/check_http.c:1183 1150#: plugins/check_http.c:1195
1102msgid "" 1151msgid ""
1103"\n" 1152"\n"
1104"This plugin can also check whether an SSL enabled web server is able to\n" 1153"This plugin can also check whether an SSL enabled web server is able to\n"
@@ -1106,7 +1155,7 @@ msgid ""
1106"certificate is still valid for the specified number of days.\n" 1155"certificate is still valid for the specified number of days.\n"
1107msgstr "" 1156msgstr ""
1108 1157
1109#: plugins/check_http.c:1187 1158#: plugins/check_http.c:1199
1110msgid "" 1159msgid ""
1111"\n" 1160"\n"
1112"CHECK CONTENT: check_http -w 5 -c 10 --ssl www.verisign.com\n" 1161"CHECK CONTENT: check_http -w 5 -c 10 --ssl www.verisign.com\n"
@@ -1119,7 +1168,7 @@ msgid ""
1119"\n" 1168"\n"
1120msgstr "" 1169msgstr ""
1121 1170
1122#: plugins/check_http.c:1194 1171#: plugins/check_http.c:1206
1123msgid "" 1172msgid ""
1124"CHECK CERTIFICATE: check_http www.verisign.com -C 14\n" 1173"CHECK CERTIFICATE: check_http www.verisign.com -C 14\n"
1125"\n" 1174"\n"
@@ -1132,7 +1181,7 @@ msgid ""
1132"the certificate is expired.\n" 1181"the certificate is expired.\n"
1133msgstr "" 1182msgstr ""
1134 1183
1135#: plugins/check_http.c:1212 1184#: plugins/check_http.c:1224
1136#, c-format 1185#, c-format
1137msgid "" 1186msgid ""
1138"Usage: %s (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n" 1187"Usage: %s (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n"
@@ -1412,43 +1461,43 @@ msgstr ""
1412msgid "Unable to process MRTG log file\n" 1461msgid "Unable to process MRTG log file\n"
1413msgstr "" 1462msgstr ""
1414 1463
1415#: plugins/check_mrtg.c:123 plugins/check_mrtgtraf.c:121 1464#: plugins/check_mrtg.c:123 plugins/check_mrtgtraf.c:120
1416#, c-format 1465#, c-format
1417msgid "MRTG data has expired (%d minutes old)\n" 1466msgid "MRTG data has expired (%d minutes old)\n"
1418msgstr "" 1467msgstr ""
1419 1468
1420#: plugins/check_mrtg.c:143 1469#: plugins/check_mrtg.c:141 plugins/check_mrtgtraf.c:179
1421msgid "Ave" 1470#: plugins/check_mrtgtraf.c:180
1471msgid "Avg"
1422msgstr "" 1472msgstr ""
1423 1473
1424#: plugins/check_mrtg.c:143 plugins/check_mrtgtraf.c:175 1474#: plugins/check_mrtg.c:141 plugins/check_mrtgtraf.c:179
1425#: plugins/check_mrtgtraf.c:183 plugins/check_mrtgtraf.c:184 1475#: plugins/check_mrtgtraf.c:180
1426#: plugins/check_mrtgtraf.c:189 plugins/check_mrtgtraf.c:190
1427msgid "Max" 1476msgid "Max"
1428msgstr "" 1477msgstr ""
1429 1478
1430#: plugins/check_mrtg.c:207 plugins/check_mrtg.c:259 1479#: plugins/check_mrtg.c:211 plugins/check_mrtg.c:263
1431msgid "Invalid variable number\n" 1480msgid "Invalid variable number\n"
1432msgstr "" 1481msgstr ""
1433 1482
1434#: plugins/check_mrtg.c:242 1483#: plugins/check_mrtg.c:246
1435#, c-format 1484#, c-format
1436msgid "" 1485msgid ""
1437"%s is not a valid expiration time\n" 1486"%s is not a valid expiration time\n"
1438"Use '%s -h' for additional help\n" 1487"Use '%s -h' for additional help\n"
1439msgstr "" 1488msgstr ""
1440 1489
1441#: plugins/check_mrtg.c:286 1490#: plugins/check_mrtg.c:290
1442msgid "You must supply the variable number\n" 1491msgid "You must supply the variable number\n"
1443msgstr "" 1492msgstr ""
1444 1493
1445#: plugins/check_mrtg.c:310 1494#: plugins/check_mrtg.c:314
1446msgid "" 1495msgid ""
1447"This plugin will check either the average or maximum value of one of the\n" 1496"This plugin will check either the average or maximum value of one of the\n"
1448"two variables recorded in an MRTG log file.\n" 1497"two variables recorded in an MRTG log file.\n"
1449msgstr "" 1498msgstr ""
1450 1499
1451#: plugins/check_mrtg.c:318 1500#: plugins/check_mrtg.c:322
1452msgid "" 1501msgid ""
1453" -F, --logfile=FILE\n" 1502" -F, --logfile=FILE\n"
1454" The MRTG log file containing the data you want to monitor\n" 1503" The MRTG log file containing the data you want to monitor\n"
@@ -1464,7 +1513,7 @@ msgid ""
1464" Threshold value for data to result in CRITICAL status\n" 1513" Threshold value for data to result in CRITICAL status\n"
1465msgstr "" 1514msgstr ""
1466 1515
1467#: plugins/check_mrtg.c:332 1516#: plugins/check_mrtg.c:336
1468#, c-format 1517#, c-format
1469msgid "" 1518msgid ""
1470" -l, --label=STRING\n" 1519" -l, --label=STRING\n"
@@ -1474,7 +1523,7 @@ msgid ""
1474" \"Bytes Per Second\", \"%% Utilization\")\n" 1523" \"Bytes Per Second\", \"%% Utilization\")\n"
1475msgstr "" 1524msgstr ""
1476 1525
1477#: plugins/check_mrtg.c:339 1526#: plugins/check_mrtg.c:343
1478msgid "" 1527msgid ""
1479"If the value exceeds the <vwl> threshold, a WARNING status is returned. If\n" 1528"If the value exceeds the <vwl> threshold, a WARNING status is returned. If\n"
1480"the value exceeds the <vcl> threshold, a CRITICAL status is returned. If\n" 1529"the value exceeds the <vcl> threshold, a CRITICAL status is returned. If\n"
@@ -1483,7 +1532,7 @@ msgid ""
1483"\n" 1532"\n"
1484msgstr "" 1533msgstr ""
1485 1534
1486#: plugins/check_mrtg.c:345 1535#: plugins/check_mrtg.c:349
1487msgid "" 1536msgid ""
1488"This plugin is useful for monitoring MRTG data that does not correspond to\n" 1537"This plugin is useful for monitoring MRTG data that does not correspond to\n"
1489"bandwidth usage. (Use the check_mrtgtraf plugin for monitoring bandwidth).\n" 1538"bandwidth usage. (Use the check_mrtgtraf plugin for monitoring bandwidth).\n"
@@ -1495,7 +1544,7 @@ msgid ""
1495"\n" 1544"\n"
1496msgstr "" 1545msgstr ""
1497 1546
1498#: plugins/check_mrtg.c:352 1547#: plugins/check_mrtg.c:356
1499msgid "" 1548msgid ""
1500"Notes:\n" 1549"Notes:\n"
1501"- This plugin only monitors one of the two variables stored in the MRTG log\n" 1550"- This plugin only monitors one of the two variables stored in the MRTG log\n"
@@ -1507,40 +1556,24 @@ msgid ""
1507" http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html\n" 1556" http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html\n"
1508msgstr "" 1557msgstr ""
1509 1558
1510#: plugins/check_mrtg.c:372 1559#: plugins/check_mrtg.c:376
1511#, c-format 1560#, c-format
1512msgid "" 1561msgid ""
1513"Usage: %s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n" 1562"Usage: %s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n"
1514" [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n" 1563" [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n"
1515msgstr "" 1564msgstr ""
1516 1565
1517#: plugins/check_mrtgtraf.c:174 1566#: plugins/check_mrtgtraf.c:178
1518#, c-format 1567#, c-format
1519msgid "Traffic CRITICAL %s. In = %0.1f %s, %s. Out = %0.1f %s" 1568msgid "%s. In = %0.1f %s, %s. Out = %0.1f %s|%s %s\n"
1520msgstr "" 1569msgstr ""
1521 1570
1522#: plugins/check_mrtgtraf.c:175 plugins/check_mrtgtraf.c:183 1571#: plugins/check_mrtgtraf.c:191
1523#: plugins/check_mrtgtraf.c:184 plugins/check_mrtgtraf.c:189
1524#: plugins/check_mrtgtraf.c:190
1525msgid "Avg"
1526msgstr ""
1527
1528#: plugins/check_mrtgtraf.c:182
1529#, c-format
1530msgid "Traffic WARNING %s. In = %0.1f %s, %s. Out = %0.1f %s"
1531msgstr ""
1532
1533#: plugins/check_mrtgtraf.c:188
1534#, c-format 1572#, c-format
1535msgid "Traffic OK - %s. In = %0.1f %s, %s. Out = %0.1f %s\n" 1573msgid "Traffic %s - %s\n"
1536msgstr "" 1574msgstr ""
1537 1575
1538#: plugins/check_mrtgtraf.c:193 1576#: plugins/check_mrtgtraf.c:330
1539#, c-format
1540msgid "UNKNOWN %s\n"
1541msgstr ""
1542
1543#: plugins/check_mrtgtraf.c:332
1544msgid "" 1577msgid ""
1545" -F, --filename=STRING\n" 1578" -F, --filename=STRING\n"
1546" File to read log from\n" 1579" File to read log from\n"
@@ -1554,7 +1587,7 @@ msgid ""
1554" Critical threshold pair \"<incoming>,<outgoing>\"\n" 1587" Critical threshold pair \"<incoming>,<outgoing>\"\n"
1555msgstr "" 1588msgstr ""
1556 1589
1557#: plugins/check_mrtgtraf.c:344 1590#: plugins/check_mrtgtraf.c:342
1558msgid "" 1591msgid ""
1559"\n" 1592"\n"
1560"This plugin will check the incoming/outgoing transfer rates of a router,\n" 1593"This plugin will check the incoming/outgoing transfer rates of a router,\n"
@@ -1566,7 +1599,7 @@ msgid ""
1566"\n" 1599"\n"
1567msgstr "" 1600msgstr ""
1568 1601
1569#: plugins/check_mrtgtraf.c:352 1602#: plugins/check_mrtgtraf.c:350
1570msgid "" 1603msgid ""
1571"Notes:\n" 1604"Notes:\n"
1572"- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from\n" 1605"- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from\n"
@@ -1578,7 +1611,7 @@ msgid ""
1578" for future enhancements of this plugin.\n" 1611" for future enhancements of this plugin.\n"
1579msgstr "" 1612msgstr ""
1580 1613
1581#: plugins/check_mrtgtraf.c:370 1614#: plugins/check_mrtgtraf.c:368
1582#, c-format 1615#, c-format
1583msgid "" 1616msgid ""
1584"Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c " 1617"Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c "
@@ -1616,53 +1649,53 @@ msgstr ""
1616msgid "Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n" 1649msgid "Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n"
1617msgstr "" 1650msgstr ""
1618 1651
1619#: plugins/check_nagios.c:78 1652#: plugins/check_nagios.c:81
1620msgid "Error: Cannot open status log for reading!\n" 1653msgid "Error: Cannot open status log for reading!\n"
1621msgstr "" 1654msgstr ""
1622 1655
1623#: plugins/check_nagios.c:116 1656#: plugins/check_nagios.c:138
1624#, c-format 1657#, c-format
1625msgid "Found process: %s\n" 1658msgid "Found process: %s %s\n"
1626msgstr "" 1659msgstr ""
1627 1660
1628#: plugins/check_nagios.c:136 1661#: plugins/check_nagios.c:159
1629msgid "Could not locate a running Nagios process!\n" 1662msgid "Could not locate a running Nagios process!\n"
1630msgstr "" 1663msgstr ""
1631 1664
1632#: plugins/check_nagios.c:147 1665#: plugins/check_nagios.c:170
1633#, c-format 1666#, c-format
1634msgid "Nagios %s: located %d process%s, status log updated %d second%s ago\n" 1667msgid "Nagios %s: located %d process%s, status log updated %d second%s ago\n"
1635msgstr "" 1668msgstr ""
1636 1669
1637#: plugins/check_nagios.c:186 plugins/check_nagios.c:220 1670#: plugins/check_nagios.c:209 plugins/check_nagios.c:243
1638#, c-format 1671#, c-format
1639msgid "" 1672msgid ""
1640"Expiration time must be an integer (seconds)\n" 1673"Expiration time must be an integer (seconds)\n"
1641"Type '%s -h' for additional help\n" 1674"Type '%s -h' for additional help\n"
1642msgstr "" 1675msgstr ""
1643 1676
1644#: plugins/check_nagios.c:200 1677#: plugins/check_nagios.c:223
1645#, c-format 1678#, c-format
1646msgid "" 1679msgid ""
1647"%s: Unknown argument: %c\n" 1680"%s: Unknown argument: %c\n"
1648"\n" 1681"\n"
1649msgstr "" 1682msgstr ""
1650 1683
1651#: plugins/check_nagios.c:232 1684#: plugins/check_nagios.c:255
1652#, c-format 1685#, c-format
1653msgid "" 1686msgid ""
1654"You must provide the status_log\n" 1687"You must provide the status_log\n"
1655"Type '%s -h' for additional help\n" 1688"Type '%s -h' for additional help\n"
1656msgstr "" 1689msgstr ""
1657 1690
1658#: plugins/check_nagios.c:236 1691#: plugins/check_nagios.c:259
1659#, c-format 1692#, c-format
1660msgid "" 1693msgid ""
1661"You must provide a process string\n" 1694"You must provide a process string\n"
1662"Type '%s -h' for additional help\n" 1695"Type '%s -h' for additional help\n"
1663msgstr "" 1696msgstr ""
1664 1697
1665#: plugins/check_nagios.c:254 1698#: plugins/check_nagios.c:277
1666msgid "" 1699msgid ""
1667"This plugin attempts to check the status of the Nagios process on the local\n" 1700"This plugin attempts to check the status of the Nagios process on the local\n"
1668"machine. The plugin will check to make sure the Nagios status log is no " 1701"machine. The plugin will check to make sure the Nagios status log is no "
@@ -1674,7 +1707,7 @@ msgid ""
1674"by the <process_string> argument.\n" 1707"by the <process_string> argument.\n"
1675msgstr "" 1708msgstr ""
1676 1709
1677#: plugins/check_nagios.c:265 1710#: plugins/check_nagios.c:288
1678msgid "" 1711msgid ""
1679"-F, --filename=FILE\n" 1712"-F, --filename=FILE\n"
1680" Name of the log file to check\n" 1713" Name of the log file to check\n"
@@ -1684,90 +1717,125 @@ msgid ""
1684" Command to search for in process table\n" 1717" Command to search for in process table\n"
1685msgstr "" 1718msgstr ""
1686 1719
1687#: plugins/check_nagios.c:273 1720#: plugins/check_nagios.c:296
1688msgid "" 1721msgid ""
1689"Example:\n" 1722"Example:\n"
1690" ./check_nagios -e 5 \\ -F /usr/local/nagios/var/status.log \\ -C /usr/" 1723" ./check_nagios -e 5 \\ -F /usr/local/nagios/var/status.log \\ -C /usr/"
1691"local/nagios/bin/nagios\n" 1724"local/nagios/bin/nagios\n"
1692msgstr "" 1725msgstr ""
1693 1726
1694#: plugins/check_nagios.c:286 1727#: plugins/check_nagios.c:309
1695#, c-format 1728#, c-format
1696msgid "" 1729msgid ""
1697"Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n" 1730"Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n"
1698msgstr "" 1731msgstr ""
1699 1732
1700#: plugins/check_nt.c:118 1733#: plugins/check_nt.c:127
1701#, c-format 1734#, c-format
1702msgid "Wrong client version - running: %s, required: %s" 1735msgid "Wrong client version - running: %s, required: %s"
1703msgstr "" 1736msgstr ""
1704 1737
1705#: plugins/check_nt.c:129 plugins/check_nt.c:182 1738#: plugins/check_nt.c:138 plugins/check_nt.c:198
1706msgid "missing -l parameters" 1739msgid "missing -l parameters"
1707msgstr "" 1740msgstr ""
1708 1741
1709#: plugins/check_nt.c:131 1742#: plugins/check_nt.c:140
1710msgid "wrong -l parameter." 1743msgid "wrong -l parameter."
1711msgstr "" 1744msgstr ""
1712 1745
1713#: plugins/check_nt.c:135 1746#: plugins/check_nt.c:144
1714msgid "CPU Load" 1747msgid "CPU Load"
1715msgstr "" 1748msgstr ""
1716 1749
1717#: plugins/check_nt.c:156 1750#: plugins/check_nt.c:145
1751msgid " "
1752msgstr ""
1753
1754#: plugins/check_nt.c:167
1718#, c-format 1755#, c-format
1719msgid " %lu%% (%lu min average)" 1756msgid " %lu%% (%lu min average)"
1720msgstr "" 1757msgstr ""
1721 1758
1722#: plugins/check_nt.c:163 1759#: plugins/check_nt.c:169
1760#, c-format
1761msgid " '%lu min avg Load'=%lu%%;%lu;%lu;0;100"
1762msgstr ""
1763
1764#: plugins/check_nt.c:179
1723msgid "not enough values for -l parameters" 1765msgid "not enough values for -l parameters"
1724msgstr "" 1766msgstr ""
1725 1767
1726#: plugins/check_nt.c:175 1768#: plugins/check_nt.c:191
1727#, c-format 1769#, c-format
1728msgid "System Uptime : %u day(s) %u hour(s) %u minute(s)" 1770msgid "System Uptime : %u day(s) %u hour(s) %u minute(s)"
1729msgstr "" 1771msgstr ""
1730 1772
1731#: plugins/check_nt.c:184 1773#: plugins/check_nt.c:200
1732msgid "wrong -l argument" 1774msgid "wrong -l argument"
1733msgstr "" 1775msgstr ""
1734 1776
1735#: plugins/check_nt.c:193 1777#: plugins/check_nt.c:211
1736#, c-format 1778#, c-format
1737msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)" 1779msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)"
1738msgstr "" 1780msgstr ""
1739 1781
1740#: plugins/check_nt.c:208 1782#: plugins/check_nt.c:214
1783#, c-format
1784msgid "'%s:\\ Used Space'=%.2fGb;%.2f;%.2f;0.00;%.2f"
1785msgstr ""
1786
1787#: plugins/check_nt.c:228
1741msgid "Free disk space : Invalid drive " 1788msgid "Free disk space : Invalid drive "
1742msgstr "" 1789msgstr ""
1743 1790
1744#: plugins/check_nt.c:218 1791#: plugins/check_nt.c:238
1745msgid "No service/process specified" 1792msgid "No service/process specified"
1746msgstr "" 1793msgstr ""
1747 1794
1748#: plugins/check_nt.c:222 1795#: plugins/check_nt.c:242
1749msgid "ShowAll" 1796msgid "ShowAll"
1750msgstr "" 1797msgstr ""
1751 1798
1752#: plugins/check_nt.c:222 1799#: plugins/check_nt.c:242
1753msgid "ShowFail" 1800msgid "ShowFail"
1754msgstr "" 1801msgstr ""
1755 1802
1756#: plugins/check_nt.c:237 1803#: plugins/check_nt.c:262
1757#, c-format 1804#, c-format
1758msgid "" 1805msgid ""
1759"Memory usage: total:%.2f Mb - used: %.2f Mb (%.0f%%) - free: %.2f Mb (%.0f%%)" 1806"Memory usage: total:%.2f Mb - used: %.2f Mb (%.0f%%) - free: %.2f Mb (%.0f%%)"
1760msgstr "" 1807msgstr ""
1761 1808
1762#: plugins/check_nt.c:253 plugins/check_nt.c:289 1809#: plugins/check_nt.c:265
1810#, c-format
1811msgid "'Memory usage'=%.2fMb;%.2f;%.2f;0.00;%.2f"
1812msgstr ""
1813
1814#: plugins/check_nt.c:301 plugins/check_nt.c:383
1763msgid "No counter specified" 1815msgid "No counter specified"
1764msgstr "" 1816msgstr ""
1765 1817
1766#: plugins/check_nt.c:319 1818#: plugins/check_nt.c:319
1819msgid "%"
1820msgstr ""
1821
1822#: plugins/check_nt.c:334
1823msgid "Minimum value contains non-numbers"
1824msgstr ""
1825
1826#: plugins/check_nt.c:338
1827msgid "Maximum value contains non-numbers"
1828msgstr ""
1829
1830#: plugins/check_nt.c:345
1831msgid "No unit counter specified"
1832msgstr ""
1833
1834#: plugins/check_nt.c:413
1767msgid "Please specify a variable to check" 1835msgid "Please specify a variable to check"
1768msgstr "" 1836msgstr ""
1769 1837
1770#: plugins/check_nt.c:404 plugins/check_nwstat.c:775 1838#: plugins/check_nt.c:500 plugins/check_nwstat.c:781
1771#: plugins/check_overcr.c:352 1839#: plugins/check_overcr.c:352
1772#, c-format 1840#, c-format
1773msgid "" 1841msgid ""
@@ -1775,11 +1843,11 @@ msgid ""
1775"Type '%s -h' for additional help\n" 1843"Type '%s -h' for additional help\n"
1776msgstr "" 1844msgstr ""
1777 1845
1778#: plugins/check_nt.c:457 1846#: plugins/check_nt.c:553
1779msgid "None" 1847msgid "None"
1780msgstr "" 1848msgstr ""
1781 1849
1782#: plugins/check_nt.c:516 1850#: plugins/check_nt.c:612
1783msgid "" 1851msgid ""
1784"Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n" 1852"Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n"
1785"\n" 1853"\n"
@@ -1788,7 +1856,7 @@ msgid ""
1788"\n" 1856"\n"
1789msgstr "" 1857msgstr ""
1790 1858
1791#: plugins/check_nt.c:521 1859#: plugins/check_nt.c:617
1792#, c-format 1860#, c-format
1793msgid "" 1861msgid ""
1794"\n" 1862"\n"
@@ -1811,19 +1879,19 @@ msgid ""
1811" Print version information\n" 1879" Print version information\n"
1812msgstr "" 1880msgstr ""
1813 1881
1814#: plugins/check_nt.c:539 1882#: plugins/check_nt.c:635
1815msgid "" 1883msgid ""
1816"-v, --variable=STRING\n" 1884"-v, --variable=STRING\n"
1817" Variable to check. Valid variables are:\n" 1885" Variable to check. Valid variables are:\n"
1818msgstr "" 1886msgstr ""
1819 1887
1820#: plugins/check_nt.c:542 1888#: plugins/check_nt.c:638
1821msgid "" 1889msgid ""
1822" CLIENTVERSION = Get the NSClient version\n" 1890" CLIENTVERSION = Get the NSClient version\n"
1823" If -l <version> is specified, will return warning if versions differ.\n" 1891" If -l <version> is specified, will return warning if versions differ.\n"
1824msgstr "" 1892msgstr ""
1825 1893
1826#: plugins/check_nt.c:545 1894#: plugins/check_nt.c:641
1827msgid "" 1895msgid ""
1828" CPULOAD = Average CPU load on last x minutes.\n" 1896" CPULOAD = Average CPU load on last x minutes.\n"
1829" Request a -l parameter with the following syntax:\n" 1897" Request a -l parameter with the following syntax:\n"
@@ -1834,26 +1902,26 @@ msgid ""
1834" ie: -l 60,90,95,120,90,95\n" 1902" ie: -l 60,90,95,120,90,95\n"
1835msgstr "" 1903msgstr ""
1836 1904
1837#: plugins/check_nt.c:552 1905#: plugins/check_nt.c:648
1838msgid "" 1906msgid ""
1839" UPTIME = Get the uptime of the machine.\n" 1907" UPTIME = Get the uptime of the machine.\n"
1840" No specific parameters. No warning or critical threshold\n" 1908" No specific parameters. No warning or critical threshold\n"
1841msgstr "" 1909msgstr ""
1842 1910
1843#: plugins/check_nt.c:555 1911#: plugins/check_nt.c:651
1844msgid "" 1912msgid ""
1845" USEDDISKSPACE = Size and percentage of disk use.\n" 1913" USEDDISKSPACE = Size and percentage of disk use.\n"
1846" Request a -l parameter containing the drive letter only.\n" 1914" Request a -l parameter containing the drive letter only.\n"
1847" Warning and critical thresholds can be specified with -w and -c.\n" 1915" Warning and critical thresholds can be specified with -w and -c.\n"
1848msgstr "" 1916msgstr ""
1849 1917
1850#: plugins/check_nt.c:559 1918#: plugins/check_nt.c:655
1851msgid "" 1919msgid ""
1852" MEMUSE = Memory use.\n" 1920" MEMUSE = Memory use.\n"
1853" Warning and critical thresholds can be specified with -w and -c.\n" 1921" Warning and critical thresholds can be specified with -w and -c.\n"
1854msgstr "" 1922msgstr ""
1855 1923
1856#: plugins/check_nt.c:562 1924#: plugins/check_nt.c:658
1857msgid "" 1925msgid ""
1858" SERVICESTATE = Check the state of one or several services.\n" 1926" SERVICESTATE = Check the state of one or several services.\n"
1859" Request a -l parameters with the following syntax:\n" 1927" Request a -l parameters with the following syntax:\n"
@@ -1862,13 +1930,13 @@ msgid ""
1862"\t\t in the returned string.\n" 1930"\t\t in the returned string.\n"
1863msgstr "" 1931msgstr ""
1864 1932
1865#: plugins/check_nt.c:568 1933#: plugins/check_nt.c:664
1866msgid "" 1934msgid ""
1867" PROCSTATE = Check if one or several process are running.\n" 1935" PROCSTATE = Check if one or several process are running.\n"
1868" Same syntax as SERVICESTATE.\n" 1936" Same syntax as SERVICESTATE.\n"
1869msgstr "" 1937msgstr ""
1870 1938
1871#: plugins/check_nt.c:571 1939#: plugins/check_nt.c:667
1872#, c-format 1940#, c-format
1873msgid "" 1941msgid ""
1874" COUNTER = Check any performance counter of Windows NT/2000.\n" 1942" COUNTER = Check any performance counter of Windows NT/2000.\n"
@@ -1881,7 +1949,7 @@ msgid ""
1881" \"%%.f %%%% paging file used.\"\n" 1949" \"%%.f %%%% paging file used.\"\n"
1882msgstr "" 1950msgstr ""
1883 1951
1884#: plugins/check_nt.c:580 1952#: plugins/check_nt.c:676
1885msgid "" 1953msgid ""
1886"Notes:\n" 1954"Notes:\n"
1887" - The NSClient service should be running on the server to get any " 1955" - The NSClient service should be running on the server to get any "
@@ -1890,191 +1958,191 @@ msgid ""
1890" - Critical thresholds should be lower than warning thresholds\n" 1958" - Critical thresholds should be lower than warning thresholds\n"
1891msgstr "" 1959msgstr ""
1892 1960
1893#: plugins/check_nt.c:591 1961#: plugins/check_nt.c:687
1894#, c-format 1962#, c-format
1895msgid "" 1963msgid ""
1896"Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n" 1964"Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n"
1897" [-l params] [-d SHOWALL] [-t timeout]\n" 1965" [-l params] [-d SHOWALL] [-t timeout]\n"
1898msgstr "" 1966msgstr ""
1899 1967
1900#: plugins/check_nwstat.c:143 1968#: plugins/check_nwstat.c:147
1901#, c-format 1969#, c-format
1902msgid "NetWare %s: " 1970msgid "NetWare %s: "
1903msgstr "" 1971msgstr ""
1904 1972
1905#: plugins/check_nwstat.c:174 1973#: plugins/check_nwstat.c:178
1906#, c-format 1974#, c-format
1907msgid "Up %s," 1975msgid "Up %s,"
1908msgstr "" 1976msgstr ""
1909 1977
1910#: plugins/check_nwstat.c:182 1978#: plugins/check_nwstat.c:186
1911#, c-format 1979#, c-format
1912msgid "Load %s - %s %s-min load average = %lu%%" 1980msgid "Load %s - %s %s-min load average = %lu%%"
1913msgstr "" 1981msgstr ""
1914 1982
1915#: plugins/check_nwstat.c:203 1983#: plugins/check_nwstat.c:207
1916#, c-format 1984#, c-format
1917msgid "Conns %s - %lu current connections" 1985msgid "Conns %s - %lu current connections"
1918msgstr "" 1986msgstr ""
1919 1987
1920#: plugins/check_nwstat.c:222 1988#: plugins/check_nwstat.c:226
1921#, c-format 1989#, c-format
1922msgid "%s: Long term cache hits = %lu%%" 1990msgid "%s: Long term cache hits = %lu%%"
1923msgstr "" 1991msgstr ""
1924 1992
1925#: plugins/check_nwstat.c:241 1993#: plugins/check_nwstat.c:245
1926#, c-format 1994#, c-format
1927msgid "%s: Total cache buffers = %lu" 1995msgid "%s: Total cache buffers = %lu"
1928msgstr "" 1996msgstr ""
1929 1997
1930#: plugins/check_nwstat.c:260 1998#: plugins/check_nwstat.c:264
1931#, c-format 1999#, c-format
1932msgid "%s: Dirty cache buffers = %lu" 2000msgid "%s: Dirty cache buffers = %lu"
1933msgstr "" 2001msgstr ""
1934 2002
1935#: plugins/check_nwstat.c:279 2003#: plugins/check_nwstat.c:283
1936#, c-format 2004#, c-format
1937msgid "%s: LRU sitting time = %lu minutes" 2005msgid "%s: LRU sitting time = %lu minutes"
1938msgstr "" 2006msgstr ""
1939 2007
1940#: plugins/check_nwstat.c:293 plugins/check_nwstat.c:318 2008#: plugins/check_nwstat.c:297 plugins/check_nwstat.c:322
1941#: plugins/check_nwstat.c:438 plugins/check_nwstat.c:459 2009#: plugins/check_nwstat.c:442 plugins/check_nwstat.c:463
1942#: plugins/check_nwstat.c:491 plugins/check_nwstat.c:512 2010#: plugins/check_nwstat.c:495 plugins/check_nwstat.c:516
1943#, c-format 2011#, c-format
1944msgid "Error: Volume '%s' does not exist!" 2012msgid "Error: Volume '%s' does not exist!"
1945msgstr "" 2013msgstr ""
1946 2014
1947#: plugins/check_nwstat.c:302 2015#: plugins/check_nwstat.c:306
1948#, c-format 2016#, c-format
1949msgid "%s%lu KB free on volume %s" 2017msgid "%s%lu KB free on volume %s"
1950msgstr "" 2018msgstr ""
1951 2019
1952#: plugins/check_nwstat.c:303 plugins/check_nwstat.c:446 2020#: plugins/check_nwstat.c:307 plugins/check_nwstat.c:450
1953#: plugins/check_nwstat.c:499 2021#: plugins/check_nwstat.c:503
1954msgid "Only " 2022msgid "Only "
1955msgstr "" 2023msgstr ""
1956 2024
1957#: plugins/check_nwstat.c:338 2025#: plugins/check_nwstat.c:342
1958#, c-format 2026#, c-format
1959msgid "%lu MB (%lu%%) free on volume %s" 2027msgid "%lu MB (%lu%%) free on volume %s"
1960msgstr "" 2028msgstr ""
1961 2029
1962#: plugins/check_nwstat.c:357 2030#: plugins/check_nwstat.c:361
1963#, c-format 2031#, c-format
1964msgid "Directory Services Database is %s (DS version %s)" 2032msgid "Directory Services Database is %s (DS version %s)"
1965msgstr "" 2033msgstr ""
1966 2034
1967#: plugins/check_nwstat.c:371 2035#: plugins/check_nwstat.c:375
1968#, c-format 2036#, c-format
1969msgid "Logins are %s" 2037msgid "Logins are %s"
1970msgstr "" 2038msgstr ""
1971 2039
1972#: plugins/check_nwstat.c:371 2040#: plugins/check_nwstat.c:375
1973msgid "enabled" 2041msgid "enabled"
1974msgstr "" 2042msgstr ""
1975 2043
1976#: plugins/check_nwstat.c:371 2044#: plugins/check_nwstat.c:375
1977msgid "disabled" 2045msgid "disabled"
1978msgstr "" 2046msgstr ""
1979 2047
1980#: plugins/check_nwstat.c:404 2048#: plugins/check_nwstat.c:408
1981#, c-format 2049#, c-format
1982msgid "%lu of %lu (%lu%%) packet receive buffers used" 2050msgid "%lu of %lu (%lu%%) packet receive buffers used"
1983msgstr "" 2051msgstr ""
1984 2052
1985#: plugins/check_nwstat.c:425 2053#: plugins/check_nwstat.c:429
1986#, c-format 2054#, c-format
1987msgid "%lu entries in SAP table" 2055msgid "%lu entries in SAP table"
1988msgstr "" 2056msgstr ""
1989 2057
1990#: plugins/check_nwstat.c:427 2058#: plugins/check_nwstat.c:431
1991#, c-format 2059#, c-format
1992msgid "%lu entries in SAP table for SAP type %d" 2060msgid "%lu entries in SAP table for SAP type %d"
1993msgstr "" 2061msgstr ""
1994 2062
1995#: plugins/check_nwstat.c:446 2063#: plugins/check_nwstat.c:450
1996#, c-format 2064#, c-format
1997msgid "%s%lu KB purgeable on volume %s" 2065msgid "%s%lu KB purgeable on volume %s"
1998msgstr "" 2066msgstr ""
1999 2067
2000#: plugins/check_nwstat.c:479 2068#: plugins/check_nwstat.c:483
2001#, c-format 2069#, c-format
2002msgid "%lu MB (%lu%%) purgeable on volume %s" 2070msgid "%lu MB (%lu%%) purgeable on volume %s"
2003msgstr "" 2071msgstr ""
2004 2072
2005#: plugins/check_nwstat.c:499 2073#: plugins/check_nwstat.c:503
2006#, c-format 2074#, c-format
2007msgid "%s%lu KB not yet purgeable on volume %s" 2075msgid "%s%lu KB not yet purgeable on volume %s"
2008msgstr "" 2076msgstr ""
2009 2077
2010#: plugins/check_nwstat.c:532 2078#: plugins/check_nwstat.c:536
2011#, c-format 2079#, c-format
2012msgid "%lu MB (%lu%%) not yet purgeable on volume %s" 2080msgid "%lu MB (%lu%%) not yet purgeable on volume %s"
2013msgstr "" 2081msgstr ""
2014 2082
2015#: plugins/check_nwstat.c:550 2083#: plugins/check_nwstat.c:554
2016#, c-format 2084#, c-format
2017msgid "%lu open files" 2085msgid "%lu open files"
2018msgstr "" 2086msgstr ""
2019 2087
2020#: plugins/check_nwstat.c:567 2088#: plugins/check_nwstat.c:571
2021#, c-format 2089#, c-format
2022msgid "%lu abended threads" 2090msgid "%lu abended threads"
2023msgstr "" 2091msgstr ""
2024 2092
2025#: plugins/check_nwstat.c:592 2093#: plugins/check_nwstat.c:596
2026#, c-format 2094#, c-format
2027msgid "%lu current service processes (%lu max)" 2095msgid "%lu current service processes (%lu max)"
2028msgstr "" 2096msgstr ""
2029 2097
2030#: plugins/check_nwstat.c:608 2098#: plugins/check_nwstat.c:612
2031msgid "Critical: Time not in sync with network!" 2099msgid "Critical: Time not in sync with network!"
2032msgstr "" 2100msgstr ""
2033 2101
2034#: plugins/check_nwstat.c:611 2102#: plugins/check_nwstat.c:615
2035msgid "OK! Time in sync with network!" 2103msgid "OK! Time in sync with network!"
2036msgstr "" 2104msgstr ""
2037 2105
2038#: plugins/check_nwstat.c:627 2106#: plugins/check_nwstat.c:631
2039#, c-format 2107#, c-format
2040msgid "LRU sitting time = %lu seconds" 2108msgid "LRU sitting time = %lu seconds"
2041msgstr "" 2109msgstr ""
2042 2110
2043#: plugins/check_nwstat.c:643 2111#: plugins/check_nwstat.c:647
2044#, c-format 2112#, c-format
2045msgid "dirty cache buffers = %lu%% of the total" 2113msgid "dirty cache buffers = %lu%% of the total"
2046msgstr "" 2114msgstr ""
2047 2115
2048#: plugins/check_nwstat.c:658 2116#: plugins/check_nwstat.c:662
2049#, c-format 2117#, c-format
2050msgid "total cache buffers = %lu%% of the original" 2118msgid "total cache buffers = %lu%% of the original"
2051msgstr "" 2119msgstr ""
2052 2120
2053#: plugins/check_nwstat.c:668 2121#: plugins/check_nwstat.c:672
2054#, c-format 2122#, c-format
2055msgid "NDS Version %s" 2123msgid "NDS Version %s"
2056msgstr "" 2124msgstr ""
2057 2125
2058#: plugins/check_nwstat.c:677 2126#: plugins/check_nwstat.c:681
2059#, c-format 2127#, c-format
2060msgid "Up %s" 2128msgid "Up %s"
2061msgstr "" 2129msgstr ""
2062 2130
2063#: plugins/check_nwstat.c:687 2131#: plugins/check_nwstat.c:691
2064#, c-format 2132#, c-format
2065msgid "Module %s version %s is loaded" 2133msgid "Module %s version %s is loaded"
2066msgstr "" 2134msgstr ""
2067 2135
2068#: plugins/check_nwstat.c:690 2136#: plugins/check_nwstat.c:694
2069#, c-format 2137#, c-format
2070msgid "Module %s is not loaded" 2138msgid "Module %s is not loaded"
2071msgstr "" 2139msgstr ""
2072 2140
2073#: plugins/check_nwstat.c:695 plugins/check_overcr.c:270 2141#: plugins/check_nwstat.c:699 plugins/check_overcr.c:270
2074msgid "Nothing to check!\n" 2142msgid "Nothing to check!\n"
2075msgstr "" 2143msgstr ""
2076 2144
2077#: plugins/check_nwstat.c:906 2145#: plugins/check_nwstat.c:912
2078#, c-format 2146#, c-format
2079msgid "" 2147msgid ""
2080"Usage: %s This plugin attempts to contact the MRTGEXT NLM running\n" 2148"Usage: %s This plugin attempts to contact the MRTGEXT NLM running\n"
@@ -2082,7 +2150,7 @@ msgid ""
2082"\n" 2150"\n"
2083msgstr "" 2151msgstr ""
2084 2152
2085#: plugins/check_nwstat.c:917 2153#: plugins/check_nwstat.c:923
2086msgid "" 2154msgid ""
2087" -v, --variable=STRING\n" 2155" -v, --variable=STRING\n"
2088" Variable to check. Valid variables include:\n" 2156" Variable to check. Valid variables include:\n"
@@ -2094,7 +2162,7 @@ msgid ""
2094" UPTIME = server uptime\n" 2162" UPTIME = server uptime\n"
2095msgstr "" 2163msgstr ""
2096 2164
2097#: plugins/check_nwstat.c:927 2165#: plugins/check_nwstat.c:933
2098msgid "" 2166msgid ""
2099" LTCH = percent long term cache hits\n" 2167" LTCH = percent long term cache hits\n"
2100" CBUFF = current number of cache buffers\n" 2168" CBUFF = current number of cache buffers\n"
@@ -2103,7 +2171,7 @@ msgid ""
2103" TCB = dirty cache buffers as a percentage of the original\n" 2171" TCB = dirty cache buffers as a percentage of the original\n"
2104msgstr "" 2172msgstr ""
2105 2173
2106#: plugins/check_nwstat.c:934 2174#: plugins/check_nwstat.c:940
2107msgid "" 2175msgid ""
2108" OFILES = number of open files\n" 2176" OFILES = number of open files\n"
2109" VPF<vol> = percent free space on volume <vol>\n" 2177" VPF<vol> = percent free space on volume <vol>\n"
@@ -2114,7 +2182,7 @@ msgid ""
2114" VKNP<vol> = KB of not yet purgeable space on volume <vol>\n" 2182" VKNP<vol> = KB of not yet purgeable space on volume <vol>\n"
2115msgstr "" 2183msgstr ""
2116 2184
2117#: plugins/check_nwstat.c:943 2185#: plugins/check_nwstat.c:949
2118msgid "" 2186msgid ""
2119" LRUM = LRU sitting time in minutes\n" 2187" LRUM = LRU sitting time in minutes\n"
2120" LRUS = LRU sitting time in seconds\n" 2188" LRUS = LRU sitting time in seconds\n"
@@ -2126,7 +2194,7 @@ msgid ""
2126" SAPENTRIES<n> = number of entries in the SAP table for SAP type <n>\n" 2194" SAPENTRIES<n> = number of entries in the SAP table for SAP type <n>\n"
2127msgstr "" 2195msgstr ""
2128 2196
2129#: plugins/check_nwstat.c:953 2197#: plugins/check_nwstat.c:959
2130msgid "" 2198msgid ""
2131" TSYNC = timesync status \n" 2199" TSYNC = timesync status \n"
2132" LOGINS = check to see if logins are enabled\n" 2200" LOGINS = check to see if logins are enabled\n"
@@ -2135,7 +2203,7 @@ msgid ""
2135" (e.g. \"NLM:TSANDS.NLM\")\n" 2203" (e.g. \"NLM:TSANDS.NLM\")\n"
2136msgstr "" 2204msgstr ""
2137 2205
2138#: plugins/check_nwstat.c:960 2206#: plugins/check_nwstat.c:966
2139msgid "" 2207msgid ""
2140" -w, --warning=INTEGER\n" 2208" -w, --warning=INTEGER\n"
2141" Threshold which will result in a warning status\n" 2209" Threshold which will result in a warning status\n"
@@ -2145,7 +2213,7 @@ msgid ""
2145" Include server version string in results\n" 2213" Include server version string in results\n"
2146msgstr "" 2214msgstr ""
2147 2215
2148#: plugins/check_nwstat.c:970 2216#: plugins/check_nwstat.c:976
2149msgid "" 2217msgid ""
2150"\n" 2218"\n"
2151"Notes:\n" 2219"Notes:\n"
@@ -2157,7 +2225,7 @@ msgid ""
2157" TCB, LRUS and LRUM.\n" 2225" TCB, LRUS and LRUM.\n"
2158msgstr "" 2226msgstr ""
2159 2227
2160#: plugins/check_nwstat.c:987 2228#: plugins/check_nwstat.c:993
2161#, c-format 2229#, c-format
2162msgid "" 2230msgid ""
2163"Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n" 2231"Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n"
@@ -2274,182 +2342,172 @@ msgstr ""
2274msgid "PGSQL: CRITICAL - no connection to '%s' (%s).\n" 2342msgid "PGSQL: CRITICAL - no connection to '%s' (%s).\n"
2275msgstr "" 2343msgstr ""
2276 2344
2277#: plugins/check_pgsql.c:161 2345#: plugins/check_pgsql.c:169
2278#, c-format 2346#, c-format
2279msgid "PGSQL: CRITICAL - database %s (%d sec.)\n" 2347msgid "PGSQL: %s - database %s (%d sec.)|%s\n"
2280msgstr "" 2348msgstr ""
2281 2349
2282#: plugins/check_pgsql.c:167 2350#: plugins/check_pgsql.c:219 plugins/check_snmp.c:449 plugins/negate.c:183
2283#, c-format
2284msgid "PGSQL: WARNING - database %s (%d sec.)\n"
2285msgstr ""
2286
2287#: plugins/check_pgsql.c:172
2288#, c-format
2289msgid "PGSQL: ok - database %s (%d sec.)\n"
2290msgstr ""
2291
2292#: plugins/check_pgsql.c:220 plugins/check_snmp.c:449 plugins/negate.c:183
2293msgid "Timeout Interval must be an integer" 2351msgid "Timeout Interval must be an integer"
2294msgstr "" 2352msgstr ""
2295 2353
2296#: plugins/check_pgsql.c:226 plugins/check_pgsql.c:232 2354#: plugins/check_pgsql.c:225 plugins/check_pgsql.c:231
2297msgid "Invalid critical threshold" 2355msgid "Invalid critical threshold"
2298msgstr "" 2356msgstr ""
2299 2357
2300#: plugins/check_pgsql.c:238 2358#: plugins/check_pgsql.c:237
2301msgid "You gave an invalid host name" 2359msgid "You gave an invalid host name"
2302msgstr "" 2360msgstr ""
2303 2361
2304#: plugins/check_pgsql.c:244 2362#: plugins/check_pgsql.c:243
2305msgid "Port must be an integer" 2363msgid "Port must be an integer"
2306msgstr "" 2364msgstr ""
2307 2365
2308#: plugins/check_pgsql.c:250 2366#: plugins/check_pgsql.c:249
2309msgid "Database name is not valid" 2367msgid "Database name is not valid"
2310msgstr "" 2368msgstr ""
2311 2369
2312#: plugins/check_pgsql.c:256 2370#: plugins/check_pgsql.c:255
2313msgid "user name is not valid" 2371msgid "user name is not valid"
2314msgstr "" 2372msgstr ""
2315 2373
2316#: plugins/check_pgsql.c:390 2374#: plugins/check_pgsql.c:389
2317msgid "" 2375msgid ""
2318"Test whether a PostgreSQL DBMS is accepting connections.\n" 2376"Test whether a PostgreSQL DBMS is accepting connections.\n"
2319"\n" 2377"\n"
2320msgstr "" 2378msgstr ""
2321 2379
2322#: plugins/check_ping.c:80 2380#: plugins/check_ping.c:82
2323msgid "Could not parse arguments" 2381msgid "Could not parse arguments"
2324msgstr "" 2382msgstr ""
2325 2383
2326#: plugins/check_ping.c:123 2384#: plugins/check_ping.c:124
2327msgid "Error: Could not interpret output from ping command\n" 2385msgid "Error: Could not interpret output from ping command\n"
2328msgstr "" 2386msgstr ""
2329 2387
2330#: plugins/check_ping.c:139 2388#: plugins/check_ping.c:140
2331#, c-format 2389#, c-format
2332msgid "PING %s - %sPacket loss = %d%%" 2390msgid "PING %s - %sPacket loss = %d%%"
2333msgstr "" 2391msgstr ""
2334 2392
2335#: plugins/check_ping.c:142 2393#: plugins/check_ping.c:143
2336#, c-format 2394#, c-format
2337msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms" 2395msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms"
2338msgstr "" 2396msgstr ""
2339 2397
2340#: plugins/check_ping.c:233 2398#: plugins/check_ping.c:235
2341msgid "Could not realloc() addresses\n" 2399msgid "Could not realloc() addresses\n"
2342msgstr "" 2400msgstr ""
2343 2401
2344#: plugins/check_ping.c:248 plugins/check_ping.c:328 2402#: plugins/check_ping.c:250 plugins/check_ping.c:331
2345#, c-format 2403#, c-format
2346msgid "<max_packets> (%s) must be a non-negative number\n" 2404msgid "<max_packets> (%s) must be a non-negative number\n"
2347msgstr "" 2405msgstr ""
2348 2406
2349#: plugins/check_ping.c:271 2407#: plugins/check_ping.c:273
2350#, c-format 2408#, c-format
2351msgid "" 2409msgid ""
2352"Invalid host name/address: %s\n" 2410"Invalid host name/address: %s\n"
2353"\n" 2411"\n"
2354msgstr "" 2412msgstr ""
2355 2413
2356#: plugins/check_ping.c:282 2414#: plugins/check_ping.c:285
2357#, c-format 2415#, c-format
2358msgid "<wpl> (%s) must be an integer percentage\n" 2416msgid "<wpl> (%s) must be an integer percentage\n"
2359msgstr "" 2417msgstr ""
2360 2418
2361#: plugins/check_ping.c:293 2419#: plugins/check_ping.c:296
2362#, c-format 2420#, c-format
2363msgid "<cpl> (%s) must be an integer percentage\n" 2421msgid "<cpl> (%s) must be an integer percentage\n"
2364msgstr "" 2422msgstr ""
2365 2423
2366#: plugins/check_ping.c:304 2424#: plugins/check_ping.c:307
2367#, c-format 2425#, c-format
2368msgid "<wrta> (%s) must be a non-negative number\n" 2426msgid "<wrta> (%s) must be a non-negative number\n"
2369msgstr "" 2427msgstr ""
2370 2428
2371#: plugins/check_ping.c:315 2429#: plugins/check_ping.c:318
2372#, c-format 2430#, c-format
2373msgid "<crta> (%s) must be a non-negative number\n" 2431msgid "<crta> (%s) must be a non-negative number\n"
2374msgstr "" 2432msgstr ""
2375 2433
2376#: plugins/check_ping.c:346 2434#: plugins/check_ping.c:349
2377#, c-format 2435#, c-format
2378msgid "" 2436msgid ""
2379"%s: Warning threshold must be integer or percentage!\n" 2437"%s: Warning threshold must be integer or percentage!\n"
2380"\n" 2438"\n"
2381msgstr "" 2439msgstr ""
2382 2440
2383#: plugins/check_ping.c:357 2441#: plugins/check_ping.c:360
2384msgid "<wrta> was not set\n" 2442msgid "<wrta> was not set\n"
2385msgstr "" 2443msgstr ""
2386 2444
2387#: plugins/check_ping.c:361 2445#: plugins/check_ping.c:364
2388msgid "<crta> was not set\n" 2446msgid "<crta> was not set\n"
2389msgstr "" 2447msgstr ""
2390 2448
2391#: plugins/check_ping.c:365 2449#: plugins/check_ping.c:368
2392msgid "<wpl> was not set\n" 2450msgid "<wpl> was not set\n"
2393msgstr "" 2451msgstr ""
2394 2452
2395#: plugins/check_ping.c:369 2453#: plugins/check_ping.c:372
2396msgid "<cpl> was not set\n" 2454msgid "<cpl> was not set\n"
2397msgstr "" 2455msgstr ""
2398 2456
2399#: plugins/check_ping.c:373 2457#: plugins/check_ping.c:376
2400#, c-format 2458#, c-format
2401msgid "<wrta> (%f) cannot be larger than <crta> (%f)\n" 2459msgid "<wrta> (%f) cannot be larger than <crta> (%f)\n"
2402msgstr "" 2460msgstr ""
2403 2461
2404#: plugins/check_ping.c:377 2462#: plugins/check_ping.c:380
2405#, c-format 2463#, c-format
2406msgid "<wpl> (%d) cannot be larger than <cpl> (%d)\n" 2464msgid "<wpl> (%d) cannot be larger than <cpl> (%d)\n"
2407msgstr "" 2465msgstr ""
2408 2466
2409#: plugins/check_ping.c:390 2467#: plugins/check_ping.c:393
2410msgid "Invalid host name/address" 2468msgid "Invalid host name/address"
2411msgstr "" 2469msgstr ""
2412 2470
2413#: plugins/check_ping.c:408 2471#: plugins/check_ping.c:411
2414#, c-format 2472#, c-format
2415msgid "Cannot open pipe: %s" 2473msgid "Cannot open pipe: %s"
2416msgstr "" 2474msgstr ""
2417 2475
2418#: plugins/check_ping.c:412 2476#: plugins/check_ping.c:415
2419#, c-format 2477#, c-format
2420msgid "Cannot open stderr for %s\n" 2478msgid "Cannot open stderr for %s\n"
2421msgstr "" 2479msgstr ""
2422 2480
2423#: plugins/check_ping.c:468 2481#: plugins/check_ping.c:471
2424#, c-format 2482#, c-format
2425msgid "PING CRITICAL - Network unreachable (%s)" 2483msgid "PING CRITICAL - Network unreachable (%s)"
2426msgstr "" 2484msgstr ""
2427 2485
2428#: plugins/check_ping.c:470 2486#: plugins/check_ping.c:473
2429#, c-format 2487#, c-format
2430msgid "PING CRITICAL - Host Unreachable (%s)" 2488msgid "PING CRITICAL - Host Unreachable (%s)"
2431msgstr "" 2489msgstr ""
2432 2490
2433#: plugins/check_ping.c:472 2491#: plugins/check_ping.c:475
2434#, c-format 2492#, c-format
2435msgid "PING CRITICAL - Host not found (%s)" 2493msgid "PING CRITICAL - Host not found (%s)"
2436msgstr "" 2494msgstr ""
2437 2495
2438#: plugins/check_ping.c:479 2496#: plugins/check_ping.c:482
2439msgid "unable to realloc warn_text" 2497msgid "unable to realloc warn_text"
2440msgstr "" 2498msgstr ""
2441 2499
2442#: plugins/check_ping.c:505 plugins/check_procs.c:586 2500#: plugins/check_ping.c:508 plugins/check_procs.c:582
2443msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>" 2501msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"
2444msgstr "" 2502msgstr ""
2445 2503
2446#: plugins/check_ping.c:508 2504#: plugins/check_ping.c:511
2447msgid "" 2505msgid ""
2448"Use ping to check connection statistics for a remote host.\n" 2506"Use ping to check connection statistics for a remote host.\n"
2449"\n" 2507"\n"
2450msgstr "" 2508msgstr ""
2451 2509
2452#: plugins/check_ping.c:516 2510#: plugins/check_ping.c:519
2453#, c-format 2511#, c-format
2454msgid "" 2512msgid ""
2455"-H, --hostname=HOST\n" 2513"-H, --hostname=HOST\n"
@@ -2464,7 +2522,7 @@ msgid ""
2464" show HTML in the plugin output (obsoleted by urlize)\n" 2522" show HTML in the plugin output (obsoleted by urlize)\n"
2465msgstr "" 2523msgstr ""
2466 2524
2467#: plugins/check_ping.c:531 2525#: plugins/check_ping.c:534
2468#, c-format 2526#, c-format
2469msgid "" 2527msgid ""
2470"THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel\n" 2528"THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel\n"
@@ -2473,7 +2531,7 @@ msgid ""
2473"\n" 2531"\n"
2474msgstr "" 2532msgstr ""
2475 2533
2476#: plugins/check_ping.c:536 2534#: plugins/check_ping.c:539
2477msgid "" 2535msgid ""
2478"This plugin uses the ping command to probe the specified host for packet " 2536"This plugin uses the ping command to probe the specified host for packet "
2479"loss\n" 2537"loss\n"
@@ -2485,169 +2543,168 @@ msgid ""
2485"\n" 2543"\n"
2486msgstr "" 2544msgstr ""
2487 2545
2488#: plugins/check_procs.c:116 2546#: plugins/check_procs.c:120
2489msgid "Unable to parse command line\n" 2547msgid "Unable to parse command line\n"
2490msgstr "" 2548msgstr ""
2491 2549
2492#: plugins/check_procs.c:119 2550#: plugins/check_procs.c:123
2493#, c-format 2551#, c-format
2494msgid "CMD: %s\n" 2552msgid "CMD: %s\n"
2495msgstr "" 2553msgstr ""
2496 2554
2497#: plugins/check_procs.c:215 2555#: plugins/check_procs.c:229
2498#, c-format 2556#, c-format
2499msgid "Not parseable: %s" 2557msgid "Not parseable: %s"
2500msgstr "" 2558msgstr ""
2501 2559
2502#: plugins/check_procs.c:222 2560#: plugins/check_procs.c:236
2503#, c-format 2561#, c-format
2504msgid "STDERR: %s" 2562msgid "STDERR: %s"
2505msgstr "" 2563msgstr ""
2506 2564
2507#: plugins/check_procs.c:224 2565#: plugins/check_procs.c:238
2508msgid "System call sent warnings to stderr\n" 2566msgid "System call sent warnings to stderr\n"
2509msgstr "" 2567msgstr ""
2510 2568
2511#: plugins/check_procs.c:231 2569#: plugins/check_procs.c:245
2512msgid "System call returned nonzero status\n" 2570msgid "System call returned nonzero status\n"
2513msgstr "" 2571msgstr ""
2514 2572
2515#: plugins/check_procs.c:236 plugins/check_users.c:96 2573#: plugins/check_procs.c:250 plugins/check_users.c:99
2516msgid "Unable to read output\n" 2574msgid "Unable to read output\n"
2517msgstr "" 2575msgstr ""
2518 2576
2519#: plugins/check_procs.c:253 2577#: plugins/check_procs.c:267
2520#, c-format 2578#, c-format
2521msgid "%d warn out of " 2579msgid "%d warn out of "
2522msgstr "" 2580msgstr ""
2523 2581
2524#: plugins/check_procs.c:258 2582#: plugins/check_procs.c:272
2525#, c-format 2583#, c-format
2526msgid "%d crit, %d warn out of " 2584msgid "%d crit, %d warn out of "
2527msgstr "" 2585msgstr ""
2528 2586
2529#: plugins/check_procs.c:261 2587#: plugins/check_procs.c:275
2530#, c-format 2588#, c-format
2531msgid "%d process" 2589msgid "%d process"
2532msgid_plural "%d processes" 2590msgid_plural "%d processes"
2533msgstr[0] "" 2591msgstr[0] ""
2534msgstr[1] "" 2592msgstr[1] ""
2535 2593
2536#: plugins/check_procs.c:264 2594#: plugins/check_procs.c:278
2537#, c-format 2595#, c-format
2538msgid " with %s" 2596msgid " with %s"
2539msgstr "" 2597msgstr ""
2540 2598
2541#: plugins/check_procs.c:328 plugins/check_ssh.c:117 2599#: plugins/check_procs.c:342 plugins/check_ssh.c:117
2542msgid "" 2600msgid ""
2543"Timeout Interval must be an integer!\n" 2601"Timeout Interval must be an integer!\n"
2544"\n" 2602"\n"
2545msgstr "" 2603msgstr ""
2546 2604
2547#: plugins/check_procs.c:342 2605#: plugins/check_procs.c:356
2548msgid "" 2606msgid ""
2549"Critical Process Count must be an integer!\n" 2607"Critical Process Count must be an integer!\n"
2550"\n" 2608"\n"
2551msgstr "" 2609msgstr ""
2552 2610
2553#: plugins/check_procs.c:354 2611#: plugins/check_procs.c:368
2554#, c-format
2555msgid "" 2612msgid ""
2556"%s: Warning Process Count must be an integer!\n" 2613"Warning Process Count must be an integer!\n"
2557"\n" 2614"\n"
2558msgstr "" 2615msgstr ""
2559 2616
2560#: plugins/check_procs.c:362 2617#: plugins/check_procs.c:376
2561#, c-format 2618#, c-format
2562msgid "" 2619msgid ""
2563"%s: Parent Process ID must be an integer!\n" 2620"%s: Parent Process ID must be an integer!\n"
2564"\n" 2621"\n"
2565msgstr "" 2622msgstr ""
2566 2623
2567#: plugins/check_procs.c:371 plugins/check_procs.c:484 2624#: plugins/check_procs.c:382 plugins/check_procs.c:480
2568#, c-format 2625#, c-format
2569msgid "%s%sSTATE = %s" 2626msgid "%s%sSTATE = %s"
2570msgstr "" 2627msgstr ""
2571 2628
2572#: plugins/check_procs.c:380 2629#: plugins/check_procs.c:391
2573#, c-format 2630#, c-format
2574msgid "UID %d was not found\n" 2631msgid "UID %s was not found\n"
2575msgstr "" 2632msgstr ""
2576 2633
2577#: plugins/check_procs.c:389 2634#: plugins/check_procs.c:397
2578#, c-format 2635#, c-format
2579msgid "User name %s was not found\n" 2636msgid "User name %s was not found\n"
2580msgstr "" 2637msgstr ""
2581 2638
2582#: plugins/check_procs.c:397 2639#: plugins/check_procs.c:402
2583#, c-format 2640#, c-format
2584msgid "%s%sUID = %d (%s)" 2641msgid "%s%sUID = %d (%s)"
2585msgstr "" 2642msgstr ""
2586 2643
2587#: plugins/check_procs.c:406 2644#: plugins/check_procs.c:411
2588#, c-format 2645#, c-format
2589msgid "%s%scommand name '%s'" 2646msgid "%s%scommand name '%s'"
2590msgstr "" 2647msgstr ""
2591 2648
2592#: plugins/check_procs.c:415 2649#: plugins/check_procs.c:420
2593#, c-format 2650#, c-format
2594msgid "%s%sargs '%s'" 2651msgid "%s%sargs '%s'"
2595msgstr "" 2652msgstr ""
2596 2653
2597#: plugins/check_procs.c:420 2654#: plugins/check_procs.c:425
2598#, c-format 2655#, c-format
2599msgid "%s%sRSS >= %d" 2656msgid "%s%sRSS >= %d"
2600msgstr "" 2657msgstr ""
2601 2658
2602#: plugins/check_procs.c:424 2659#: plugins/check_procs.c:429
2603#, c-format 2660#, c-format
2604msgid "" 2661msgid ""
2605"%s: RSS must be an integer!\n" 2662"%s: RSS must be an integer!\n"
2606"\n" 2663"\n"
2607msgstr "" 2664msgstr ""
2608 2665
2609#: plugins/check_procs.c:430 2666#: plugins/check_procs.c:432
2610#, c-format 2667#, c-format
2611msgid "%s%sVSZ >= %d" 2668msgid "%s%sVSZ >= %d"
2612msgstr "" 2669msgstr ""
2613 2670
2614#: plugins/check_procs.c:434 2671#: plugins/check_procs.c:436
2615#, c-format 2672#, c-format
2616msgid "" 2673msgid ""
2617"%s: VSZ must be an integer!\n" 2674"%s: VSZ must be an integer!\n"
2618"\n" 2675"\n"
2619msgstr "" 2676msgstr ""
2620 2677
2621#: plugins/check_procs.c:441 2678#: plugins/check_procs.c:440
2622#, c-format 2679#, c-format
2623msgid "%s%sPCPU >= %.2f" 2680msgid "%s%sPCPU >= %.2f"
2624msgstr "" 2681msgstr ""
2625 2682
2626#: plugins/check_procs.c:445 2683#: plugins/check_procs.c:444
2627#, c-format 2684#, c-format
2628msgid "" 2685msgid ""
2629"%s: PCPU must be a float!\n" 2686"%s: PCPU must be a float!\n"
2630"\n" 2687"\n"
2631msgstr "" 2688msgstr ""
2632 2689
2633#: plugins/check_procs.c:467 2690#: plugins/check_procs.c:463
2634#, c-format 2691#, c-format
2635msgid "" 2692msgid ""
2636"%s: metric must be one of PROCS, VSZ, RSS, CPU!\n" 2693"%s: metric must be one of PROCS, VSZ, RSS, CPU!\n"
2637"\n" 2694"\n"
2638msgstr "" 2695msgstr ""
2639 2696
2640#: plugins/check_procs.c:504 2697#: plugins/check_procs.c:500
2641#, c-format 2698#, c-format
2642msgid "wmax (%d) cannot be greater than cmax (%d)\n" 2699msgid "wmax (%d) cannot be greater than cmax (%d)\n"
2643msgstr "" 2700msgstr ""
2644 2701
2645#: plugins/check_procs.c:508 2702#: plugins/check_procs.c:504
2646#, c-format 2703#, c-format
2647msgid "wmin (%d) cannot be less than cmin (%d)\n" 2704msgid "wmin (%d) cannot be less than cmin (%d)\n"
2648msgstr "" 2705msgstr ""
2649 2706
2650#: plugins/check_procs.c:589 2707#: plugins/check_procs.c:585
2651msgid "" 2708msgid ""
2652"Checks all processes and generates WARNING or CRITICAL states if the " 2709"Checks all processes and generates WARNING or CRITICAL states if the "
2653"specified\n" 2710"specified\n"
@@ -2658,7 +2715,7 @@ msgid ""
2658"\n" 2715"\n"
2659msgstr "" 2716msgstr ""
2660 2717
2661#: plugins/check_procs.c:596 2718#: plugins/check_procs.c:592
2662msgid "" 2719msgid ""
2663"\n" 2720"\n"
2664"Required Arguments:\n" 2721"Required Arguments:\n"
@@ -2668,7 +2725,7 @@ msgid ""
2668" Generate critical state if metric is outside this range\n" 2725" Generate critical state if metric is outside this range\n"
2669msgstr "" 2726msgstr ""
2670 2727
2671#: plugins/check_procs.c:603 2728#: plugins/check_procs.c:599
2672msgid "" 2729msgid ""
2673"\n" 2730"\n"
2674"Optional Arguments:\n" 2731"Optional Arguments:\n"
@@ -2682,7 +2739,7 @@ msgid ""
2682" Extra information. Up to 3 verbosity levels\n" 2739" Extra information. Up to 3 verbosity levels\n"
2683msgstr "" 2740msgstr ""
2684 2741
2685#: plugins/check_procs.c:614 2742#: plugins/check_procs.c:610
2686msgid "" 2743msgid ""
2687"\n" 2744"\n"
2688"Optional Filters:\n" 2745"Optional Filters:\n"
@@ -2698,7 +2755,7 @@ msgid ""
2698" Only scan for processes with rss higher than indicated.\n" 2755" Only scan for processes with rss higher than indicated.\n"
2699msgstr "" 2756msgstr ""
2700 2757
2701#: plugins/check_procs.c:627 2758#: plugins/check_procs.c:623
2702msgid "" 2759msgid ""
2703" -P, --pcpu=PCPU\n" 2760" -P, --pcpu=PCPU\n"
2704" Only scan for processes with pcpu higher than indicated.\n" 2761" Only scan for processes with pcpu higher than indicated.\n"
@@ -2710,7 +2767,7 @@ msgid ""
2710" Only scan for exact matches of COMMAND (without path).\n" 2767" Only scan for exact matches of COMMAND (without path).\n"
2711msgstr "" 2768msgstr ""
2712 2769
2713#: plugins/check_procs.c:637 2770#: plugins/check_procs.c:633
2714msgid "" 2771msgid ""
2715"\n" 2772"\n"
2716"RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If\n" 2773"RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If\n"
@@ -2719,7 +2776,7 @@ msgid ""
2719"\n" 2776"\n"
2720msgstr "" 2777msgstr ""
2721 2778
2722#: plugins/check_procs.c:642 2779#: plugins/check_procs.c:638
2723msgid "" 2780msgid ""
2724"This plugin checks the number of currently running processes and\n" 2781"This plugin checks the number of currently running processes and\n"
2725"generates WARNING or CRITICAL states if the process count is outside\n" 2782"generates WARNING or CRITICAL states if the process count is outside\n"
@@ -2729,7 +2786,7 @@ msgid ""
2729"\n" 2786"\n"
2730msgstr "" 2787msgstr ""
2731 2788
2732#: plugins/check_procs.c:649 2789#: plugins/check_procs.c:645
2733msgid "" 2790msgid ""
2734"Examples:\n" 2791"Examples:\n"
2735" check_procs -w 2:2 -c 2:1024 -C portsentry\n" 2792" check_procs -w 2:2 -c 2:1024 -C portsentry\n"
@@ -2742,61 +2799,65 @@ msgid ""
2742"\n" 2799"\n"
2743" check_procs -w 50000 -c 100000 --metric=VSZ\n" 2800" check_procs -w 50000 -c 100000 --metric=VSZ\n"
2744" Alert if vsz of any processes over 50K or 100K\n" 2801" Alert if vsz of any processes over 50K or 100K\n"
2802" check_procs -w 10 -c 20 --metric=CPU\n"
2803" Alert if cpu of any processes over 10% or 20%\n"
2745"\n" 2804"\n"
2746msgstr "" 2805msgstr ""
2747 2806
2748#: plugins/check_radius.c:116 2807#: plugins/check_radius.c:117
2749msgid "Config file error" 2808msgid "Config file error"
2750msgstr "" 2809msgstr ""
2751 2810
2752#: plugins/check_radius.c:123 2811#: plugins/check_radius.c:125
2753msgid "Out of Memory?" 2812msgid "Out of Memory?"
2754msgstr "" 2813msgstr ""
2755 2814
2756#: plugins/check_radius.c:144 2815#: plugins/check_radius.c:146
2757msgid "Timeout" 2816msgid "Timeout"
2758msgstr "" 2817msgstr ""
2759 2818
2760#: plugins/check_radius.c:146 2819#: plugins/check_radius.c:148
2761msgid "Auth Error" 2820msgid "Auth Error"
2762msgstr "" 2821msgstr ""
2763 2822
2764#: plugins/check_radius.c:148 2823#: plugins/check_radius.c:150
2765msgid "Auth Failed" 2824msgid "Auth Failed"
2766msgstr "" 2825msgstr ""
2767 2826
2768#: plugins/check_radius.c:152 2827#: plugins/check_radius.c:154
2769msgid "Auth OK" 2828msgid "Auth OK"
2770msgstr "" 2829msgstr ""
2771 2830
2772#: plugins/check_radius.c:190 plugins/check_radius.c:261 2831#: plugins/check_radius.c:193 plugins/check_radius.c:267
2773msgid "Timeout interval must be a positive integer" 2832msgid "Timeout interval must be a positive integer"
2774msgstr "" 2833msgstr ""
2775 2834
2776#: plugins/check_radius.c:194 plugins/check_radius.c:255 2835#: plugins/check_radius.c:197 plugins/check_radius.c:261
2777msgid "Number of retries must be a positive integer" 2836msgid "Number of retries must be a positive integer"
2778msgstr "" 2837msgstr ""
2779 2838
2780#: plugins/check_radius.c:199 plugins/check_radius.c:237 2839#: plugins/check_radius.c:202 plugins/check_radius.c:240
2781msgid "Server port must be a positive integer" 2840msgid "Server port must be a positive integer"
2782msgstr "" 2841msgstr ""
2783 2842
2784#: plugins/check_radius.c:281 2843#: plugins/check_radius.c:287
2785msgid "Copyright (c) 1999 Robert August Vincent II\n" 2844msgid "Copyright (c) 1999 Robert August Vincent II\n"
2786msgstr "" 2845msgstr ""
2787 2846
2788#: plugins/check_radius.c:284 2847#: plugins/check_radius.c:290
2789msgid "" 2848msgid ""
2790"Tests to see if a radius server is accepting connections.\n" 2849"Tests to see if a radius server is accepting connections.\n"
2791"\n" 2850"\n"
2792msgstr "" 2851msgstr ""
2793 2852
2794#: plugins/check_radius.c:292 2853#: plugins/check_radius.c:298
2795msgid "" 2854msgid ""
2796" -u, --username=STRING\n" 2855" -u, --username=STRING\n"
2797" The user to authenticate\n" 2856" The user to authenticate\n"
2798" -p, --password=STRING\n" 2857" -p, --password=STRING\n"
2799" Password for autentication (SECURITY RISK)\n" 2858" Password for autentication (SECURITY RISK)\n"
2859" -n, --nas-id=STRING\n"
2860" NAS identifier\n"
2800" -F, --filename=STRING\n" 2861" -F, --filename=STRING\n"
2801" Configuration file\n" 2862" Configuration file\n"
2802" -e, --expect=STRING\n" 2863" -e, --expect=STRING\n"
@@ -2805,7 +2866,7 @@ msgid ""
2805" Number of times to retry a failed connection\n" 2866" Number of times to retry a failed connection\n"
2806msgstr "" 2867msgstr ""
2807 2868
2808#: plugins/check_radius.c:306 2869#: plugins/check_radius.c:314
2809msgid "" 2870msgid ""
2810"\n" 2871"\n"
2811"This plugin tests a radius server to see if it is accepting connections.\n" 2872"This plugin tests a radius server to see if it is accepting connections.\n"
@@ -2816,7 +2877,7 @@ msgid ""
2816"\n" 2877"\n"
2817msgstr "" 2878msgstr ""
2818 2879
2819#: plugins/check_radius.c:313 2880#: plugins/check_radius.c:321
2820msgid "" 2881msgid ""
2821"The password option presents a substantial security issue because the\n" 2882"The password option presents a substantial security issue because the\n"
2822"password can be determined by careful watching of the command line in\n" 2883"password can be determined by careful watching of the command line in\n"
@@ -2854,19 +2915,19 @@ msgstr ""
2854msgid "REAL %s - %d second response time\n" 2915msgid "REAL %s - %d second response time\n"
2855msgstr "" 2916msgstr ""
2856 2917
2857#: plugins/check_real.c:319 plugins/check_smtp.c:243 plugins/check_tcp.c:459 2918#: plugins/check_real.c:319 plugins/check_smtp.c:301 plugins/check_tcp.c:463
2858msgid "Server port must be a positive integer\n" 2919msgid "Server port must be a positive integer\n"
2859msgstr "" 2920msgstr ""
2860 2921
2861#: plugins/check_real.c:328 plugins/check_smtp.c:273 2922#: plugins/check_real.c:328 plugins/check_smtp.c:345
2862msgid "Warning time must be a nonnegative integer\n" 2923msgid "Warning time must be a nonnegative integer\n"
2863msgstr "" 2924msgstr ""
2864 2925
2865#: plugins/check_real.c:337 plugins/check_smtp.c:264 2926#: plugins/check_real.c:337 plugins/check_smtp.c:336
2866msgid "Critical time must be a nonnegative integer\n" 2927msgid "Critical time must be a nonnegative integer\n"
2867msgstr "" 2928msgstr ""
2868 2929
2869#: plugins/check_real.c:348 plugins/check_smtp.c:284 2930#: plugins/check_real.c:348 plugins/check_smtp.c:356
2870msgid "Time interval must be a nonnegative integer\n" 2931msgid "Time interval must be a nonnegative integer\n"
2871msgstr "" 2932msgstr ""
2872 2933
@@ -2903,48 +2964,55 @@ msgid ""
2903"values." 2964"values."
2904msgstr "" 2965msgstr ""
2905 2966
2906#: plugins/check_smtp.c:108 2967#: plugins/check_smtp.c:126
2907msgid "recv() failed\n" 2968msgid "recv() failed\n"
2908msgstr "" 2969msgstr ""
2909 2970
2910#: plugins/check_smtp.c:117 2971#: plugins/check_smtp.c:137
2911msgid "Invalid SMTP response received from host\n" 2972msgid "Invalid SMTP response received from host\n"
2912msgstr "" 2973msgstr ""
2913 2974
2914#: plugins/check_smtp.c:119 2975#: plugins/check_smtp.c:139
2915#, c-format 2976#, c-format
2916msgid "Invalid SMTP response received from host on port %d\n" 2977msgid "Invalid SMTP response received from host on port %d\n"
2917msgstr "" 2978msgstr ""
2918 2979
2919#: plugins/check_smtp.c:149 2980#: plugins/check_smtp.c:183 plugins/check_snmp.c:512
2981msgid "Could Not Compile Regular Expression"
2982msgstr ""
2983
2984#: plugins/check_smtp.c:192 plugins/check_smtp.c:202
2920#, c-format 2985#, c-format
2921msgid "" 2986msgid "SMTP %s - Invalid response '%s' to command '%s'\n"
2922"DUMMYCMD: %s\n"
2923"%s\n"
2924msgstr "" 2987msgstr ""
2925 2988
2926#: plugins/check_smtp.c:172 2989#: plugins/check_smtp.c:196 plugins/check_snmp.c:278
2927#, c-format 2990#, c-format
2928msgid "SMTP %s - %.3f sec. response time, %s|time=%ldus\n" 2991msgid "Execute Error: %s\n"
2929msgstr "" 2992msgstr ""
2930 2993
2931#: plugins/check_smtp.c:175 2994#: plugins/check_smtp.c:227
2932#, c-format 2995#, c-format
2933msgid "SMTP %s - %.3f second response time|time=%ldus\n" 2996msgid "SMTP %s - %.3f sec. response time%s%s|%s\n"
2934msgstr "" 2997msgstr ""
2935 2998
2936#: plugins/check_smtp.c:356 2999#: plugins/check_smtp.c:315 plugins/check_smtp.c:325 plugins/check_snmp.c:568
3000#, c-format
3001msgid "Could not realloc() units [%d]\n"
3002msgstr ""
3003
3004#: plugins/check_smtp.c:428
2937msgid "Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n" 3005msgid "Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n"
2938msgstr "" 3006msgstr ""
2939 3007
2940#: plugins/check_smtp.c:359 3008#: plugins/check_smtp.c:431
2941#, fuzzy 3009#, fuzzy
2942msgid "" 3010msgid ""
2943"This plugin will attempt to open an SMTP connection with the host.\n" 3011"This plugin will attempt to open an SMTP connection with the host.\n"
2944"\n" 3012"\n"
2945msgstr "Le plugin tests a %s connection with l'host specified\n" 3013msgstr "Le plugin tests a %s connection with l'host specified\n"
2946 3014
2947#: plugins/check_smtp.c:370 3015#: plugins/check_smtp.c:442
2948#, c-format 3016#, c-format
2949msgid "" 3017msgid ""
2950" -e, --expect=STRING\n" 3018" -e, --expect=STRING\n"
@@ -2952,13 +3020,14 @@ msgid ""
2952" -n, nocommand\n" 3020" -n, nocommand\n"
2953" Suppress SMTP command\n" 3021" Suppress SMTP command\n"
2954" -C, --command=STRING\n" 3022" -C, --command=STRING\n"
2955" SMTP command (default: '%s')\n" 3023" SMTP command (may be used repeatedly)\n"
3024" -R, --command=STRING\n"
3025" Expected response to command (may be used repeatedly)\n"
2956" -f, --from=STRING\n" 3026" -f, --from=STRING\n"
2957" FROM-address to include in MAIL command, required by Exchange 2000\n" 3027" FROM-address to include in MAIL command, required by Exchange 2000\n"
2958" (default: '%s')\n"
2959msgstr "" 3028msgstr ""
2960 3029
2961#: plugins/check_smtp.c:387 3030#: plugins/check_smtp.c:461
2962msgid "" 3031msgid ""
2963"\n" 3032"\n"
2964"Successul connects return STATE_OK, refusals and timeouts return\n" 3033"Successul connects return STATE_OK, refusals and timeouts return\n"
@@ -2967,12 +3036,7 @@ msgid ""
2967"STATE_WARNING return values.\n" 3036"STATE_WARNING return values.\n"
2968msgstr "" 3037msgstr ""
2969 3038
2970#: plugins/check_snmp.c:278 3039#: plugins/check_snmp.c:285 plugins/check_snmp.c:518
2971#, c-format
2972msgid "Execute Error: %s\n"
2973msgstr ""
2974
2975#: plugins/check_snmp.c:285 plugins/check_snmp.c:524
2976#, c-format 3040#, c-format
2977msgid "%s UNKNOWN: call for regex which was not a compiled option" 3041msgid "%s UNKNOWN: call for regex which was not a compiled option"
2978msgstr "" 3042msgstr ""
@@ -2980,7 +3044,7 @@ msgstr ""
2980#: plugins/check_snmp.c:322 plugins/negate.c:108 3044#: plugins/check_snmp.c:322 plugins/negate.c:108
2981#, c-format 3045#, c-format
2982msgid "" 3046msgid ""
2983"%s problem - No data recieved from host\n" 3047"%s problem - No data received from host\n"
2984"CMD: %s\n" 3048"CMD: %s\n"
2985msgstr "" 3049msgstr ""
2986 3050
@@ -2989,52 +3053,43 @@ msgstr ""
2989msgid "Invalid critical threshold: %s\n" 3053msgid "Invalid critical threshold: %s\n"
2990msgstr "" 3054msgstr ""
2991 3055
2992#: plugins/check_snmp.c:471 3056#: plugins/check_snmp.c:468
2993#, c-format 3057#, c-format
2994msgid "Invalid warning threshold: %s\n" 3058msgid "Invalid warning threshold: %s\n"
2995msgstr "" 3059msgstr ""
2996 3060
2997#: plugins/check_snmp.c:518 3061#: plugins/check_snmp.c:538
2998msgid "Could Not Compile Regular Expression"
2999msgstr ""
3000
3001#: plugins/check_snmp.c:544
3002#, c-format 3062#, c-format
3003msgid "Could not realloc() labels[%d]" 3063msgid "Could not realloc() labels[%d]"
3004msgstr "" 3064msgstr ""
3005 3065
3006#: plugins/check_snmp.c:557 3066#: plugins/check_snmp.c:550
3007msgid "Could not realloc() labels\n" 3067msgid "Could not realloc() labels\n"
3008msgstr "" 3068msgstr ""
3009 3069
3010#: plugins/check_snmp.c:575 3070#: plugins/check_snmp.c:580
3011#, c-format
3012msgid "Could not realloc() units [%d]\n"
3013msgstr ""
3014
3015#: plugins/check_snmp.c:588
3016msgid "Could not realloc() units\n" 3071msgid "Could not realloc() units\n"
3017msgstr "" 3072msgstr ""
3018 3073
3019#: plugins/check_snmp.c:661 3074#: plugins/check_snmp.c:653
3020#, c-format 3075#, c-format
3021msgid "" 3076msgid ""
3022"Missing secname (%s) or authpassword (%s) ! \n" 3077"Missing secname (%s) or authpassword (%s) ! \n"
3023")" 3078")"
3024msgstr "" 3079msgstr ""
3025 3080
3026#: plugins/check_snmp.c:679 3081#: plugins/check_snmp.c:671
3027#, c-format 3082#, c-format
3028msgid "Invalid SNMP version: %s\n" 3083msgid "Invalid SNMP version: %s\n"
3029msgstr "" 3084msgstr ""
3030 3085
3031#: plugins/check_snmp.c:874 3086#: plugins/check_snmp.c:864
3032msgid "" 3087msgid ""
3033"Check status of remote machines and obtain sustem information via SNMP\n" 3088"Check status of remote machines and obtain sustem information via SNMP\n"
3034"\n" 3089"\n"
3035msgstr "" 3090msgstr ""
3036 3091
3037#: plugins/check_snmp.c:884 3092#: plugins/check_snmp.c:874
3038msgid "" 3093msgid ""
3039" -P, --protocol=[1|3]\n" 3094" -P, --protocol=[1|3]\n"
3040" SNMP protocol version\n" 3095" SNMP protocol version\n"
@@ -3044,7 +3099,7 @@ msgid ""
3044" SNMPv3 auth proto\n" 3099" SNMPv3 auth proto\n"
3045msgstr "" 3100msgstr ""
3046 3101
3047#: plugins/check_snmp.c:893 3102#: plugins/check_snmp.c:883
3048#, c-format 3103#, c-format
3049msgid "" 3104msgid ""
3050" -C, --community=STRING\n" 3105" -C, --community=STRING\n"
@@ -3058,7 +3113,7 @@ msgid ""
3058" SNMPv3 crypt passwd (DES)\n" 3113" SNMPv3 crypt passwd (DES)\n"
3059msgstr "" 3114msgstr ""
3060 3115
3061#: plugins/check_snmp.c:905 3116#: plugins/check_snmp.c:895
3062#, c-format 3117#, c-format
3063msgid "" 3118msgid ""
3064" -o, --oid=OID(s)\n" 3119" -o, --oid=OID(s)\n"
@@ -3071,7 +3126,7 @@ msgid ""
3071" to be the data that should be used in the evaluation.\n" 3126" to be the data that should be used in the evaluation.\n"
3072msgstr "" 3127msgstr ""
3073 3128
3074#: plugins/check_snmp.c:915 3129#: plugins/check_snmp.c:905
3075msgid "" 3130msgid ""
3076" -w, --warning=INTEGER_RANGE(s)\n" 3131" -w, --warning=INTEGER_RANGE(s)\n"
3077" Range(s) which will not result in a WARNING status\n" 3132" Range(s) which will not result in a WARNING status\n"
@@ -3079,7 +3134,7 @@ msgid ""
3079" Range(s) which will not result in a CRITICAL status\n" 3134" Range(s) which will not result in a CRITICAL status\n"
3080msgstr "" 3135msgstr ""
3081 3136
3082#: plugins/check_snmp.c:922 3137#: plugins/check_snmp.c:912
3083msgid "" 3138msgid ""
3084" -s, --string=STRING\n" 3139" -s, --string=STRING\n"
3085" Return OK state (for that OID) if STRING is an exact match\n" 3140" Return OK state (for that OID) if STRING is an exact match\n"
@@ -3093,7 +3148,7 @@ msgid ""
3093" Prefix label for output from plugin (default -s 'SNMP')\n" 3148" Prefix label for output from plugin (default -s 'SNMP')\n"
3094msgstr "" 3149msgstr ""
3095 3150
3096#: plugins/check_snmp.c:933 3151#: plugins/check_snmp.c:923
3097msgid "" 3152msgid ""
3098" -u, --units=STRING\n" 3153" -u, --units=STRING\n"
3099" Units label(s) for output data (e.g., 'sec.').\n" 3154" Units label(s) for output data (e.g., 'sec.').\n"
@@ -3101,7 +3156,7 @@ msgid ""
3101" Separates output on multiple OID requests\n" 3156" Separates output on multiple OID requests\n"
3102msgstr "" 3157msgstr ""
3103 3158
3104#: plugins/check_snmp.c:943 3159#: plugins/check_snmp.c:933
3105msgid "" 3160msgid ""
3106"\n" 3161"\n"
3107"- This plugin uses the 'snmpget' command included with the NET-SNMP " 3162"- This plugin uses the 'snmpget' command included with the NET-SNMP "
@@ -3111,14 +3166,14 @@ msgid ""
3111" http://net-snmp.sourceforge.net before you can use this plugin.\n" 3166" http://net-snmp.sourceforge.net before you can use this plugin.\n"
3112msgstr "" 3167msgstr ""
3113 3168
3114#: plugins/check_snmp.c:948 3169#: plugins/check_snmp.c:938
3115msgid "" 3170msgid ""
3116"- Multiple OIDs may be indicated by a comma- or space-delimited list (lists " 3171"- Multiple OIDs may be indicated by a comma- or space-delimited list (lists "
3117"with\n" 3172"with\n"
3118" internal spaces must be quoted) [max 8 OIDs]\n" 3173" internal spaces must be quoted) [max 8 OIDs]\n"
3119msgstr "" 3174msgstr ""
3120 3175
3121#: plugins/check_snmp.c:952 3176#: plugins/check_snmp.c:942
3122msgid "" 3177msgid ""
3123"- Ranges are inclusive and are indicated with colons. When specified as\n" 3178"- Ranges are inclusive and are indicated with colons. When specified as\n"
3124" 'min:max' a STATE_OK will be returned if the result is within the " 3179" 'min:max' a STATE_OK will be returned if the result is within the "
@@ -3127,14 +3182,14 @@ msgid ""
3127" returned if the result is outside the specified range.\n" 3182" returned if the result is outside the specified range.\n"
3128msgstr "" 3183msgstr ""
3129 3184
3130#: plugins/check_snmp.c:958 3185#: plugins/check_snmp.c:948
3131msgid "" 3186msgid ""
3132"- If specified in the order 'max:min' a non-OK state will be returned if " 3187"- If specified in the order 'max:min' a non-OK state will be returned if "
3133"the\n" 3188"the\n"
3134" result is within the (inclusive) range.\n" 3189" result is within the (inclusive) range.\n"
3135msgstr "" 3190msgstr ""
3136 3191
3137#: plugins/check_snmp.c:962 3192#: plugins/check_snmp.c:952
3138msgid "" 3193msgid ""
3139"- Upper or lower bounds may be omitted to skip checking the respective " 3194"- Upper or lower bounds may be omitted to skip checking the respective "
3140"limit.\n" 3195"limit.\n"
@@ -3147,7 +3202,7 @@ msgid ""
3147" returned from the SNMP query is an unsigned integer.\n" 3202" returned from the SNMP query is an unsigned integer.\n"
3148msgstr "" 3203msgstr ""
3149 3204
3150#: plugins/check_snmp.c:976 3205#: plugins/check_snmp.c:966
3151#, c-format 3206#, c-format
3152msgid "" 3207msgid ""
3153"Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n" 3208"Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n"
@@ -3183,46 +3238,46 @@ msgstr ""
3183msgid "Usage: %s [-46] [-t <timeout>] [-p <port>] <host>\n" 3238msgid "Usage: %s [-46] [-t <timeout>] [-p <port>] <host>\n"
3184msgstr "" 3239msgstr ""
3185 3240
3186#: plugins/check_swap.c:125 3241#: plugins/check_swap.c:145
3187#, c-format 3242#, c-format
3188msgid "Command: %s\n" 3243msgid "Command: %s\n"
3189msgstr "" 3244msgstr ""
3190 3245
3191#: plugins/check_swap.c:127 3246#: plugins/check_swap.c:147
3192#, c-format 3247#, c-format
3193msgid "Format: %s\n" 3248msgid "Format: %s\n"
3194msgstr "" 3249msgstr ""
3195 3250
3196#: plugins/check_swap.c:163 3251#: plugins/check_swap.c:183
3197#, c-format 3252#, c-format
3198msgid "total=%d, used=%d, free=%d\n" 3253msgid "total=%d, used=%d, free=%d\n"
3199msgstr "" 3254msgstr ""
3200 3255
3201#: plugins/check_swap.c:186 3256#: plugins/check_swap.c:197
3202#, c-format 3257#, c-format
3203msgid "total=%d, free=%d\n" 3258msgid "total=%d, free=%d\n"
3204msgstr "" 3259msgstr ""
3205 3260
3206#: plugins/check_swap.c:222 3261#: plugins/check_swap.c:314
3207#, c-format 3262#, c-format
3208msgid " %d%% free (%lu MB out of %lu MB)%s" 3263msgid " %d%% free (%llu MB out of %llu MB)"
3209msgstr "" 3264msgstr ""
3210 3265
3211#: plugins/check_swap.c:365 3266#: plugins/check_swap.c:464
3212msgid "Warning percentage should be more than critical percentage\n" 3267msgid "Warning percentage should be more than critical percentage\n"
3213msgstr "" 3268msgstr ""
3214 3269
3215#: plugins/check_swap.c:369 3270#: plugins/check_swap.c:468
3216msgid "Warning free space should be more than critical free space\n" 3271msgid "Warning free space should be more than critical free space\n"
3217msgstr "" 3272msgstr ""
3218 3273
3219#: plugins/check_swap.c:386 3274#: plugins/check_swap.c:485
3220msgid "" 3275msgid ""
3221"Check swap space on local server.\n" 3276"Check swap space on local server.\n"
3222"\n" 3277"\n"
3223msgstr "" 3278msgstr ""
3224 3279
3225#: plugins/check_swap.c:392 3280#: plugins/check_swap.c:491
3226#, c-format 3281#, c-format
3227msgid "" 3282msgid ""
3228"\n" 3283"\n"
@@ -3230,19 +3285,19 @@ msgid ""
3230" Exit with WARNING status if less than INTEGER bytes of swap space are " 3285" Exit with WARNING status if less than INTEGER bytes of swap space are "
3231"free\n" 3286"free\n"
3232" -w, --warning=PERCENT%%\n" 3287" -w, --warning=PERCENT%%\n"
3233" Exit with WARNING status if less than PERCENT of swap space has been " 3288" Exit with WARNING status if less than PERCENT of swap space is free\n"
3234"used\n"
3235" -c, --critical=INTEGER\n" 3289" -c, --critical=INTEGER\n"
3236" Exit with CRITICAL status if less than INTEGER bytes of swap space are " 3290" Exit with CRITICAL status if less than INTEGER bytes of swap space are "
3237"free\n" 3291"free\n"
3238" -c, --critical=PERCENT%%\n" 3292" -c, --critical=PERCENT%%\n"
3239" Exit with CRITCAL status if less than PERCENT of swap space has been " 3293" Exit with CRITCAL status if less than PERCENT of swap space is free\n"
3240"used\n"
3241" -a, --allswaps\n" 3294" -a, --allswaps\n"
3242" Conduct comparisons for all swap partitions, one by one\n" 3295" Conduct comparisons for all swap partitions, one by one\n"
3296" -v, --verbose\n"
3297" Verbose output. Up to 3 levels\n"
3243msgstr "" 3298msgstr ""
3244 3299
3245#: plugins/check_swap.c:404 3300#: plugins/check_swap.c:505
3246msgid "" 3301msgid ""
3247"\n" 3302"\n"
3248"On Solaris, if -a specified, uses swap -l, otherwise uses swap -s.\n" 3303"On Solaris, if -a specified, uses swap -l, otherwise uses swap -s.\n"
@@ -3250,18 +3305,18 @@ msgid ""
3250"real memory\n" 3305"real memory\n"
3251msgstr "" 3306msgstr ""
3252 3307
3253#: plugins/check_swap.c:408 3308#: plugins/check_swap.c:509
3254msgid "" 3309msgid ""
3255"\n" 3310"\n"
3256"On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n" 3311"On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n"
3257msgstr "" 3312msgstr ""
3258 3313
3259#: plugins/check_swap.c:420 3314#: plugins/check_swap.c:521
3260#, c-format 3315#, c-format
3261msgid "" 3316msgid ""
3262"Usage:\n" 3317"Usage:\n"
3263" %s [-a] -w <used_percentage>%% -c <used_percentage>%%\n" 3318" %s [-av] -w <percent_free>%% -c <percent_free>%%\n"
3264" %s [-a] -w <bytes_free> -c <bytes_free>\n" 3319" %s [-av] -w <bytes_free> -c <bytes_free>\n"
3265" %s (-h | --help) for detailed help\n" 3320" %s (-h | --help) for detailed help\n"
3266" %s (-V | --version) for version information\n" 3321" %s (-V | --version) for version information\n"
3267msgstr "" 3322msgstr ""
@@ -3279,61 +3334,61 @@ msgstr ""
3279msgid "%s %s%s - %.3f second response time on port %d" 3334msgid "%s %s%s - %.3f second response time on port %d"
3280msgstr "" 3335msgstr ""
3281 3336
3282#: plugins/check_tcp.c:426 3337#: plugins/check_tcp.c:430
3283msgid "invalid host name or address" 3338msgid "invalid host name or address"
3284msgstr "" 3339msgstr ""
3285 3340
3286#: plugins/check_tcp.c:431 plugins/check_time.c:252 plugins/check_time.c:264 3341#: plugins/check_tcp.c:435 plugins/check_time.c:266 plugins/check_time.c:278
3287#: plugins/check_udp.c:166 plugins/check_users.c:145 3342#: plugins/check_udp.c:166 plugins/check_users.c:154
3288msgid "Critical threshold must be a nonnegative integer\n" 3343msgid "Critical threshold must be a nonnegative integer\n"
3289msgstr "" 3344msgstr ""
3290 3345
3291#: plugins/check_tcp.c:438 plugins/check_time.c:233 plugins/check_time.c:257 3346#: plugins/check_tcp.c:442 plugins/check_time.c:247 plugins/check_time.c:271
3292#: plugins/check_udp.c:173 plugins/check_users.c:151 plugins/check_users.c:161 3347#: plugins/check_udp.c:173 plugins/check_users.c:160 plugins/check_users.c:170
3293#: plugins/check_users.c:168 3348#: plugins/check_users.c:177
3294msgid "Warning threshold must be a nonnegative integer\n" 3349msgid "Warning threshold must be a nonnegative integer\n"
3295msgstr "" 3350msgstr ""
3296 3351
3297#: plugins/check_tcp.c:453 3352#: plugins/check_tcp.c:457
3298msgid "Timeout interval must be a positive integer\n" 3353msgid "Timeout interval must be a positive integer\n"
3299msgstr "" 3354msgstr ""
3300 3355
3301#: plugins/check_tcp.c:476 3356#: plugins/check_tcp.c:480
3302msgid "Maxbytes must be a positive integer\n" 3357msgid "Maxbytes must be a positive integer\n"
3303msgstr "" 3358msgstr ""
3304 3359
3305#: plugins/check_tcp.c:490 3360#: plugins/check_tcp.c:494
3306msgid "Refuse mut be one of ok, warn, crit\n" 3361msgid "Refuse mut be one of ok, warn, crit\n"
3307msgstr "" 3362msgstr ""
3308 3363
3309#: plugins/check_tcp.c:496 3364#: plugins/check_tcp.c:500
3310msgid "Delay must be a positive integer\n" 3365msgid "Delay must be a positive integer\n"
3311msgstr "" 3366msgstr ""
3312 3367
3313#: plugins/check_tcp.c:501 3368#: plugins/check_tcp.c:505
3314msgid "SSL support not available. Install OpenSSL and recompile." 3369msgid "SSL support not available. Install OpenSSL and recompile."
3315msgstr "" 3370msgstr ""
3316 3371
3317#: plugins/check_tcp.c:509 3372#: plugins/check_tcp.c:513
3318msgid "You must provide a server address\n" 3373msgid "You must provide a server address\n"
3319msgstr "" 3374msgstr ""
3320 3375
3321#: plugins/check_tcp.c:527 3376#: plugins/check_tcp.c:531
3322msgid "ERROR: Cannot create SSL context.\n" 3377msgid "ERROR: Cannot create SSL context.\n"
3323msgstr "" 3378msgstr ""
3324 3379
3325#: plugins/check_tcp.c:553 3380#: plugins/check_tcp.c:557
3326msgid "ERROR: Cannot initiate SSL handshake.\n" 3381msgid "ERROR: Cannot initiate SSL handshake.\n"
3327msgstr "" 3382msgstr ""
3328 3383
3329#: plugins/check_tcp.c:599 3384#: plugins/check_tcp.c:603
3330#, fuzzy, c-format 3385#, fuzzy, c-format
3331msgid "" 3386msgid ""
3332"This plugin tests %s connections with the specified host.\n" 3387"This plugin tests %s connections with the specified host.\n"
3333"\n" 3388"\n"
3334msgstr "Le plugin tests a %s connection with l'host specified\n" 3389msgstr "Le plugin tests a %s connection with l'host specified\n"
3335 3390
3336#: plugins/check_tcp.c:610 3391#: plugins/check_tcp.c:614
3337msgid "" 3392msgid ""
3338" -s, --send=STRING\n" 3393" -s, --send=STRING\n"
3339" String to send to the server\n" 3394" String to send to the server\n"
@@ -3349,7 +3404,7 @@ msgstr ""
3349" -q, --quit=STRING\n" 3404" -q, --quit=STRING\n"
3350" String to send server to initiate a clean close of the connection\n" 3405" String to send server to initiate a clean close of the connection\n"
3351 3406
3352#: plugins/check_tcp.c:618 3407#: plugins/check_tcp.c:622
3353#, fuzzy 3408#, fuzzy
3354msgid "" 3409msgid ""
3355" -r, --refuse=ok|warn|crit\n" 3410" -r, --refuse=ok|warn|crit\n"
@@ -3370,7 +3425,7 @@ msgstr ""
3370" -c, --critical=DOUBLE\n" 3425" -c, --critical=DOUBLE\n"
3371" Response time to result in critical status (seconds)\n" 3426" Response time to result in critical status (seconds)\n"
3372 3427
3373#: plugins/check_tcp.c:641 3428#: plugins/check_tcp.c:645
3374#, fuzzy, c-format 3429#, fuzzy, c-format
3375msgid "" 3430msgid ""
3376"Usage: %s -H host -p port [-w <warning time>] [-c <critical time>]\n" 3431"Usage: %s -H host -p port [-w <warning time>] [-c <critical time>]\n"
@@ -3382,68 +3437,68 @@ msgstr ""
3382"\t[-e expect_string] [-q quit_string] [-m maxbytes] [-d delay]\n" 3437"\t[-e expect_string] [-q quit_string] [-m maxbytes] [-d delay]\n"
3383"\t[-t to_sec] [-r refuse_state] [-v] [-4|-6]\n" 3438"\t[-t to_sec] [-r refuse_state] [-v] [-4|-6]\n"
3384 3439
3385#: plugins/check_time.c:87 3440#: plugins/check_time.c:88
3386#, c-format 3441#, c-format
3387msgid "TIME UNKNOWN - could not connect to server %s, port %d\n" 3442msgid "TIME UNKNOWN - could not connect to server %s, port %d\n"
3388msgstr "" 3443msgstr ""
3389 3444
3390#: plugins/check_time.c:100 3445#: plugins/check_time.c:101
3391#, c-format 3446#, c-format
3392msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n" 3447msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n"
3393msgstr "" 3448msgstr ""
3394 3449
3395#: plugins/check_time.c:124 3450#: plugins/check_time.c:125
3396#, c-format 3451#, c-format
3397msgid "TIME UNKNOWN - no data on recv() from server %s, port %d\n" 3452msgid "TIME UNKNOWN - no data on recv() from server %s, port %d\n"
3398msgstr "" 3453msgstr ""
3399 3454
3400#: plugins/check_time.c:136 3455#: plugins/check_time.c:138
3401#, c-format 3456#, c-format
3402msgid "TIME %s - %d second response time\n" 3457msgid "TIME %s - %d second response time|%s\n"
3403msgstr "" 3458msgstr ""
3404 3459
3405#: plugins/check_time.c:150 3460#: plugins/check_time.c:156
3406#, c-format 3461#, c-format
3407msgid "TIME %s - %lu second time difference\n" 3462msgid "TIME %s - %lu second time difference|%s %s\n"
3408msgstr "" 3463msgstr ""
3409 3464
3410#: plugins/check_time.c:215 plugins/check_time.c:290 plugins/check_udp.c:161 3465#: plugins/check_time.c:229 plugins/check_time.c:304 plugins/check_udp.c:161
3411#: plugins/check_udp.c:202 3466#: plugins/check_udp.c:202
3412msgid "Invalid host name/address\n" 3467msgid "Invalid host name/address\n"
3413msgstr "" 3468msgstr ""
3414 3469
3415#: plugins/check_time.c:229 3470#: plugins/check_time.c:243
3416msgid "Warning thresholds must be a nonnegative integer\n" 3471msgid "Warning thresholds must be a nonnegative integer\n"
3417msgstr "" 3472msgstr ""
3418 3473
3419#: plugins/check_time.c:248 3474#: plugins/check_time.c:262
3420msgid "Critical thresholds must be a nonnegative integer\n" 3475msgid "Critical thresholds must be a nonnegative integer\n"
3421msgstr "" 3476msgstr ""
3422 3477
3423#: plugins/check_time.c:271 plugins/check_udp.c:186 3478#: plugins/check_time.c:285 plugins/check_udp.c:186
3424msgid "Server port must be a nonnegative integer\n" 3479msgid "Server port must be a nonnegative integer\n"
3425msgstr "" 3480msgstr ""
3426 3481
3427#: plugins/check_time.c:277 plugins/check_udp.c:180 3482#: plugins/check_time.c:291 plugins/check_udp.c:180
3428msgid "Timeout interval must be a nonnegative integer\n" 3483msgid "Timeout interval must be a nonnegative integer\n"
3429msgstr "" 3484msgstr ""
3430 3485
3431#: plugins/check_time.c:294 plugins/check_udp.c:207 3486#: plugins/check_time.c:308 plugins/check_udp.c:207
3432msgid "Host name was not supplied\n" 3487msgid "Host name was not supplied\n"
3433msgstr "" 3488msgstr ""
3434 3489
3435#: plugins/check_time.c:314 plugins/check_udp.c:225 plugins/check_users.c:186 3490#: plugins/check_time.c:328 plugins/check_udp.c:225 plugins/check_users.c:195
3436msgid "Copyright (c) 1999 Ethan Galstad\n" 3491msgid "Copyright (c) 1999 Ethan Galstad\n"
3437msgstr "" 3492msgstr ""
3438 3493
3439#: plugins/check_time.c:317 3494#: plugins/check_time.c:331
3440#, fuzzy 3495#, fuzzy
3441msgid "" 3496msgid ""
3442"This plugin will check the time on the specified host.\n" 3497"This plugin will check the time on the specified host.\n"
3443"\n" 3498"\n"
3444msgstr "Le plugin tests a %s connection with l'host specified\n" 3499msgstr "Le plugin tests a %s connection with l'host specified\n"
3445 3500
3446#: plugins/check_time.c:326 3501#: plugins/check_time.c:340
3447msgid "" 3502msgid ""
3448" -u, --udp\n" 3503" -u, --udp\n"
3449" Use UDP to connect, not TCP\n" 3504" Use UDP to connect, not TCP\n"
@@ -3457,7 +3512,7 @@ msgid ""
3457" Response time (sec.) necessary to result in critical status\n" 3512" Response time (sec.) necessary to result in critical status\n"
3458msgstr "" 3513msgstr ""
3459 3514
3460#: plugins/check_time.c:349 3515#: plugins/check_time.c:363
3461#, c-format 3516#, c-format
3462msgid "" 3517msgid ""
3463"Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n" 3518"Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n"
@@ -3514,11 +3569,11 @@ msgid ""
3514" [-e expect] [-s send] [-t to_sec] [-v]\n" 3569" [-e expect] [-s send] [-t to_sec] [-v]\n"
3515msgstr "" 3570msgstr ""
3516 3571
3517#: plugins/check_ups.c:546 3572#: plugins/check_ups.c:573
3518msgid "Copyright (c) 2000 Tom Shields" 3573msgid "Copyright (c) 2000 Tom Shields"
3519msgstr "" 3574msgstr ""
3520 3575
3521#: plugins/check_ups.c:549 3576#: plugins/check_ups.c:576
3522msgid "" 3577msgid ""
3523"This plugin tests the UPS service on the specified host.\n" 3578"This plugin tests the UPS service on the specified host.\n"
3524"Network UPS Tools from www.exploits.org must be running for this plugin to\n" 3579"Network UPS Tools from www.exploits.org must be running for this plugin to\n"
@@ -3526,13 +3581,13 @@ msgid ""
3526"\n" 3581"\n"
3527msgstr "" 3582msgstr ""
3528 3583
3529#: plugins/check_ups.c:559 3584#: plugins/check_ups.c:586
3530msgid "" 3585msgid ""
3531" -u, --ups=STRING\n" 3586" -u, --ups=STRING\n"
3532" Name of UPS\n" 3587" Name of UPS\n"
3533msgstr "" 3588msgstr ""
3534 3589
3535#: plugins/check_ups.c:569 3590#: plugins/check_ups.c:596
3536msgid "" 3591msgid ""
3537"This plugin attempts to determine the status of a UPS (Uninterruptible " 3592"This plugin attempts to determine the status of a UPS (Uninterruptible "
3538"Power\n" 3593"Power\n"
@@ -3545,7 +3600,7 @@ msgid ""
3545"\n" 3600"\n"
3546msgstr "" 3601msgstr ""
3547 3602
3548#: plugins/check_ups.c:576 3603#: plugins/check_ups.c:603
3549msgid "" 3604msgid ""
3550"You may also specify a variable to check [such as temperature, utility " 3605"You may also specify a variable to check [such as temperature, utility "
3551"voltage,\n" 3606"voltage,\n"
@@ -3557,7 +3612,7 @@ msgid ""
3557"\n" 3612"\n"
3558msgstr "" 3613msgstr ""
3559 3614
3560#: plugins/check_ups.c:582 3615#: plugins/check_ups.c:609
3561msgid "" 3616msgid ""
3562"Notes:\n" 3617"Notes:\n"
3563"\n" 3618"\n"
@@ -3568,31 +3623,31 @@ msgid ""
3568"\n" 3623"\n"
3569msgstr "" 3624msgstr ""
3570 3625
3571#: plugins/check_ups.c:597 3626#: plugins/check_ups.c:624
3572#, c-format 3627#, c-format
3573msgid "" 3628msgid ""
3574"Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n" 3629"Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n"
3575" [-t timeout] [-v]\n" 3630" [-t timeout] [-v]\n"
3576msgstr "" 3631msgstr ""
3577 3632
3578#: plugins/check_users.c:73 3633#: plugins/check_users.c:76
3579#, c-format 3634#, c-format
3580msgid "# users=%d" 3635msgid "# users=%d"
3581msgstr "" 3636msgstr ""
3582 3637
3583#: plugins/check_users.c:98 3638#: plugins/check_users.c:106
3584#, c-format 3639#, c-format
3585msgid "USERS %s - %d users currently logged in\n" 3640msgid "USERS %s - %d users currently logged in |%s\n"
3586msgstr "" 3641msgstr ""
3587 3642
3588#: plugins/check_users.c:189 3643#: plugins/check_users.c:198
3589msgid "" 3644msgid ""
3590"This plugin checks the number of users currently logged in on the local\n" 3645"This plugin checks the number of users currently logged in on the local\n"
3591"system and generates an error if the number exceeds the thresholds " 3646"system and generates an error if the number exceeds the thresholds "
3592"specified.\n" 3647"specified.\n"
3593msgstr "" 3648msgstr ""
3594 3649
3595#: plugins/check_users.c:197 3650#: plugins/check_users.c:206
3596msgid "" 3651msgid ""
3597" -w, --warning=INTEGER\n" 3652" -w, --warning=INTEGER\n"
3598" Set WARNING status if more than INTEGER users are logged in\n" 3653" Set WARNING status if more than INTEGER users are logged in\n"
@@ -3637,7 +3692,7 @@ msgstr ""
3637#: plugins/urlize.c:105 3692#: plugins/urlize.c:105
3638#, c-format 3693#, c-format
3639msgid "" 3694msgid ""
3640"%s problem - No data recieved from host\n" 3695"%s problem - No data received from host\n"
3641"CMD: %s</A>\n" 3696"CMD: %s</A>\n"
3642msgstr "" 3697msgstr ""
3643 3698