diff options
-rw-r--r-- | lib/Makefile.am | 6 | ||||
-rw-r--r-- | lib/error.c | 207 | ||||
-rw-r--r-- | lib/error.h | 36 | ||||
-rw-r--r-- | lib/error.m4 | 19 | ||||
-rw-r--r-- | lib/exit.h | 32 | ||||
-rw-r--r-- | lib/exitfail.c | 27 | ||||
-rw-r--r-- | lib/exitfail.h | 20 | ||||
-rw-r--r-- | lib/fsusage.c | 57 | ||||
-rw-r--r-- | lib/fsusage.h | 14 | ||||
-rw-r--r-- | lib/fsusage.m4 | 53 | ||||
-rw-r--r-- | lib/full-read.h | 24 | ||||
-rw-r--r-- | lib/getloadavg.c | 166 | ||||
-rw-r--r-- | lib/getopt.c | 144 | ||||
-rw-r--r-- | lib/getopt.h | 52 | ||||
-rw-r--r-- | lib/getopt1.c | 61 | ||||
-rw-r--r-- | lib/gettext.h | 17 | ||||
-rw-r--r-- | lib/ls-mntd-fs.m4 | 44 | ||||
-rw-r--r-- | lib/malloc.c | 6 | ||||
-rw-r--r-- | lib/mountlist.c | 213 | ||||
-rw-r--r-- | lib/mountlist.h | 33 | ||||
-rw-r--r-- | lib/onceonly.m4 | 63 | ||||
-rw-r--r-- | lib/realloc.c | 13 | ||||
-rw-r--r-- | lib/snprintf.c | 133 | ||||
-rw-r--r-- | lib/strtod.c | 21 | ||||
-rw-r--r-- | lib/unlocked-io.h | 66 | ||||
-rw-r--r-- | lib/unlocked-io.m4 | 22 | ||||
-rw-r--r-- | lib/xalloc.h | 88 | ||||
-rw-r--r-- | lib/xalloc.m4 | 32 | ||||
-rw-r--r-- | lib/xmalloc.c | 210 | ||||
-rw-r--r-- | lib/xstrdup.c | 33 | ||||
-rw-r--r-- | plugins/check_disk.c | 1 | ||||
-rw-r--r-- | po/de.po | 1167 | ||||
-rw-r--r-- | po/fr.po | 1167 |
33 files changed, 2344 insertions, 1903 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 7b07f555..2e9aeee9 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am | |||
@@ -2,7 +2,8 @@ | |||
2 | 2 | ||
3 | noinst_LIBRARIES = libnagiosplug.a | 3 | noinst_LIBRARIES = libnagiosplug.a |
4 | 4 | ||
5 | libnagiosplug_a_SOURCES = getopt.c getopt1.c snprintf.c fsusage.c mountlist.c xmalloc.c | 5 | libnagiosplug_a_SOURCES = getopt.c getopt1.c fsusage.c snprintf.c mountlist.c \ |
6 | xmalloc.c xstrdup.c exitfail.c | ||
6 | 7 | ||
7 | libnagiosplug_a_LIBADD = @LIBOBJS@ | 8 | libnagiosplug_a_LIBADD = @LIBOBJS@ |
8 | libnagiosplug_a_DEPENDENCIES = $(libnagiosplug_a_LIBADD) | 9 | libnagiosplug_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 | ||
17 | INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl | 19 | INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl |
diff --git a/lib/error.c b/lib/error.c index 2296124a..1149235a 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 | ||
53 | void 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. */ |
69 | void (*error_print_progname) ( | 54 | void (*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. */ |
76 | unsigned int error_message_count; | 57 | unsigned 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, | |||
107 | char *strerror_r (); | 90 | char *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. */ |
112 | extern char *progname; | 99 | extern 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 | ||
122 | char *strerror (); | ||
123 | # endif | ||
124 | # else | ||
125 | static char * | ||
126 | private_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 | ||
140 | static void | 106 | static 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 | ||
176 | static void | 141 | static void |
177 | error_tail (int status, int errnum, const char *message, va_list args) | 142 | error_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 */ | ||
249 | void | 194 | void |
250 | #if defined VA_START && __STDC__ | ||
251 | error (int status, int errnum, const char *message, ...) | 195 | error (int status, int errnum, const char *message, ...) |
252 | #else | ||
253 | error (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) | |||
302 | int error_one_per_line; | 236 | int error_one_per_line; |
303 | 237 | ||
304 | void | 238 | void |
305 | #if defined VA_START && __STDC__ | ||
306 | error_at_line (int status, int errnum, const char *file_name, | 239 | error_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 | ||
309 | error_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 177b2dcb..8ed63595 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 @@ | |||
40 | extern "C" { | 36 | extern "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 | ||
49 | extern void error (int status, int errnum, const char *format, ...) | 43 | extern void error (int __status, int __errnum, const char *__format, ...) |
50 | __attribute__ ((__format__ (__printf__, 3, 4))); | 44 | __attribute__ ((__format__ (__printf__, 3, 4))); |
51 | 45 | ||
52 | extern void error_at_line (int status, int errnum, const char *fname, | 46 | extern 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. */ |
59 | extern void (*error_print_progname) (void); | 53 | extern void (*error_print_progname) (void); |
60 | 54 | ||
61 | #else | ||
62 | void error (); | ||
63 | void error_at_line (); | ||
64 | extern 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. */ |
68 | extern unsigned int error_message_count; | 56 | extern unsigned int error_message_count; |
69 | 57 | ||
diff --git a/lib/error.m4 b/lib/error.m4 index 717725d6..0bc2e689 100644 --- a/lib/error.m4 +++ b/lib/error.m4 | |||
@@ -1,14 +1,15 @@ | |||
1 | #serial 5 | 1 | #serial 9 |
2 | 2 | ||
3 | dnl FIXME: put these prerequisite-only *.m4 files in a separate | 3 | AC_DEFUN([gl_ERROR], |
4 | dnl 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 | ||
6 | dnl These are the prerequisite macros for GNU's error.c file. | 10 | # Prerequisites of lib/error.c. |
7 | AC_DEFUN([jm_PREREQ_ERROR], | 11 | AC_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 00000000..4e8d4651 --- /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 00000000..2ae5f695 --- /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 | |||
27 | int volatile exit_failure = EXIT_FAILURE; | ||
diff --git a/lib/exitfail.h b/lib/exitfail.h new file mode 100644 index 00000000..cf5ab719 --- /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 | |||
20 | extern int volatile exit_failure; | ||
diff --git a/lib/fsusage.c b/lib/fsusage.c index 7339c805..d9260293 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 | |||
34 | int 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 (); | |||
70 | int statvfs (); | 75 | int 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 | ||
92 | int 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 | ||
259 | int | 270 | int |
diff --git a/lib/fsusage.h b/lib/fsusage.h index e0c0db58..e2cbbf12 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 | 35 | int 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 | |||
42 | int 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 85d0fc8f..a0ab1e15 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 | ||
5 | AC_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) |
194 | fi | 205 | fi |
195 | 206 | ||
196 | dnl AS_IF([test $ac_fsusage_space = yes], [$1], [$2]) | 207 | AS_IF([test $ac_fsusage_space = yes], [$1], [$2]) |
197 | if 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. | ||
215 | AC_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) | ||
221 | choke -- 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. | ||
240 | AC_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 00000000..71f19a3b --- /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. */ | ||
24 | extern size_t full_read (int fd, void *buf, size_t count); | ||
diff --git a/lib/getloadavg.c b/lib/getloadavg.c index e9c4c088..c6b6fee1 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 @@ | |||
98 | extern int errno; | 107 | extern 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; | |||
528 | static struct dg_sys_info_load_info load_info; /* what-a-mouthful! */ | 483 | static 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. */ |
533 | static int channel; | 488 | static 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. */ |
537 | static long offset; | 492 | static long offset; |
538 | 493 | ||
539 | # if !defined(VMS) && !defined(sgi) && !defined(__linux__) | 494 | # if !defined (VMS) && !defined (sgi) && !defined (__linux__) |
540 | static struct nlist nl[2]; | 495 | static 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]; | |||
544 | static kvm_t *kd; | 499 | static 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 | ||
554 | int | 509 | int |
555 | getloadavg (loadavg, nelem) | 510 | getloadavg (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 |
1048 | void | 996 | void |
1049 | main (argc, argv) | 997 | main (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 289d137e..6dcdbebf 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. */ |
198 | static char *posixly_correct; | 188 | static 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; | |||
219 | extern char *getenv (); | 196 | extern char *getenv (); |
220 | #endif | 197 | #endif |
221 | 198 | ||
222 | static char * | ||
223 | my_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. */ | ||
244 | extern 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__ | ||
302 | static void exchange (char **); | ||
303 | #endif | ||
304 | |||
305 | static void | 252 | static void |
306 | exchange (argv) | 253 | exchange (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__ | ||
388 | static const char *_getopt_initialize (int, char *const *, const char *); | ||
389 | #endif | ||
390 | static const char * | 333 | static 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 | ||
512 | int | 452 | int |
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 | ||
1193 | int | 1130 | int |
1194 | getopt (argc, argv, optstring) | 1131 | getopt (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 | ||
1212 | int | 1146 | int |
1213 | main (argc, argv) | 1147 | main (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 4283c35b..5e15191e 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 | ||
94 | struct option | 96 | struct 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. */ |
145 | extern int getopt (int ___argc, char *const *___argv, const char *__shortopts); | 142 | extern int getopt (int ___argc, char *const *___argv, const char *__shortopts); |
146 | # else /* not __GNU_LIBRARY__ */ | 143 | #else /* not __GNU_LIBRARY__ */ |
147 | extern int getopt (); | 144 | extern int getopt (); |
148 | # endif /* __GNU_LIBRARY__ */ | 145 | #endif /* __GNU_LIBRARY__ */ |
149 | 146 | ||
150 | # ifndef __need_getopt | 147 | #ifndef __need_getopt |
151 | extern int getopt_long (int ___argc, char *const *___argv, | 148 | extern 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__ */ | ||
165 | extern int getopt (); | ||
166 | # ifndef __need_getopt | ||
167 | extern int getopt_long (); | ||
168 | extern int getopt_long_only (); | ||
169 | |||
170 | extern 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 ad06cc7f..3288c726 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 | ||
70 | int | 63 | int |
71 | getopt_long (argc, argv, options, long_options, opt_index) | 64 | getopt_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 | ||
86 | int | 78 | int |
87 | getopt_long_only (argc, argv, options, long_options, opt_index) | 79 | getopt_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 | ||
108 | int | 99 | int |
109 | main (argc, argv) | 100 | main (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 8b262f4c..835732e0 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 3ba42a31..c28466bb 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 | ||
3 | dnl From Jim Meyering. | 3 | dnl From Jim Meyering. |
4 | dnl | 4 | dnl |
@@ -10,13 +10,20 @@ dnl | |||
10 | AC_DEFUN([jm_LIST_MOUNTED_FILESYSTEMS], | 10 | AC_DEFUN([jm_LIST_MOUNTED_FILESYSTEMS], |
11 | [ | 11 | [ |
12 | AC_CHECK_FUNCS(listmntent getmntinfo) | 12 | AC_CHECK_FUNCS(listmntent getmntinfo) |
13 | AC_CHECK_HEADERS(mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h) | 13 | AC_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. | ||
17 | AC_CHECK_HEADERS(sys/ucred.h, [], [], [#include <grp.h>]) | ||
18 | |||
19 | AC_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 |
68 | fi | 75 | fi |
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 |
85 | fi | 92 | fi |
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 |
171 | fi | 178 | fi |
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 |
191 | fi | 198 | fi |
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 |
209 | fi | 216 | fi |
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 |
227 | fi | 234 | fi |
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 |
248 | fi | 255 | fi |
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 |
264 | fi | 272 | fi |
265 | 273 | ||
diff --git a/lib/malloc.c b/lib/malloc.c index 5e7674bd..a43d1692 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 | |||
27 | char *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 | ||
32 | char * | 30 | void * |
33 | rpl_malloc (size_t n) | 31 | rpl_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 1af3cbbd..631be312 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 |
27 | void 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 |
36 | char *strstr (); | 34 | char *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 c41490c9..9e550a08 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 | 33 | struct 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 | |||
38 | struct 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 00000000..50b33f48 --- /dev/null +++ b/lib/onceonly.m4 | |||
@@ -0,0 +1,63 @@ | |||
1 | # onceonly.m4 serial 3 (gettext-0.12) | ||
2 | dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc. | ||
3 | dnl This file is free software, distributed under the terms of the GNU | ||
4 | dnl General Public License. As a special exception to the GNU General | ||
5 | dnl Public License, this file may be distributed as part of a program | ||
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
8 | |||
9 | dnl This file defines some "once only" variants of standard autoconf macros. | ||
10 | dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS | ||
11 | dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS | ||
12 | dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS | ||
13 | dnl AC_REQUIRE([AC_HEADER_STDC]) like AC_HEADER_STDC | ||
14 | dnl The advantage is that the check for each of the headers/functions/decls | ||
15 | dnl will be put only once into the 'configure' file. It keeps the size of | ||
16 | dnl the 'configure' file down, and avoids redundant output when 'configure' | ||
17 | dnl is run. | ||
18 | dnl The drawback is that the checks cannot be conditionalized. If you write | ||
19 | dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi | ||
20 | dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to | ||
21 | dnl empty, and the check will be inserted before the body of the AC_DEFUNed | ||
22 | dnl function. | ||
23 | |||
24 | dnl Autoconf version 2.57 or newer is recommended. | ||
25 | AC_PREREQ(2.54) | ||
26 | |||
27 | # AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of | ||
28 | # AC_CHECK_HEADERS(HEADER1 HEADER2 ...). | ||
29 | AC_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 ...). | ||
43 | AC_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, ...). | ||
55 | AC_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 d0d3e4ab..ccbf9913 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 | |||
27 | char *malloc (); | ||
28 | char *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 | ||
34 | char * | 31 | void * |
35 | rpl_realloc (p, n) | 32 | rpl_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 3de2a96f..633517de 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 | ||
120 | static size_t dopr(char *buffer, size_t maxlen, const char *format, | ||
121 | va_list args_in); | ||
122 | static void fmtstr(char *buffer, size_t *currlen, size_t maxlen, | ||
123 | char *value, int flags, int min, int max); | ||
124 | static void fmtint(char *buffer, size_t *currlen, size_t maxlen, | ||
125 | long value, int base, int min, int max, int flags); | ||
126 | static void fmtfp(char *buffer, size_t *currlen, size_t maxlen, | ||
127 | LDOUBLE fvalue, int min, int max, int flags); | ||
128 | static 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 | |||
196 | static size_t dopr(char *buffer, size_t maxlen, const char *format, | ||
197 | va_list args_in); | ||
198 | static void fmtstr(char *buffer, size_t *currlen, size_t maxlen, | ||
199 | char *value, int flags, int min, int max); | ||
200 | static void fmtint(char *buffer, size_t *currlen, size_t maxlen, | ||
201 | long value, int base, int min, int max, int flags); | ||
202 | static void fmtfp(char *buffer, size_t *currlen, size_t maxlen, | ||
203 | LDOUBLE fvalue, int min, int max, int flags); | ||
204 | static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c); | ||
205 | |||
164 | static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args_in) | 206 | static 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,...) | 834 | int 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 10edb5cf..161f97a7 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 a7240fb9..36a7a488 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 00000000..f8e98f1d --- /dev/null +++ b/lib/unlocked-io.m4 | |||
@@ -0,0 +1,22 @@ | |||
1 | #serial 8 -*- autoconf -*- | ||
2 | |||
3 | dnl From Jim Meyering. | ||
4 | dnl | ||
5 | dnl See if the glibc *_unlocked I/O macros or functions are available. | ||
6 | dnl Use only those *_unlocked macros or functions that are declared | ||
7 | dnl (because some of them were declared in Solaris 2.5.1 but were removed | ||
8 | dnl in Solaris 2.6, whereas we want binaries built on Solaris 2.5.1 to run | ||
9 | dnl on Solaris 2.6). | ||
10 | |||
11 | AC_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 098a6c2e..4b658581 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. */ | ||
42 | extern 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. */ |
46 | extern void (*xalloc_fail_func) PARAMS ((void)); | 37 | extern 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)); | |||
51 | extern char const xalloc_msg_memory_exhausted[]; | 42 | extern 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. */ |
57 | extern void xalloc_die PARAMS ((void)) ATTRIBUTE_NORETURN; | 49 | extern void xalloc_die (void) ATTRIBUTE_NORETURN; |
58 | 50 | ||
59 | void *xmalloc PARAMS ((size_t n)); | 51 | void *xmalloc (size_t s); |
60 | void *xcalloc PARAMS ((size_t n, size_t s)); | 52 | void *xnmalloc (size_t n, size_t s); |
61 | void *xrealloc PARAMS ((void *p, size_t n)); | 53 | void *xzalloc (size_t s); |
62 | char *xstrdup PARAMS ((const char *str)); | 54 | void *xcalloc (size_t n, size_t s); |
63 | 55 | void *xrealloc (void *p, size_t s); | |
64 | # define XMALLOC(Type, N_items) ((Type *) xmalloc (sizeof (Type) * (N_items))) | 56 | void *xnrealloc (void *p, size_t n, size_t s); |
65 | # define XCALLOC(Type, N_items) ((Type *) xcalloc (sizeof (Type), (N_items))) | 57 | void *x2realloc (void *p, size_t *pn); |
66 | # define XREALLOC(Ptr, Type, N_items) \ | 58 | void *x2nrealloc (void *p, size_t *pn, size_t s); |
67 | ((Type *) xrealloc ((void *) (Ptr), sizeof (Type) * (N_items))) | 59 | void *xclone (void const *p, size_t s); |
68 | 60 | char *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 00000000..dec84177 --- /dev/null +++ b/lib/xalloc.m4 | |||
@@ -0,0 +1,32 @@ | |||
1 | # xalloc.m4 serial 8 | ||
2 | dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. | ||
3 | dnl This file is free software, distributed under the terms of the GNU | ||
4 | dnl General Public License. As a special exception to the GNU General | ||
5 | dnl Public License, this file may be distributed as part of a program | ||
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
8 | |||
9 | AC_DEFUN([gl_XALLOC], | ||
10 | [ | ||
11 | gl_PREREQ_XALLOC | ||
12 | gl_PREREQ_XMALLOC | ||
13 | gl_PREREQ_XSTRDUP | ||
14 | ]) | ||
15 | |||
16 | # Prerequisites of lib/xalloc.h. | ||
17 | AC_DEFUN([gl_PREREQ_XALLOC], [ | ||
18 | : | ||
19 | ]) | ||
20 | |||
21 | # Prerequisites of lib/xmalloc.c. | ||
22 | AC_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. | ||
30 | AC_DEFUN([gl_PREREQ_XSTRDUP], [ | ||
31 | : | ||
32 | ]) | ||
diff --git a/lib/xmalloc.c b/lib/xmalloc.c index 3affee7a..181006b4 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 | ||
27 | void *calloc (); | ||
28 | void *malloc (); | ||
29 | void *realloc (); | ||
30 | void 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. */ | ||
56 | int 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. */ |
59 | void (*xalloc_fail_func) PARAMS ((void)) = 0; | 49 | void (*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 | |||
70 | static inline void * | ||
71 | xnmalloc_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 | |||
79 | void * | ||
80 | xnmalloc (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) | |||
79 | void * | 87 | void * |
80 | xmalloc (size_t n) | 88 | xmalloc (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); | 96 | static inline void * |
85 | if (p == 0) | 97 | xnrealloc_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 | ||
104 | void * | ||
105 | xnrealloc (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 | ||
93 | void * | 113 | void * |
94 | xrealloc (void *p, size_t n) | 114 | xrealloc (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 | |||
175 | static inline void * | ||
176 | x2nrealloc_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 | |||
205 | void * | ||
206 | x2nrealloc (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 | |||
217 | void * | ||
218 | x2realloc (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 | |||
227 | void * | ||
228 | xzalloc (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 | ||
104 | void * | 236 | void * |
105 | xcalloc (size_t n, size_t s) | 237 | xcalloc (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 | |||
251 | void * | ||
252 | xclone (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 00000000..58f18beb --- /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 | |||
29 | char * | ||
30 | xstrdup (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 3beb5689..7841c14b 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -17,6 +17,7 @@ | |||
17 | *****************************************************************************/ | 17 | *****************************************************************************/ |
18 | 18 | ||
19 | const char *progname = "check_disk"; | 19 | const char *progname = "check_disk"; |
20 | const char *program_name = "check_disk"; // Required for coreutils libs | ||
20 | const char *revision = "$Revision$"; | 21 | const char *revision = "$Revision$"; |
21 | const char *copyright = "1999-2003"; | 22 | const char *copyright = "1999-2003"; |
22 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 23 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
@@ -7,7 +7,7 @@ | |||
7 | msgid "" | 7 | msgid "" |
8 | msgstr "" | 8 | msgstr "" |
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 |
24 | msgid "Could not parse arguments\n" | 24 | msgid "Could not parse arguments\n" |
25 | msgstr "" | 25 | msgstr "" |
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 |
29 | msgid "Cannot catch SIGALRM" | 29 | msgid "Cannot catch SIGALRM" |
30 | msgstr "" | 30 | msgstr "" |
31 | 31 | ||
32 | #: plugins/check_by_ssh.c:88 | 32 | #: plugins/check_by_ssh.c:89 |
33 | #, c-format | 33 | #, c-format |
34 | msgid "Unable to open pipe: %s" | 34 | msgid "Unable to open pipe: %s" |
35 | msgstr "" | 35 | msgstr "" |
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 |
43 | msgid "Could not open stderr for %s\n" | 43 | msgid "Could not open stderr for %s\n" |
44 | msgstr "" | 44 | msgstr "" |
45 | 45 | ||
46 | #: plugins/check_by_ssh.c:123 | 46 | #: plugins/check_by_ssh.c:129 |
47 | #, c-format | 47 | #, c-format |
48 | msgid "SSH WARNING: could not open %s\n" | 48 | msgid "SSH WARNING: could not open %s\n" |
49 | msgstr "" | 49 | msgstr "" |
50 | 50 | ||
51 | #: plugins/check_by_ssh.c:142 | 51 | #: plugins/check_by_ssh.c:148 |
52 | #, c-format | 52 | #, c-format |
53 | msgid "[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n" | 53 | msgid "[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n" |
54 | msgstr "" | 54 | msgstr "" |
55 | 55 | ||
56 | #: plugins/check_by_ssh.c:228 | 56 | #: plugins/check_by_ssh.c:235 |
57 | msgid "timeout interval must be an integer" | 57 | msgid "timeout interval must be an integer" |
58 | msgstr "" | 58 | msgstr "" |
59 | 59 | ||
60 | #: plugins/check_by_ssh.c:234 | 60 | #: plugins/check_by_ssh.c:241 |
61 | msgid "invalid host name" | 61 | msgid "invalid host name" |
62 | msgstr "" | 62 | msgstr "" |
63 | 63 | ||
64 | #: plugins/check_by_ssh.c:239 | 64 | #: plugins/check_by_ssh.c:246 |
65 | msgid "port must be an integer" | 65 | msgid "port must be an integer" |
66 | msgstr "" | 66 | msgstr "" |
67 | 67 | ||
68 | #: plugins/check_by_ssh.c:284 | 68 | #: plugins/check_by_ssh.c:288 |
69 | msgid "skip lines must be an integer" | ||
70 | msgstr "" | ||
71 | |||
72 | #: plugins/check_by_ssh.c:298 | ||
69 | #, c-format | 73 | #, c-format |
70 | msgid "%s: You must provide a host name\n" | 74 | msgid "%s: You must provide a host name\n" |
71 | msgstr "" | 75 | msgstr "" |
72 | 76 | ||
73 | #: plugins/check_by_ssh.c:286 | 77 | #: plugins/check_by_ssh.c:300 |
74 | #, c-format | 78 | #, c-format |
75 | msgid "%s: Invalid host name %s\n" | 79 | msgid "%s: Invalid host name %s\n" |
76 | msgstr "" | 80 | msgstr "" |
77 | 81 | ||
78 | #: plugins/check_by_ssh.c:302 | 82 | #: plugins/check_by_ssh.c:316 |
79 | msgid "No remotecmd\n" | 83 | msgid "No remotecmd\n" |
80 | msgstr "" | 84 | msgstr "" |
81 | 85 | ||
82 | #: plugins/check_by_ssh.c:320 | 86 | #: plugins/check_by_ssh.c:334 |
83 | #, c-format | 87 | #, c-format |
84 | msgid "" | 88 | msgid "" |
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" |
86 | msgstr "" | 90 | msgstr "" |
87 | 91 | ||
88 | #: plugins/check_by_ssh.c:323 | 92 | #: plugins/check_by_ssh.c:337 |
89 | #, c-format | 93 | #, c-format |
90 | msgid "" | 94 | msgid "" |
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" |
93 | msgstr "" | 97 | msgstr "" |
94 | 98 | ||
95 | #: plugins/check_by_ssh.c:338 | 99 | #: plugins/check_by_ssh.c:352 |
96 | msgid "" | 100 | msgid "" |
97 | "Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" | 101 | "Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" |
98 | msgstr "" | 102 | msgstr "" |
99 | 103 | ||
100 | #: plugins/check_by_ssh.c:341 | 104 | #: plugins/check_by_ssh.c:355 |
101 | msgid "" | 105 | msgid "" |
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" |
104 | msgstr "" | 108 | msgstr "" |
105 | 109 | ||
106 | #: plugins/check_by_ssh.c:351 | 110 | #: plugins/check_by_ssh.c:365 |
107 | msgid "" | 111 | msgid "" |
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" |
114 | msgstr "" | 120 | msgstr "" |
115 | 121 | ||
116 | #: plugins/check_by_ssh.c:359 | 122 | #: plugins/check_by_ssh.c:375 |
117 | msgid "" | 123 | msgid "" |
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" |
130 | msgstr "" | 136 | msgstr "" |
131 | 137 | ||
132 | #: plugins/check_by_ssh.c:377 | 138 | #: plugins/check_by_ssh.c:393 |
133 | msgid "" | 139 | msgid "" |
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" |
142 | msgstr "" | 148 | msgstr "" |
143 | 149 | ||
144 | #: plugins/check_by_ssh.c:386 | 150 | #: plugins/check_by_ssh.c:402 |
145 | msgid "" | 151 | msgid "" |
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" |
150 | msgstr "" | 156 | msgstr "" |
151 | 157 | ||
152 | #: plugins/check_by_ssh.c:401 | 158 | #: plugins/check_by_ssh.c:407 |
159 | msgid "" | ||
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" | ||
167 | msgstr "" | ||
168 | |||
169 | #: plugins/check_by_ssh.c:425 | ||
153 | #, c-format | 170 | #, c-format |
154 | msgid "" | 171 | msgid "" |
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" |
158 | msgstr "" | 175 | msgstr "" |
159 | 176 | ||
160 | #: plugins/check_dig.c:65 | 177 | #: plugins/check_dig.c:67 |
161 | msgid "Cannot catch SIGALRM\n" | 178 | msgid "Cannot catch SIGALRM\n" |
162 | msgstr "" | 179 | msgstr "" |
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 |
169 | msgid "Could not open pipe: %s\n" | 186 | msgid "Could not open pipe: %s\n" |
170 | msgstr "" | 187 | msgstr "" |
171 | 188 | ||
172 | #: plugins/check_dig.c:108 | 189 | #: plugins/check_dig.c:128 |
173 | msgid "Server not found in ANSWER SECTION" | 190 | msgid "Server not found in ANSWER SECTION" |
174 | msgstr "" | 191 | msgstr "" |
175 | 192 | ||
176 | #: plugins/check_dig.c:118 | 193 | #: plugins/check_dig.c:137 |
177 | msgid "No ANSWER SECTION found" | 194 | msgid "No ANSWER SECTION found" |
178 | msgstr "" | 195 | msgstr "" |
179 | 196 | ||
180 | #: plugins/check_dig.c:135 | 197 | #: plugins/check_dig.c:154 |
181 | msgid "dig returned error status" | 198 | msgid "dig returned error status" |
182 | msgstr "" | 199 | msgstr "" |
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 |
186 | msgid " Probably a non-existent host/domain" | 203 | msgid " Probably a non-existent host/domain" |
187 | msgstr "" | 204 | msgstr "" |
188 | 205 | ||
189 | #: plugins/check_dig.c:150 | 206 | #: plugins/check_dig.c:169 |
190 | #, c-format | 207 | #, c-format |
191 | msgid "%.3f seconds response time (%s)" | 208 | msgid "%.3f seconds response time (%s)" |
192 | msgstr "" | 209 | msgstr "" |
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 |
196 | msgid "Unknown argument" | 213 | msgid "Unknown argument" |
197 | msgstr "" | 214 | msgstr "" |
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 |
201 | msgid "Invalid host name" | 218 | msgid "Invalid host name" |
202 | msgstr "" | 219 | msgstr "" |
203 | 220 | ||
204 | #: plugins/check_dig.c:218 | 221 | #: plugins/check_dig.c:239 |
205 | msgid "Server port must be a nonnegative integer" | 222 | msgid "Server port must be a nonnegative integer" |
206 | msgstr "" | 223 | msgstr "" |
207 | 224 | ||
208 | #: plugins/check_dig.c:228 | 225 | #: plugins/check_dig.c:250 |
209 | msgid "Input causes overflow in warning interval" | ||
210 | msgstr "" | ||
211 | |||
212 | #: plugins/check_dig.c:231 | ||
213 | msgid "Warning interval must be a nonnegative integer" | 226 | msgid "Warning interval must be a nonnegative integer" |
214 | msgstr "" | 227 | msgstr "" |
215 | 228 | ||
216 | #: plugins/check_dig.c:238 | 229 | #: plugins/check_dig.c:258 |
217 | msgid "Input causes overflow in critical interval" | ||
218 | msgstr "" | ||
219 | |||
220 | #: plugins/check_dig.c:241 | ||
221 | msgid "Critical interval must be a nonnegative integer" | 230 | msgid "Critical interval must be a nonnegative integer" |
222 | msgstr "" | 231 | msgstr "" |
223 | 232 | ||
224 | #: plugins/check_dig.c:249 | 233 | #: plugins/check_dig.c:266 |
225 | msgid "Time interval must be a nonnegative integer" | 234 | msgid "Time interval must be a nonnegative integer" |
226 | msgstr "" | 235 | msgstr "" |
227 | 236 | ||
228 | #: plugins/check_dig.c:301 plugins/urlize.c:132 | 237 | #: plugins/check_dig.c:324 plugins/urlize.c:132 |
229 | msgid "" | 238 | msgid "" |
230 | "Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" | 239 | "Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" |
231 | msgstr "" | 240 | msgstr "" |
232 | 241 | ||
233 | #: plugins/check_dig.c:304 | 242 | #: plugins/check_dig.c:327 |
234 | msgid "" | 243 | msgid "" |
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" |
237 | msgstr "" | 246 | msgstr "" |
238 | 247 | ||
239 | #: plugins/check_dig.c:312 | 248 | #: plugins/check_dig.c:335 |
240 | msgid "" | 249 | msgid "" |
241 | " -l, --lookup=STRING\n" | 250 | " -l, --lookup=STRING\n" |
242 | " machine name to lookup\n" | 251 | " machine name to lookup\n" |
243 | msgstr "" | 252 | msgstr "" |
244 | 253 | ||
245 | #: plugins/check_dig.c:331 | 254 | #: plugins/check_dig.c:339 |
255 | msgid "" | ||
256 | " -T, --record_type=STRING\n" | ||
257 | " record type to lookup (default: A)\n" | ||
258 | msgstr "" | ||
259 | |||
260 | #: plugins/check_dig.c:343 | ||
261 | msgid "" | ||
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" | ||
265 | msgstr "" | ||
266 | |||
267 | #: plugins/check_dig.c:363 | ||
246 | #, c-format | 268 | #, c-format |
247 | msgid "" | 269 | msgid "" |
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" | ||
250 | msgstr "" | 273 | msgstr "" |
251 | 274 | ||
252 | #: plugins/check_disk.c:212 | 275 | #: plugins/check_disk.c:213 |
253 | #, c-format | 276 | #, c-format |
254 | msgid "" | 277 | msgid "" |
255 | "%s\n" | 278 | "%s\n" |
@@ -257,70 +280,70 @@ msgid "" | |||
257 | "lu warn%%:%.0f%% crit%%:%.0f%%" | 280 | "lu warn%%:%.0f%% crit%%:%.0f%%" |
258 | msgstr "" | 281 | msgstr "" |
259 | 282 | ||
260 | #: plugins/check_disk.c:230 | 283 | #: plugins/check_disk.c:231 |
261 | #, c-format | 284 | #, c-format |
262 | msgid "%s [%s not found]" | 285 | msgid "%s [%s not found]" |
263 | msgstr "" | 286 | msgstr "" |
264 | 287 | ||
265 | #: plugins/check_disk.c:306 | 288 | #: plugins/check_disk.c:307 |
266 | msgid "Timeout Interval must be an integer!\n" | 289 | msgid "Timeout Interval must be an integer!\n" |
267 | msgstr "" | 290 | msgstr "" |
268 | 291 | ||
269 | #: plugins/check_disk.c:323 plugins/check_swap.c:292 | 292 | #: plugins/check_disk.c:324 plugins/check_swap.c:391 |
270 | msgid "Warning threshold must be integer or percentage!\n" | 293 | msgid "Warning threshold must be integer or percentage!\n" |
271 | msgstr "" | 294 | msgstr "" |
272 | 295 | ||
273 | #: plugins/check_disk.c:340 plugins/check_swap.c:309 | 296 | #: plugins/check_disk.c:341 plugins/check_swap.c:408 |
274 | msgid "Critical threshold must be integer or percentage!\n" | 297 | msgid "Critical threshold must be integer or percentage!\n" |
275 | msgstr "" | 298 | msgstr "" |
276 | 299 | ||
277 | #: plugins/check_disk.c:361 | 300 | #: plugins/check_disk.c:362 |
278 | #, c-format | 301 | #, c-format |
279 | msgid "unit type %s not known\n" | 302 | msgid "unit type %s not known\n" |
280 | msgstr "" | 303 | msgstr "" |
281 | 304 | ||
282 | #: plugins/check_disk.c:364 | 305 | #: plugins/check_disk.c:365 |
283 | #, c-format | 306 | #, c-format |
284 | msgid "failed allocating storage for '%s'\n" | 307 | msgid "failed allocating storage for '%s'\n" |
285 | msgstr "" | 308 | msgstr "" |
286 | 309 | ||
287 | #: plugins/check_disk.c:431 | 310 | #: plugins/check_disk.c:440 |
288 | msgid "check_disk: unrecognized option\n" | 311 | msgid "check_disk: unrecognized option\n" |
289 | msgstr "" | 312 | msgstr "" |
290 | 313 | ||
291 | #: plugins/check_disk.c:488 | 314 | #: plugins/check_disk.c:497 |
292 | msgid "INPUT ERROR: No thresholds specified" | 315 | msgid "INPUT ERROR: No thresholds specified" |
293 | msgstr "" | 316 | msgstr "" |
294 | 317 | ||
295 | #: plugins/check_disk.c:494 | 318 | #: plugins/check_disk.c:503 |
296 | #, c-format | 319 | #, c-format |
297 | msgid "" | 320 | msgid "" |
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" |
300 | msgstr "" | 323 | msgstr "" |
301 | 324 | ||
302 | #: plugins/check_disk.c:501 | 325 | #: plugins/check_disk.c:510 |
303 | #, c-format | 326 | #, c-format |
304 | msgid "" | 327 | msgid "" |
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" |
307 | msgstr "" | 330 | msgstr "" |
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 |
313 | msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n" | 336 | msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n" |
314 | msgstr "" | 337 | msgstr "" |
315 | 338 | ||
316 | #: plugins/check_disk.c:569 | 339 | #: plugins/check_disk.c:578 |
317 | msgid "" | 340 | msgid "" |
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." |
321 | msgstr "" | 344 | msgstr "" |
322 | 345 | ||
323 | #: plugins/check_disk.c:577 | 346 | #: plugins/check_disk.c:586 |
324 | #, c-format | 347 | #, c-format |
325 | msgid "" | 348 | msgid "" |
326 | " -w, --warning=INTEGER\n" | 349 | " -w, --warning=INTEGER\n" |
@@ -336,7 +359,7 @@ msgid "" | |||
336 | " Clear thresholds\n" | 359 | " Clear thresholds\n" |
337 | msgstr "" | 360 | msgstr "" |
338 | 361 | ||
339 | #: plugins/check_disk.c:589 | 362 | #: plugins/check_disk.c:598 |
340 | msgid "" | 363 | msgid "" |
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" |
347 | msgstr "" | 370 | msgstr "" |
348 | 371 | ||
349 | #: plugins/check_disk.c:597 | 372 | #: plugins/check_disk.c:606 |
350 | msgid "" | 373 | msgid "" |
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" |
363 | msgstr "" | 386 | msgstr "" |
364 | 387 | ||
365 | #: plugins/check_disk.c:617 | 388 | #: plugins/check_disk.c:626 |
366 | msgid "" | 389 | msgid "" |
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" |
370 | msgstr "" | 393 | msgstr "" |
371 | 394 | ||
372 | #: plugins/check_disk.c:630 | 395 | #: plugins/check_disk.c:639 |
373 | #, c-format | 396 | #, c-format |
374 | msgid "" | 397 | msgid "" |
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" |
379 | msgstr "" | 402 | msgstr "" |
380 | 403 | ||
381 | #: plugins/check_dns.c:129 plugins/check_dns.c:158 | 404 | #: plugins/check_dns.c:108 |
382 | msgid "Unknown error (plugin)" | 405 | msgid "Unknown error (plugin)" |
383 | msgstr "" | 406 | msgstr "" |
384 | 407 | ||
385 | #: plugins/check_dns.c:153 | 408 | #: plugins/check_dns.c:128 |
386 | #, c-format | 409 | #, c-format |
387 | msgid "DNS CRITICAL - '%s' returned empty host name string\n" | 410 | msgid "DNS CRITICAL - '%s' returned empty host name string\n" |
388 | msgstr "" | 411 | msgstr "" |
389 | 412 | ||
390 | #: plugins/check_dns.c:190 | 413 | #: plugins/check_dns.c:167 |
391 | msgid "nslookup returned error status" | 414 | msgid "nslookup returned error status" |
392 | msgstr "" | 415 | msgstr "" |
393 | 416 | ||
394 | #: plugins/check_dns.c:197 | 417 | #: plugins/check_dns.c:174 |
395 | #, c-format | 418 | #, c-format |
396 | msgid "DNS CRITICAL - '%s' output parsing exited with no address\n" | 419 | msgid "DNS CRITICAL - '%s' output parsing exited with no address\n" |
397 | msgstr "" | 420 | msgstr "" |
398 | 421 | ||
399 | #: plugins/check_dns.c:203 | 422 | #: plugins/check_dns.c:180 |
400 | #, c-format | 423 | #, c-format |
401 | msgid "expected %s but got %s" | 424 | msgid "expected %s but got %s" |
402 | msgstr "" | 425 | msgstr "" |
403 | 426 | ||
404 | #: plugins/check_dns.c:215 | 427 | #: plugins/check_dns.c:186 |
405 | #, c-format | 428 | #, c-format |
406 | msgid "DNS ok - %.3f seconds response time, address%s %s|%s\n" | 429 | msgid "server %s is not authoritative for %s" |
430 | msgstr "" | ||
431 | |||
432 | #: plugins/check_dns.c:198 | ||
433 | msgid "DNS" | ||
407 | msgstr "" | 434 | msgstr "" |
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 | ||
438 | msgid "OK" | ||
439 | msgstr "" | ||
440 | |||
441 | #: plugins/check_dns.c:199 | ||
442 | #, c-format | ||
443 | msgid "%.3f second response time, " | ||
444 | msgid_plural "%.3f seconds response time, " | ||
445 | msgstr[0] "" | ||
446 | msgstr[1] "" | ||
447 | |||
448 | #: plugins/check_dns.c:200 | ||
449 | #, c-format | ||
450 | msgid "%s returns %s" | ||
451 | msgstr "" | ||
452 | |||
453 | #: plugins/check_dns.c:204 | ||
410 | #, c-format | 454 | #, c-format |
411 | msgid "DNS WARNING - %s\n" | 455 | msgid "DNS WARNING - %s\n" |
412 | msgstr "" | 456 | msgstr "" |
413 | 457 | ||
414 | #: plugins/check_dns.c:223 | 458 | #: plugins/check_dns.c:207 |
415 | #, c-format | 459 | #, c-format |
416 | msgid "DNS CRITICAL - %s\n" | 460 | msgid "DNS CRITICAL - %s\n" |
417 | msgstr "" | 461 | msgstr "" |
418 | 462 | ||
419 | #: plugins/check_dns.c:226 | 463 | #: plugins/check_dns.c:210 |
420 | #, c-format | 464 | #, c-format |
421 | msgid "DNS problem - %s\n" | 465 | msgid "DNS problem - %s\n" |
422 | msgstr "" | 466 | msgstr "" |
423 | 467 | ||
424 | #: plugins/check_dns.c:244 | 468 | #: plugins/check_dns.c:228 |
425 | #, c-format | 469 | #, c-format |
426 | msgid "No response from name server %s\n" | 470 | msgid "No response from name server %s\n" |
427 | msgstr "" | 471 | msgstr "" |
428 | 472 | ||
429 | #: plugins/check_dns.c:248 | 473 | #: plugins/check_dns.c:232 |
430 | #, c-format | 474 | #, c-format |
431 | msgid "Name server %s has no records\n" | 475 | msgid "Name server %s has no records\n" |
432 | msgstr "" | 476 | msgstr "" |
433 | 477 | ||
434 | #: plugins/check_dns.c:255 | 478 | #: plugins/check_dns.c:239 |
435 | #, c-format | 479 | #, c-format |
436 | msgid "Connection to name server %s was refused\n" | 480 | msgid "Connection to name server %s was refused\n" |
437 | msgstr "" | 481 | msgstr "" |
438 | 482 | ||
439 | #: plugins/check_dns.c:261 | 483 | #: plugins/check_dns.c:245 |
440 | #, c-format | 484 | #, c-format |
441 | msgid "Domain %s was not found by the server\n" | 485 | msgid "Domain %s was not found by the server\n" |
442 | msgstr "" | 486 | msgstr "" |
443 | 487 | ||
444 | #: plugins/check_dns.c:265 | 488 | #: plugins/check_dns.c:249 |
445 | msgid "Network is unreachable\n" | 489 | msgid "Network is unreachable\n" |
446 | msgstr "" | 490 | msgstr "" |
447 | 491 | ||
448 | #: plugins/check_dns.c:269 | 492 | #: plugins/check_dns.c:253 |
449 | #, c-format | 493 | #, c-format |
450 | msgid "Server failure for %s\n" | 494 | msgid "Server failure for %s\n" |
451 | msgstr "" | 495 | msgstr "" |
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 |
457 | msgid "" | 501 | msgid "" |
458 | "%s: Unknown argument: %s\n" | 502 | "%s: Unknown argument: %s\n" |
459 | "\n" | 503 | "\n" |
460 | msgstr "" | 504 | msgstr "" |
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 |
465 | msgid "Input buffer overflow\n" | 509 | msgid "Input buffer overflow\n" |
466 | msgstr "" | 510 | msgstr "" |
467 | 511 | ||
468 | #: plugins/check_dns.c:338 | 512 | #: plugins/check_dns.c:323 |
469 | msgid "" | 513 | msgid "" |
470 | "Invalid server name/address\n" | 514 | "Invalid server name/address\n" |
471 | "\n" | 515 | "\n" |
472 | msgstr "" | 516 | msgstr "" |
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 |
476 | msgid "" | 520 | msgid "" |
477 | "Invalid host name/address\n" | 521 | "Invalid host name/address\n" |
478 | "\n" | 522 | "\n" |
479 | msgstr "" | 523 | msgstr "" |
480 | 524 | ||
481 | #: plugins/check_dns.c:376 | 525 | #: plugins/check_dns.c:364 |
482 | #, c-format | 526 | #, c-format |
483 | msgid "" | 527 | msgid "" |
484 | "Invalid name/address: %s\n" | 528 | "Invalid name/address: %s\n" |
485 | "\n" | 529 | "\n" |
486 | msgstr "" | 530 | msgstr "" |
487 | 531 | ||
488 | #: plugins/check_dns.c:413 | 532 | #: plugins/check_dns.c:401 |
489 | msgid "" | 533 | msgid "" |
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" | ||
496 | msgstr "" | 542 | msgstr "" |
497 | 543 | ||
498 | #: plugins/check_dns.c:423 | 544 | #: plugins/check_dns.c:413 |
499 | msgid "" | 545 | msgid "" |
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" |
505 | msgstr "" | 551 | msgstr "" |
506 | 552 | ||
507 | #: plugins/check_dns.c:438 | 553 | #: plugins/check_dns.c:428 |
508 | #, c-format | 554 | #, c-format |
509 | msgid "" | 555 | msgid "" |
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" |
513 | msgstr "" | 559 | msgstr "" |
@@ -520,16 +566,33 @@ msgstr "" | |||
520 | msgid "Arguments to check_dummy must be an integer\n" | 566 | msgid "Arguments to check_dummy must be an integer\n" |
521 | msgstr "" | 567 | msgstr "" |
522 | 568 | ||
523 | #: plugins/check_dummy.c:91 | 569 | #: plugins/check_dummy.c:61 plugins/check_http.c:680 plugins/check_procs.c:265 |
570 | msgid "WARNING" | ||
571 | msgstr "" | ||
572 | |||
573 | #: plugins/check_dummy.c:64 plugins/check_http.c:682 plugins/check_procs.c:270 | ||
574 | msgid "CRITICAL" | ||
575 | msgstr "" | ||
576 | |||
577 | #: plugins/check_dummy.c:67 plugins/check_http.c:676 | ||
578 | msgid "UNKNOWN" | ||
579 | msgstr "" | ||
580 | |||
581 | #: plugins/check_dummy.c:70 | ||
582 | #, c-format | ||
583 | msgid "Status %d is not a supported error state\n" | ||
584 | msgstr "" | ||
585 | |||
586 | #: plugins/check_dummy.c:96 | ||
524 | msgid "" | 587 | msgid "" |
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" |
528 | msgstr "" | 591 | msgstr "" |
529 | 592 | ||
530 | #: plugins/check_dummy.c:103 | 593 | #: plugins/check_dummy.c:108 |
531 | #, c-format | 594 | #, c-format |
532 | msgid "Usage: %s <integer state>\n" | 595 | msgid "Usage: %s <integer state> [optional text]\n" |
533 | msgstr "" | 596 | msgstr "" |
534 | 597 | ||
535 | #: plugins/check_fping.c:83 | 598 | #: plugins/check_fping.c:83 |
@@ -685,8 +748,8 @@ msgid "" | |||
685 | msgstr "" | 748 | msgstr "" |
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 |
690 | msgid "Invalid command arguments supplied\n" | 753 | msgid "Invalid command arguments supplied\n" |
691 | msgstr "" | 754 | msgstr "" |
692 | 755 | ||
@@ -740,13 +803,13 @@ msgid "Printer ok - (%s)\n" | |||
740 | msgstr "" | 803 | msgstr "" |
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 |
744 | msgid "Invalid host name\n" | 807 | msgid "Invalid host name\n" |
745 | msgstr "" | 808 | msgstr "" |
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 |
750 | msgid "Invalid argument\n" | 813 | msgid "Invalid argument\n" |
751 | msgstr "" | 814 | msgstr "" |
752 | 815 | ||
@@ -769,246 +832,230 @@ msgstr "" | |||
769 | msgid "Usage: %s -H host [-C community]\n" | 832 | msgid "Usage: %s -H host [-C community]\n" |
770 | msgstr "" | 833 | msgstr "" |
771 | 834 | ||
772 | #: plugins/check_http.c:141 | 835 | #: plugins/check_http.c:142 |
773 | msgid "check_http: could not parse arguments\n" | 836 | msgid "check_http: could not parse arguments\n" |
774 | msgstr "" | 837 | msgstr "" |
775 | 838 | ||
776 | #: plugins/check_http.c:162 | 839 | #: plugins/check_http.c:163 |
777 | msgid "HTTP CRITICAL - Could not make SSL connection\n" | 840 | msgid "HTTP CRITICAL - Could not make SSL connection\n" |
778 | msgstr "" | 841 | msgstr "" |
779 | 842 | ||
780 | #: plugins/check_http.c:168 plugins/check_http.c:495 | 843 | #: plugins/check_http.c:169 plugins/check_http.c:501 |
781 | msgid "ERROR: Cannot retrieve server certificate.\n" | 844 | msgid "ERROR: Cannot retrieve server certificate.\n" |
782 | msgstr "" | 845 | msgstr "" |
783 | 846 | ||
784 | #: plugins/check_http.c:239 | 847 | #: plugins/check_http.c:242 |
785 | msgid "unknown argument" | 848 | msgid "unknown argument" |
786 | msgstr "" | 849 | msgstr "" |
787 | 850 | ||
788 | #: plugins/check_http.c:251 | 851 | #: plugins/check_http.c:254 |
789 | msgid "timeout interval must be a non-negative integer" | 852 | msgid "timeout interval must be a non-negative integer" |
790 | msgstr "" | 853 | msgstr "" |
791 | 854 | ||
792 | #: plugins/check_http.c:257 | 855 | #: plugins/check_http.c:260 |
793 | msgid "invalid critical threshold" | 856 | msgid "invalid critical threshold" |
794 | msgstr "" | 857 | msgstr "" |
795 | 858 | ||
796 | #: plugins/check_http.c:265 | 859 | #: plugins/check_http.c:268 |
797 | msgid "invalid warning threshold" | 860 | msgid "invalid warning threshold" |
798 | msgstr "" | 861 | msgstr "" |
799 | 862 | ||
800 | #: plugins/check_http.c:279 plugins/check_http.c:294 | 863 | #: plugins/check_http.c:282 plugins/check_http.c:297 |
801 | msgid "check_http: invalid option - SSL is not available\n" | 864 | msgid "check_http: invalid option - SSL is not available\n" |
802 | msgstr "" | 865 | msgstr "" |
803 | 866 | ||
804 | #: plugins/check_http.c:288 | 867 | #: plugins/check_http.c:291 |
805 | msgid "invalid certificate expiration period" | 868 | msgid "invalid certificate expiration period" |
806 | msgstr "" | 869 | msgstr "" |
807 | 870 | ||
808 | #: plugins/check_http.c:309 | 871 | #: plugins/check_http.c:312 |
809 | #, c-format | 872 | #, c-format |
810 | msgid "option f:%d \n" | 873 | msgid "option f:%d \n" |
811 | msgstr "" | 874 | msgstr "" |
812 | 875 | ||
813 | #: plugins/check_http.c:324 | 876 | #: plugins/check_http.c:327 |
814 | msgid "invalid port number" | 877 | msgid "invalid port number" |
815 | msgstr "" | 878 | msgstr "" |
816 | 879 | ||
817 | #: plugins/check_http.c:352 | 880 | #: plugins/check_http.c:358 |
818 | msgid "check_http: call for regex which was not a compiled option\n" | 881 | msgid "check_http: call for regex which was not a compiled option\n" |
819 | msgstr "" | 882 | msgstr "" |
820 | 883 | ||
821 | #: plugins/check_http.c:366 | 884 | #: plugins/check_http.c:372 |
822 | #, c-format | 885 | #, c-format |
823 | msgid "Could Not Compile Regular Expression: %s" | 886 | msgid "Could Not Compile Regular Expression: %s" |
824 | msgstr "" | 887 | msgstr "" |
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 |
828 | msgid "IPv6 support not available\n" | 891 | msgid "IPv6 support not available\n" |
829 | msgstr "" | 892 | msgstr "" |
830 | 893 | ||
831 | #: plugins/check_http.c:400 | 894 | #: plugins/check_http.c:406 |
832 | msgid "check_http: you must specify a server address or host name\n" | 895 | msgid "check_http: you must specify a server address or host name\n" |
833 | msgstr "" | 896 | msgstr "" |
834 | 897 | ||
835 | #: plugins/check_http.c:488 plugins/check_http.c:503 | 898 | #: plugins/check_http.c:494 plugins/check_http.c:509 |
836 | msgid "Unable to open TCP socket\n" | 899 | msgid "Unable to open TCP socket\n" |
837 | msgstr "" | 900 | msgstr "" |
838 | 901 | ||
839 | #: plugins/check_http.c:561 | 902 | #: plugins/check_http.c:571 |
840 | msgid "Client Certificate Required\n" | 903 | msgid "Client Certificate Required\n" |
841 | msgstr "" | 904 | msgstr "" |
842 | 905 | ||
843 | #: plugins/check_http.c:563 plugins/check_http.c:568 | 906 | #: plugins/check_http.c:573 plugins/check_http.c:578 |
844 | msgid "Error in recv()\n" | 907 | msgid "Error in recv()\n" |
845 | msgstr "" | 908 | msgstr "" |
846 | 909 | ||
847 | #: plugins/check_http.c:576 | 910 | #: plugins/check_http.c:586 |
848 | #, c-format | 911 | #, c-format |
849 | msgid "No data received %s\n" | 912 | msgid "No data received %s\n" |
850 | msgstr "" | 913 | msgstr "" |
851 | 914 | ||
852 | #: plugins/check_http.c:620 | 915 | #: plugins/check_http.c:630 |
853 | msgid "Invalid HTTP response received from host\n" | 916 | msgid "Invalid HTTP response received from host\n" |
854 | msgstr "" | 917 | msgstr "" |
855 | 918 | ||
856 | #: plugins/check_http.c:623 | 919 | #: plugins/check_http.c:633 |
857 | #, c-format | 920 | #, c-format |
858 | msgid "Invalid HTTP response received from host on port %d\n" | 921 | msgid "Invalid HTTP response received from host on port %d\n" |
859 | msgstr "" | 922 | msgstr "" |
860 | 923 | ||
861 | #: plugins/check_http.c:631 | 924 | #: plugins/check_http.c:641 |
862 | #, c-format | 925 | #, c-format |
863 | msgid "HTTP OK: Status line output matched \"%s\"\n" | 926 | msgid "HTTP OK: Status line output matched \"%s\"\n" |
864 | msgstr "" | 927 | msgstr "" |
865 | 928 | ||
866 | #: plugins/check_http.c:643 | 929 | #: plugins/check_http.c:653 |
867 | #, c-format | 930 | #, c-format |
868 | msgid "HTTP CRITICAL: Invalid Status Line (%s)\n" | 931 | msgid "HTTP CRITICAL: Invalid Status Line (%s)\n" |
869 | msgstr "" | 932 | msgstr "" |
870 | 933 | ||
871 | #: plugins/check_http.c:650 | 934 | #: plugins/check_http.c:660 |
872 | #, c-format | 935 | #, c-format |
873 | msgid "HTTP CRITICAL: Invalid Status (%s)\n" | 936 | msgid "HTTP CRITICAL: Invalid Status (%s)\n" |
874 | msgstr "" | 937 | msgstr "" |
875 | 938 | ||
876 | #: plugins/check_http.c:654 | 939 | #: plugins/check_http.c:664 |
877 | #, c-format | 940 | #, c-format |
878 | msgid "HTTP CRITICAL: %s\n" | 941 | msgid "HTTP CRITICAL: %s\n" |
879 | msgstr "" | 942 | msgstr "" |
880 | 943 | ||
881 | #: plugins/check_http.c:658 | 944 | #: plugins/check_http.c:668 |
882 | #, c-format | 945 | #, c-format |
883 | msgid "HTTP WARNING: %s\n" | 946 | msgid "HTTP WARNING: %s\n" |
884 | msgstr "" | 947 | msgstr "" |
885 | 948 | ||
886 | #: plugins/check_http.c:666 | 949 | #: plugins/check_http.c:686 |
887 | msgid "UNKNOWN" | ||
888 | msgstr "" | ||
889 | |||
890 | #: plugins/check_http.c:668 plugins/check_http.c:918 plugins/check_procs.c:249 | ||
891 | msgid "OK" | ||
892 | msgstr "" | ||
893 | |||
894 | #: plugins/check_http.c:670 plugins/check_procs.c:251 | ||
895 | msgid "WARNING" | ||
896 | msgstr "" | ||
897 | |||
898 | #: plugins/check_http.c:672 plugins/check_procs.c:256 | ||
899 | msgid "CRITICAL" | ||
900 | msgstr "" | ||
901 | |||
902 | #: plugins/check_http.c:676 | ||
903 | #, c-format | 950 | #, c-format |
904 | msgid " - %s - %.3f second response time %s%s|%s %s\n" | 951 | msgid " - %s - %.3f second response time %s%s|%s %s\n" |
905 | msgstr "" | 952 | msgstr "" |
906 | 953 | ||
907 | #: plugins/check_http.c:688 | 954 | #: plugins/check_http.c:698 |
908 | #, c-format | 955 | #, c-format |
909 | msgid "HTTP problem: %s - %.3f second response time %s%s|%s %s\n" | 956 | msgid "HTTP problem: %s - %.3f second response time %s%s|%s %s\n" |
910 | msgstr "" | 957 | msgstr "" |
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 |
914 | msgid "HTTP OK %s - %.3f second response time %s%s|%s %s\n" | 961 | msgid "HTTP OK %s - %.3f second response time %s%s|%s %s\n" |
915 | msgstr "" | 962 | msgstr "" |
916 | 963 | ||
917 | #: plugins/check_http.c:709 | 964 | #: plugins/check_http.c:719 |
918 | #, c-format | 965 | #, c-format |
919 | msgid "CRITICAL - string not found%s|%s %s\n" | 966 | msgid "CRITICAL - string not found%s|%s %s\n" |
920 | msgstr "" | 967 | msgstr "" |
921 | 968 | ||
922 | #: plugins/check_http.c:727 | 969 | #: plugins/check_http.c:737 |
923 | #, c-format | 970 | #, c-format |
924 | msgid "CRITICAL - pattern not found%s|%s %s\n" | 971 | msgid "CRITICAL - pattern not found%s|%s %s\n" |
925 | msgstr "" | 972 | msgstr "" |
926 | 973 | ||
927 | #: plugins/check_http.c:734 | 974 | #: plugins/check_http.c:744 |
928 | #, c-format | 975 | #, c-format |
929 | msgid "CRITICAL - Execute Error: %s\n" | 976 | msgid "CRITICAL - Execute Error: %s\n" |
930 | msgstr "" | 977 | msgstr "" |
931 | 978 | ||
932 | #: plugins/check_http.c:744 | 979 | #: plugins/check_http.c:754 |
933 | #, c-format | 980 | #, c-format |
934 | msgid "HTTP WARNING: page size %d too small%s|%s\n" | 981 | msgid "HTTP WARNING: page size %d too small%s|%s\n" |
935 | msgstr "" | 982 | msgstr "" |
936 | 983 | ||
937 | #: plugins/check_http.c:749 | 984 | #: plugins/check_http.c:759 |
938 | #, c-format | 985 | #, c-format |
939 | msgid "HTTP OK %s - %d bytes in %.3f seconds %s%s|%s %s\n" | 986 | msgid "HTTP OK %s - %d bytes in %.3f seconds %s%s|%s %s\n" |
940 | msgstr "" | 987 | msgstr "" |
941 | 988 | ||
942 | #: plugins/check_http.c:785 | 989 | #: plugins/check_http.c:795 |
943 | msgid "ERROR: could not allocate addr\n" | 990 | msgid "ERROR: could not allocate addr\n" |
944 | msgstr "" | 991 | msgstr "" |
945 | 992 | ||
946 | #: plugins/check_http.c:789 plugins/check_http.c:809 | 993 | #: plugins/check_http.c:799 plugins/check_http.c:819 |
947 | msgid "ERROR: could not allocate url\n" | 994 | msgid "ERROR: could not allocate url\n" |
948 | msgstr "" | 995 | msgstr "" |
949 | 996 | ||
950 | #: plugins/check_http.c:799 | 997 | #: plugins/check_http.c:809 |
951 | #, c-format | 998 | #, c-format |
952 | msgid "UNKNOWN - Could not find redirect location - %s%s\n" | 999 | msgid "UNKNOWN - Could not find redirect location - %s%s\n" |
953 | msgstr "" | 1000 | msgstr "" |
954 | 1001 | ||
955 | #: plugins/check_http.c:852 | 1002 | #: plugins/check_http.c:862 |
956 | #, c-format | 1003 | #, c-format |
957 | msgid "UNKNOWN - Could not parse redirect location - %s%s\n" | 1004 | msgid "UNKNOWN - Could not parse redirect location - %s%s\n" |
958 | msgstr "" | 1005 | msgstr "" |
959 | 1006 | ||
960 | #: plugins/check_http.c:862 | 1007 | #: plugins/check_http.c:872 |
961 | #, c-format | 1008 | #, c-format |
962 | msgid "WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n" | 1009 | msgid "WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n" |
963 | msgstr "" | 1010 | msgstr "" |
964 | 1011 | ||
965 | #: plugins/check_http.c:870 | 1012 | #: plugins/check_http.c:880 |
966 | #, c-format | 1013 | #, c-format |
967 | msgid "WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n" | 1014 | msgid "WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n" |
968 | msgstr "" | 1015 | msgstr "" |
969 | 1016 | ||
970 | #: plugins/check_http.c:918 | 1017 | #: plugins/check_http.c:928 |
971 | #, c-format | 1018 | #, c-format |
972 | msgid "SSL seeding: %s\n" | 1019 | msgid "SSL seeding: %s\n" |
973 | msgstr "" | 1020 | msgstr "" |
974 | 1021 | ||
975 | #: plugins/check_http.c:918 | 1022 | #: plugins/check_http.c:928 |
976 | msgid "Failed" | 1023 | msgid "Failed" |
977 | msgstr "" | 1024 | msgstr "" |
978 | 1025 | ||
979 | #: plugins/check_http.c:925 | 1026 | #: plugins/check_http.c:935 |
980 | msgid "CRITICAL - Cannot create SSL context.\n" | 1027 | msgid "CRITICAL - Cannot create SSL context.\n" |
981 | msgstr "" | 1028 | msgstr "" |
982 | 1029 | ||
983 | #: plugins/check_http.c:949 | 1030 | #: plugins/check_http.c:959 |
984 | msgid "CRITICAL - Cannot initiate SSL handshake.\n" | 1031 | msgid "CRITICAL - Cannot initiate SSL handshake.\n" |
985 | msgstr "" | 1032 | msgstr "" |
986 | 1033 | ||
987 | #: plugins/check_http.c:977 plugins/check_http.c:989 | 1034 | #: plugins/check_http.c:987 plugins/check_http.c:999 |
988 | msgid "CRITICAL - Wrong time format in certificate.\n" | 1035 | msgid "CRITICAL - Wrong time format in certificate.\n" |
989 | msgstr "" | 1036 | msgstr "" |
990 | 1037 | ||
991 | #: plugins/check_http.c:1018 | 1038 | #: plugins/check_http.c:1028 |
992 | #, c-format | 1039 | #, c-format |
993 | msgid "WARNING - Certificate expires in %d day(s) (%s).\n" | 1040 | msgid "WARNING - Certificate expires in %d day(s) (%s).\n" |
994 | msgstr "" | 1041 | msgstr "" |
995 | 1042 | ||
996 | #: plugins/check_http.c:1022 | 1043 | #: plugins/check_http.c:1032 |
997 | #, c-format | 1044 | #, c-format |
998 | msgid "CRITICAL - Certificate expired on %s.\n" | 1045 | msgid "CRITICAL - Certificate expired on %s.\n" |
999 | msgstr "" | 1046 | msgstr "" |
1000 | 1047 | ||
1001 | #: plugins/check_http.c:1027 | 1048 | #: plugins/check_http.c:1037 |
1002 | #, c-format | 1049 | #, c-format |
1003 | msgid "WARNING - Certificate expires today (%s).\n" | 1050 | msgid "WARNING - Certificate expires today (%s).\n" |
1004 | msgstr "" | 1051 | msgstr "" |
1005 | 1052 | ||
1006 | #: plugins/check_http.c:1031 | 1053 | #: plugins/check_http.c:1041 |
1007 | #, c-format | 1054 | #, c-format |
1008 | msgid "OK - Certificate will expire on %s.\n" | 1055 | msgid "OK - Certificate will expire on %s.\n" |
1009 | msgstr "" | 1056 | msgstr "" |
1010 | 1057 | ||
1011 | #: plugins/check_http.c:1106 | 1058 | #: plugins/check_http.c:1116 |
1012 | msgid "" | 1059 | msgid "" |
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" |
1017 | msgstr "" | 1064 | msgstr "" |
1018 | 1065 | ||
1019 | #: plugins/check_http.c:1114 | 1066 | #: plugins/check_http.c:1124 |
1020 | msgid "NOTE: One or both of -H and -I must be specified\n" | 1067 | msgid "NOTE: One or both of -H and -I must be specified\n" |
1021 | msgstr "" | 1068 | msgstr "" |
1022 | 1069 | ||
1023 | #: plugins/check_http.c:1118 | 1070 | #: plugins/check_http.c:1128 |
1024 | #, c-format | 1071 | #, c-format |
1025 | msgid "" | 1072 | msgid "" |
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" |
1033 | msgstr "" | 1080 | msgstr "" |
1034 | 1081 | ||
1035 | #: plugins/check_http.c:1129 | 1082 | #: plugins/check_http.c:1139 |
1036 | msgid "" | 1083 | msgid "" |
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" |
1042 | msgstr "" | 1089 | msgstr "" |
1043 | 1090 | ||
1044 | #: plugins/check_http.c:1137 | 1091 | #: plugins/check_http.c:1147 |
1045 | #, c-format | 1092 | #, c-format |
1046 | msgid "" | 1093 | msgid "" |
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" | ||
1057 | msgstr "" | 1106 | msgstr "" |
1058 | 1107 | ||
1059 | #: plugins/check_http.c:1149 | 1108 | #: plugins/check_http.c:1161 |
1060 | msgid "" | 1109 | msgid "" |
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" |
1067 | msgstr "" | 1116 | msgstr "" |
1068 | 1117 | ||
1069 | #: plugins/check_http.c:1158 | 1118 | #: plugins/check_http.c:1170 |
1070 | msgid "" | 1119 | msgid "" |
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" |
1079 | msgstr "" | 1128 | msgstr "" |
1080 | 1129 | ||
1081 | #: plugins/check_http.c:1174 | 1130 | #: plugins/check_http.c:1186 |
1082 | msgid "" | 1131 | msgid "" |
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" |
1091 | msgstr "" | 1140 | msgstr "" |
1092 | 1141 | ||
1093 | #: plugins/check_http.c:1183 | 1142 | #: plugins/check_http.c:1195 |
1094 | msgid "" | 1143 | msgid "" |
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" |
1099 | msgstr "" | 1148 | msgstr "" |
1100 | 1149 | ||
1101 | #: plugins/check_http.c:1187 | 1150 | #: plugins/check_http.c:1199 |
1102 | msgid "" | 1151 | msgid "" |
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" |
1112 | msgstr "" | 1161 | msgstr "" |
1113 | 1162 | ||
1114 | #: plugins/check_http.c:1194 | 1163 | #: plugins/check_http.c:1206 |
1115 | msgid "" | 1164 | msgid "" |
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" |
1125 | msgstr "" | 1174 | msgstr "" |
1126 | 1175 | ||
1127 | #: plugins/check_http.c:1212 | 1176 | #: plugins/check_http.c:1224 |
1128 | #, c-format | 1177 | #, c-format |
1129 | msgid "" | 1178 | msgid "" |
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 "" | |||
1404 | msgid "Unable to process MRTG log file\n" | 1453 | msgid "Unable to process MRTG log file\n" |
1405 | msgstr "" | 1454 | msgstr "" |
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 |
1409 | msgid "MRTG data has expired (%d minutes old)\n" | 1458 | msgid "MRTG data has expired (%d minutes old)\n" |
1410 | msgstr "" | 1459 | msgstr "" |
1411 | 1460 | ||
1412 | #: plugins/check_mrtg.c:143 | 1461 | #: plugins/check_mrtg.c:141 plugins/check_mrtgtraf.c:179 |
1413 | msgid "Ave" | 1462 | #: plugins/check_mrtgtraf.c:180 |
1463 | msgid "Avg" | ||
1414 | msgstr "" | 1464 | msgstr "" |
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 | ||
1419 | msgid "Max" | 1468 | msgid "Max" |
1420 | msgstr "" | 1469 | msgstr "" |
1421 | 1470 | ||
1422 | #: plugins/check_mrtg.c:207 plugins/check_mrtg.c:259 | 1471 | #: plugins/check_mrtg.c:211 plugins/check_mrtg.c:263 |
1423 | msgid "Invalid variable number\n" | 1472 | msgid "Invalid variable number\n" |
1424 | msgstr "" | 1473 | msgstr "" |
1425 | 1474 | ||
1426 | #: plugins/check_mrtg.c:242 | 1475 | #: plugins/check_mrtg.c:246 |
1427 | #, c-format | 1476 | #, c-format |
1428 | msgid "" | 1477 | msgid "" |
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" |
1431 | msgstr "" | 1480 | msgstr "" |
1432 | 1481 | ||
1433 | #: plugins/check_mrtg.c:286 | 1482 | #: plugins/check_mrtg.c:290 |
1434 | msgid "You must supply the variable number\n" | 1483 | msgid "You must supply the variable number\n" |
1435 | msgstr "" | 1484 | msgstr "" |
1436 | 1485 | ||
1437 | #: plugins/check_mrtg.c:310 | 1486 | #: plugins/check_mrtg.c:314 |
1438 | msgid "" | 1487 | msgid "" |
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" |
1441 | msgstr "" | 1490 | msgstr "" |
1442 | 1491 | ||
1443 | #: plugins/check_mrtg.c:318 | 1492 | #: plugins/check_mrtg.c:322 |
1444 | msgid "" | 1493 | msgid "" |
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" |
1457 | msgstr "" | 1506 | msgstr "" |
1458 | 1507 | ||
1459 | #: plugins/check_mrtg.c:332 | 1508 | #: plugins/check_mrtg.c:336 |
1460 | #, c-format | 1509 | #, c-format |
1461 | msgid "" | 1510 | msgid "" |
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" |
1467 | msgstr "" | 1516 | msgstr "" |
1468 | 1517 | ||
1469 | #: plugins/check_mrtg.c:339 | 1518 | #: plugins/check_mrtg.c:343 |
1470 | msgid "" | 1519 | msgid "" |
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" |
1476 | msgstr "" | 1525 | msgstr "" |
1477 | 1526 | ||
1478 | #: plugins/check_mrtg.c:345 | 1527 | #: plugins/check_mrtg.c:349 |
1479 | msgid "" | 1528 | msgid "" |
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" |
1488 | msgstr "" | 1537 | msgstr "" |
1489 | 1538 | ||
1490 | #: plugins/check_mrtg.c:352 | 1539 | #: plugins/check_mrtg.c:356 |
1491 | msgid "" | 1540 | msgid "" |
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" |
1500 | msgstr "" | 1549 | msgstr "" |
1501 | 1550 | ||
1502 | #: plugins/check_mrtg.c:372 | 1551 | #: plugins/check_mrtg.c:376 |
1503 | #, c-format | 1552 | #, c-format |
1504 | msgid "" | 1553 | msgid "" |
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" |
1507 | msgstr "" | 1556 | msgstr "" |
1508 | 1557 | ||
1509 | #: plugins/check_mrtgtraf.c:174 | 1558 | #: plugins/check_mrtgtraf.c:178 |
1510 | #, c-format | 1559 | #, c-format |
1511 | msgid "Traffic CRITICAL %s. In = %0.1f %s, %s. Out = %0.1f %s" | 1560 | msgid "%s. In = %0.1f %s, %s. Out = %0.1f %s|%s %s\n" |
1512 | msgstr "" | 1561 | msgstr "" |
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 | ||
1517 | msgid "Avg" | ||
1518 | msgstr "" | ||
1519 | |||
1520 | #: plugins/check_mrtgtraf.c:182 | ||
1521 | #, c-format | ||
1522 | msgid "Traffic WARNING %s. In = %0.1f %s, %s. Out = %0.1f %s" | ||
1523 | msgstr "" | ||
1524 | |||
1525 | #: plugins/check_mrtgtraf.c:188 | ||
1526 | #, c-format | 1564 | #, c-format |
1527 | msgid "Traffic OK - %s. In = %0.1f %s, %s. Out = %0.1f %s\n" | 1565 | msgid "Traffic %s - %s\n" |
1528 | msgstr "" | 1566 | msgstr "" |
1529 | 1567 | ||
1530 | #: plugins/check_mrtgtraf.c:193 | 1568 | #: plugins/check_mrtgtraf.c:330 |
1531 | #, c-format | ||
1532 | msgid "UNKNOWN %s\n" | ||
1533 | msgstr "" | ||
1534 | |||
1535 | #: plugins/check_mrtgtraf.c:332 | ||
1536 | msgid "" | 1569 | msgid "" |
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" |
1547 | msgstr "" | 1580 | msgstr "" |
1548 | 1581 | ||
1549 | #: plugins/check_mrtgtraf.c:344 | 1582 | #: plugins/check_mrtgtraf.c:342 |
1550 | msgid "" | 1583 | msgid "" |
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" |
1559 | msgstr "" | 1592 | msgstr "" |
1560 | 1593 | ||
1561 | #: plugins/check_mrtgtraf.c:352 | 1594 | #: plugins/check_mrtgtraf.c:350 |
1562 | msgid "" | 1595 | msgid "" |
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" |
1571 | msgstr "" | 1604 | msgstr "" |
1572 | 1605 | ||
1573 | #: plugins/check_mrtgtraf.c:370 | 1606 | #: plugins/check_mrtgtraf.c:368 |
1574 | #, c-format | 1607 | #, c-format |
1575 | msgid "" | 1608 | msgid "" |
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 "" | |||
1607 | msgid "Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n" | 1640 | msgid "Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n" |
1608 | msgstr "" | 1641 | msgstr "" |
1609 | 1642 | ||
1610 | #: plugins/check_nagios.c:78 | 1643 | #: plugins/check_nagios.c:81 |
1611 | msgid "Error: Cannot open status log for reading!\n" | 1644 | msgid "Error: Cannot open status log for reading!\n" |
1612 | msgstr "" | 1645 | msgstr "" |
1613 | 1646 | ||
1614 | #: plugins/check_nagios.c:116 | 1647 | #: plugins/check_nagios.c:138 |
1615 | #, c-format | 1648 | #, c-format |
1616 | msgid "Found process: %s\n" | 1649 | msgid "Found process: %s %s\n" |
1617 | msgstr "" | 1650 | msgstr "" |
1618 | 1651 | ||
1619 | #: plugins/check_nagios.c:136 | 1652 | #: plugins/check_nagios.c:159 |
1620 | msgid "Could not locate a running Nagios process!\n" | 1653 | msgid "Could not locate a running Nagios process!\n" |
1621 | msgstr "" | 1654 | msgstr "" |
1622 | 1655 | ||
1623 | #: plugins/check_nagios.c:147 | 1656 | #: plugins/check_nagios.c:170 |
1624 | #, c-format | 1657 | #, c-format |
1625 | msgid "Nagios %s: located %d process%s, status log updated %d second%s ago\n" | 1658 | msgid "Nagios %s: located %d process%s, status log updated %d second%s ago\n" |
1626 | msgstr "" | 1659 | msgstr "" |
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 |
1630 | msgid "" | 1663 | msgid "" |
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" |
1633 | msgstr "" | 1666 | msgstr "" |
1634 | 1667 | ||
1635 | #: plugins/check_nagios.c:200 | 1668 | #: plugins/check_nagios.c:223 |
1636 | #, c-format | 1669 | #, c-format |
1637 | msgid "" | 1670 | msgid "" |
1638 | "%s: Unknown argument: %c\n" | 1671 | "%s: Unknown argument: %c\n" |
1639 | "\n" | 1672 | "\n" |
1640 | msgstr "" | 1673 | msgstr "" |
1641 | 1674 | ||
1642 | #: plugins/check_nagios.c:232 | 1675 | #: plugins/check_nagios.c:255 |
1643 | #, c-format | 1676 | #, c-format |
1644 | msgid "" | 1677 | msgid "" |
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" |
1647 | msgstr "" | 1680 | msgstr "" |
1648 | 1681 | ||
1649 | #: plugins/check_nagios.c:236 | 1682 | #: plugins/check_nagios.c:259 |
1650 | #, c-format | 1683 | #, c-format |
1651 | msgid "" | 1684 | msgid "" |
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" |
1654 | msgstr "" | 1687 | msgstr "" |
1655 | 1688 | ||
1656 | #: plugins/check_nagios.c:254 | 1689 | #: plugins/check_nagios.c:277 |
1657 | msgid "" | 1690 | msgid "" |
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" |
1666 | msgstr "" | 1699 | msgstr "" |
1667 | 1700 | ||
1668 | #: plugins/check_nagios.c:265 | 1701 | #: plugins/check_nagios.c:288 |
1669 | msgid "" | 1702 | msgid "" |
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" |
1676 | msgstr "" | 1709 | msgstr "" |
1677 | 1710 | ||
1678 | #: plugins/check_nagios.c:273 | 1711 | #: plugins/check_nagios.c:296 |
1679 | msgid "" | 1712 | msgid "" |
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" |
1683 | msgstr "" | 1716 | msgstr "" |
1684 | 1717 | ||
1685 | #: plugins/check_nagios.c:286 | 1718 | #: plugins/check_nagios.c:309 |
1686 | #, c-format | 1719 | #, c-format |
1687 | msgid "" | 1720 | msgid "" |
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" |
1689 | msgstr "" | 1722 | msgstr "" |
1690 | 1723 | ||
1691 | #: plugins/check_nt.c:118 | 1724 | #: plugins/check_nt.c:127 |
1692 | #, c-format | 1725 | #, c-format |
1693 | msgid "Wrong client version - running: %s, required: %s" | 1726 | msgid "Wrong client version - running: %s, required: %s" |
1694 | msgstr "" | 1727 | msgstr "" |
1695 | 1728 | ||
1696 | #: plugins/check_nt.c:129 plugins/check_nt.c:182 | 1729 | #: plugins/check_nt.c:138 plugins/check_nt.c:198 |
1697 | msgid "missing -l parameters" | 1730 | msgid "missing -l parameters" |
1698 | msgstr "" | 1731 | msgstr "" |
1699 | 1732 | ||
1700 | #: plugins/check_nt.c:131 | 1733 | #: plugins/check_nt.c:140 |
1701 | msgid "wrong -l parameter." | 1734 | msgid "wrong -l parameter." |
1702 | msgstr "" | 1735 | msgstr "" |
1703 | 1736 | ||
1704 | #: plugins/check_nt.c:135 | 1737 | #: plugins/check_nt.c:144 |
1705 | msgid "CPU Load" | 1738 | msgid "CPU Load" |
1706 | msgstr "" | 1739 | msgstr "" |
1707 | 1740 | ||
1708 | #: plugins/check_nt.c:156 | 1741 | #: plugins/check_nt.c:145 |
1742 | msgid " " | ||
1743 | msgstr "" | ||
1744 | |||
1745 | #: plugins/check_nt.c:167 | ||
1709 | #, c-format | 1746 | #, c-format |
1710 | msgid " %lu%% (%lu min average)" | 1747 | msgid " %lu%% (%lu min average)" |
1711 | msgstr "" | 1748 | msgstr "" |
1712 | 1749 | ||
1713 | #: plugins/check_nt.c:163 | 1750 | #: plugins/check_nt.c:169 |
1751 | #, c-format | ||
1752 | msgid " '%lu min avg Load'=%lu%%;%lu;%lu;0;100" | ||
1753 | msgstr "" | ||
1754 | |||
1755 | #: plugins/check_nt.c:179 | ||
1714 | msgid "not enough values for -l parameters" | 1756 | msgid "not enough values for -l parameters" |
1715 | msgstr "" | 1757 | msgstr "" |
1716 | 1758 | ||
1717 | #: plugins/check_nt.c:175 | 1759 | #: plugins/check_nt.c:191 |
1718 | #, c-format | 1760 | #, c-format |
1719 | msgid "System Uptime : %u day(s) %u hour(s) %u minute(s)" | 1761 | msgid "System Uptime : %u day(s) %u hour(s) %u minute(s)" |
1720 | msgstr "" | 1762 | msgstr "" |
1721 | 1763 | ||
1722 | #: plugins/check_nt.c:184 | 1764 | #: plugins/check_nt.c:200 |
1723 | msgid "wrong -l argument" | 1765 | msgid "wrong -l argument" |
1724 | msgstr "" | 1766 | msgstr "" |
1725 | 1767 | ||
1726 | #: plugins/check_nt.c:193 | 1768 | #: plugins/check_nt.c:211 |
1727 | #, c-format | 1769 | #, c-format |
1728 | msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)" | 1770 | msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)" |
1729 | msgstr "" | 1771 | msgstr "" |
1730 | 1772 | ||
1731 | #: plugins/check_nt.c:208 | 1773 | #: plugins/check_nt.c:214 |
1774 | #, c-format | ||
1775 | msgid "'%s:\\ Used Space'=%.2fGb;%.2f;%.2f;0.00;%.2f" | ||
1776 | msgstr "" | ||
1777 | |||
1778 | #: plugins/check_nt.c:228 | ||
1732 | msgid "Free disk space : Invalid drive " | 1779 | msgid "Free disk space : Invalid drive " |
1733 | msgstr "" | 1780 | msgstr "" |
1734 | 1781 | ||
1735 | #: plugins/check_nt.c:218 | 1782 | #: plugins/check_nt.c:238 |
1736 | msgid "No service/process specified" | 1783 | msgid "No service/process specified" |
1737 | msgstr "" | 1784 | msgstr "" |
1738 | 1785 | ||
1739 | #: plugins/check_nt.c:222 | 1786 | #: plugins/check_nt.c:242 |
1740 | msgid "ShowAll" | 1787 | msgid "ShowAll" |
1741 | msgstr "" | 1788 | msgstr "" |
1742 | 1789 | ||
1743 | #: plugins/check_nt.c:222 | 1790 | #: plugins/check_nt.c:242 |
1744 | msgid "ShowFail" | 1791 | msgid "ShowFail" |
1745 | msgstr "" | 1792 | msgstr "" |
1746 | 1793 | ||
1747 | #: plugins/check_nt.c:237 | 1794 | #: plugins/check_nt.c:262 |
1748 | #, c-format | 1795 | #, c-format |
1749 | msgid "" | 1796 | msgid "" |
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%%)" |
1751 | msgstr "" | 1798 | msgstr "" |
1752 | 1799 | ||
1753 | #: plugins/check_nt.c:253 plugins/check_nt.c:289 | 1800 | #: plugins/check_nt.c:265 |
1801 | #, c-format | ||
1802 | msgid "'Memory usage'=%.2fMb;%.2f;%.2f;0.00;%.2f" | ||
1803 | msgstr "" | ||
1804 | |||
1805 | #: plugins/check_nt.c:301 plugins/check_nt.c:383 | ||
1754 | msgid "No counter specified" | 1806 | msgid "No counter specified" |
1755 | msgstr "" | 1807 | msgstr "" |
1756 | 1808 | ||
1757 | #: plugins/check_nt.c:319 | 1809 | #: plugins/check_nt.c:319 |
1810 | msgid "%" | ||
1811 | msgstr "" | ||
1812 | |||
1813 | #: plugins/check_nt.c:334 | ||
1814 | msgid "Minimum value contains non-numbers" | ||
1815 | msgstr "" | ||
1816 | |||
1817 | #: plugins/check_nt.c:338 | ||
1818 | msgid "Maximum value contains non-numbers" | ||
1819 | msgstr "" | ||
1820 | |||
1821 | #: plugins/check_nt.c:345 | ||
1822 | msgid "No unit counter specified" | ||
1823 | msgstr "" | ||
1824 | |||
1825 | #: plugins/check_nt.c:413 | ||
1758 | msgid "Please specify a variable to check" | 1826 | msgid "Please specify a variable to check" |
1759 | msgstr "" | 1827 | msgstr "" |
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 |
1764 | msgid "" | 1832 | msgid "" |
@@ -1766,11 +1834,11 @@ msgid "" | |||
1766 | "Type '%s -h' for additional help\n" | 1834 | "Type '%s -h' for additional help\n" |
1767 | msgstr "" | 1835 | msgstr "" |
1768 | 1836 | ||
1769 | #: plugins/check_nt.c:457 | 1837 | #: plugins/check_nt.c:553 |
1770 | msgid "None" | 1838 | msgid "None" |
1771 | msgstr "" | 1839 | msgstr "" |
1772 | 1840 | ||
1773 | #: plugins/check_nt.c:516 | 1841 | #: plugins/check_nt.c:612 |
1774 | msgid "" | 1842 | msgid "" |
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" |
1780 | msgstr "" | 1848 | msgstr "" |
1781 | 1849 | ||
1782 | #: plugins/check_nt.c:521 | 1850 | #: plugins/check_nt.c:617 |
1783 | #, c-format | 1851 | #, c-format |
1784 | msgid "" | 1852 | msgid "" |
1785 | "\n" | 1853 | "\n" |
@@ -1802,19 +1870,19 @@ msgid "" | |||
1802 | " Print version information\n" | 1870 | " Print version information\n" |
1803 | msgstr "" | 1871 | msgstr "" |
1804 | 1872 | ||
1805 | #: plugins/check_nt.c:539 | 1873 | #: plugins/check_nt.c:635 |
1806 | msgid "" | 1874 | msgid "" |
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" |
1809 | msgstr "" | 1877 | msgstr "" |
1810 | 1878 | ||
1811 | #: plugins/check_nt.c:542 | 1879 | #: plugins/check_nt.c:638 |
1812 | msgid "" | 1880 | msgid "" |
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" |
1815 | msgstr "" | 1883 | msgstr "" |
1816 | 1884 | ||
1817 | #: plugins/check_nt.c:545 | 1885 | #: plugins/check_nt.c:641 |
1818 | msgid "" | 1886 | msgid "" |
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" |
1826 | msgstr "" | 1894 | msgstr "" |
1827 | 1895 | ||
1828 | #: plugins/check_nt.c:552 | 1896 | #: plugins/check_nt.c:648 |
1829 | msgid "" | 1897 | msgid "" |
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" |
1832 | msgstr "" | 1900 | msgstr "" |
1833 | 1901 | ||
1834 | #: plugins/check_nt.c:555 | 1902 | #: plugins/check_nt.c:651 |
1835 | msgid "" | 1903 | msgid "" |
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" |
1839 | msgstr "" | 1907 | msgstr "" |
1840 | 1908 | ||
1841 | #: plugins/check_nt.c:559 | 1909 | #: plugins/check_nt.c:655 |
1842 | msgid "" | 1910 | msgid "" |
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" |
1845 | msgstr "" | 1913 | msgstr "" |
1846 | 1914 | ||
1847 | #: plugins/check_nt.c:562 | 1915 | #: plugins/check_nt.c:658 |
1848 | msgid "" | 1916 | msgid "" |
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" |
1854 | msgstr "" | 1922 | msgstr "" |
1855 | 1923 | ||
1856 | #: plugins/check_nt.c:568 | 1924 | #: plugins/check_nt.c:664 |
1857 | msgid "" | 1925 | msgid "" |
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" |
1860 | msgstr "" | 1928 | msgstr "" |
1861 | 1929 | ||
1862 | #: plugins/check_nt.c:571 | 1930 | #: plugins/check_nt.c:667 |
1863 | #, c-format | 1931 | #, c-format |
1864 | msgid "" | 1932 | msgid "" |
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" |
1873 | msgstr "" | 1941 | msgstr "" |
1874 | 1942 | ||
1875 | #: plugins/check_nt.c:580 | 1943 | #: plugins/check_nt.c:676 |
1876 | msgid "" | 1944 | msgid "" |
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" |
1882 | msgstr "" | 1950 | msgstr "" |
1883 | 1951 | ||
1884 | #: plugins/check_nt.c:591 | 1952 | #: plugins/check_nt.c:687 |
1885 | #, c-format | 1953 | #, c-format |
1886 | msgid "" | 1954 | msgid "" |
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" |
1889 | msgstr "" | 1957 | msgstr "" |
1890 | 1958 | ||
1891 | #: plugins/check_nwstat.c:143 | 1959 | #: plugins/check_nwstat.c:147 |
1892 | #, c-format | 1960 | #, c-format |
1893 | msgid "NetWare %s: " | 1961 | msgid "NetWare %s: " |
1894 | msgstr "" | 1962 | msgstr "" |
1895 | 1963 | ||
1896 | #: plugins/check_nwstat.c:174 | 1964 | #: plugins/check_nwstat.c:178 |
1897 | #, c-format | 1965 | #, c-format |
1898 | msgid "Up %s," | 1966 | msgid "Up %s," |
1899 | msgstr "" | 1967 | msgstr "" |
1900 | 1968 | ||
1901 | #: plugins/check_nwstat.c:182 | 1969 | #: plugins/check_nwstat.c:186 |
1902 | #, c-format | 1970 | #, c-format |
1903 | msgid "Load %s - %s %s-min load average = %lu%%" | 1971 | msgid "Load %s - %s %s-min load average = %lu%%" |
1904 | msgstr "" | 1972 | msgstr "" |
1905 | 1973 | ||
1906 | #: plugins/check_nwstat.c:203 | 1974 | #: plugins/check_nwstat.c:207 |
1907 | #, c-format | 1975 | #, c-format |
1908 | msgid "Conns %s - %lu current connections" | 1976 | msgid "Conns %s - %lu current connections" |
1909 | msgstr "" | 1977 | msgstr "" |
1910 | 1978 | ||
1911 | #: plugins/check_nwstat.c:222 | 1979 | #: plugins/check_nwstat.c:226 |
1912 | #, c-format | 1980 | #, c-format |
1913 | msgid "%s: Long term cache hits = %lu%%" | 1981 | msgid "%s: Long term cache hits = %lu%%" |
1914 | msgstr "" | 1982 | msgstr "" |
1915 | 1983 | ||
1916 | #: plugins/check_nwstat.c:241 | 1984 | #: plugins/check_nwstat.c:245 |
1917 | #, c-format | 1985 | #, c-format |
1918 | msgid "%s: Total cache buffers = %lu" | 1986 | msgid "%s: Total cache buffers = %lu" |
1919 | msgstr "" | 1987 | msgstr "" |
1920 | 1988 | ||
1921 | #: plugins/check_nwstat.c:260 | 1989 | #: plugins/check_nwstat.c:264 |
1922 | #, c-format | 1990 | #, c-format |
1923 | msgid "%s: Dirty cache buffers = %lu" | 1991 | msgid "%s: Dirty cache buffers = %lu" |
1924 | msgstr "" | 1992 | msgstr "" |
1925 | 1993 | ||
1926 | #: plugins/check_nwstat.c:279 | 1994 | #: plugins/check_nwstat.c:283 |
1927 | #, c-format | 1995 | #, c-format |
1928 | msgid "%s: LRU sitting time = %lu minutes" | 1996 | msgid "%s: LRU sitting time = %lu minutes" |
1929 | msgstr "" | 1997 | msgstr "" |
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 |
1935 | msgid "Error: Volume '%s' does not exist!" | 2003 | msgid "Error: Volume '%s' does not exist!" |
1936 | msgstr "" | 2004 | msgstr "" |
1937 | 2005 | ||
1938 | #: plugins/check_nwstat.c:302 | 2006 | #: plugins/check_nwstat.c:306 |
1939 | #, c-format | 2007 | #, c-format |
1940 | msgid "%s%lu KB free on volume %s" | 2008 | msgid "%s%lu KB free on volume %s" |
1941 | msgstr "" | 2009 | msgstr "" |
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 |
1945 | msgid "Only " | 2013 | msgid "Only " |
1946 | msgstr "" | 2014 | msgstr "" |
1947 | 2015 | ||
1948 | #: plugins/check_nwstat.c:338 | 2016 | #: plugins/check_nwstat.c:342 |
1949 | #, c-format | 2017 | #, c-format |
1950 | msgid "%lu MB (%lu%%) free on volume %s" | 2018 | msgid "%lu MB (%lu%%) free on volume %s" |
1951 | msgstr "" | 2019 | msgstr "" |
1952 | 2020 | ||
1953 | #: plugins/check_nwstat.c:357 | 2021 | #: plugins/check_nwstat.c:361 |
1954 | #, c-format | 2022 | #, c-format |
1955 | msgid "Directory Services Database is %s (DS version %s)" | 2023 | msgid "Directory Services Database is %s (DS version %s)" |
1956 | msgstr "" | 2024 | msgstr "" |
1957 | 2025 | ||
1958 | #: plugins/check_nwstat.c:371 | 2026 | #: plugins/check_nwstat.c:375 |
1959 | #, c-format | 2027 | #, c-format |
1960 | msgid "Logins are %s" | 2028 | msgid "Logins are %s" |
1961 | msgstr "" | 2029 | msgstr "" |
1962 | 2030 | ||
1963 | #: plugins/check_nwstat.c:371 | 2031 | #: plugins/check_nwstat.c:375 |
1964 | msgid "enabled" | 2032 | msgid "enabled" |
1965 | msgstr "" | 2033 | msgstr "" |
1966 | 2034 | ||
1967 | #: plugins/check_nwstat.c:371 | 2035 | #: plugins/check_nwstat.c:375 |
1968 | msgid "disabled" | 2036 | msgid "disabled" |
1969 | msgstr "" | 2037 | msgstr "" |
1970 | 2038 | ||
1971 | #: plugins/check_nwstat.c:404 | 2039 | #: plugins/check_nwstat.c:408 |
1972 | #, c-format | 2040 | #, c-format |
1973 | msgid "%lu of %lu (%lu%%) packet receive buffers used" | 2041 | msgid "%lu of %lu (%lu%%) packet receive buffers used" |
1974 | msgstr "" | 2042 | msgstr "" |
1975 | 2043 | ||
1976 | #: plugins/check_nwstat.c:425 | 2044 | #: plugins/check_nwstat.c:429 |
1977 | #, c-format | 2045 | #, c-format |
1978 | msgid "%lu entries in SAP table" | 2046 | msgid "%lu entries in SAP table" |
1979 | msgstr "" | 2047 | msgstr "" |
1980 | 2048 | ||
1981 | #: plugins/check_nwstat.c:427 | 2049 | #: plugins/check_nwstat.c:431 |
1982 | #, c-format | 2050 | #, c-format |
1983 | msgid "%lu entries in SAP table for SAP type %d" | 2051 | msgid "%lu entries in SAP table for SAP type %d" |
1984 | msgstr "" | 2052 | msgstr "" |
1985 | 2053 | ||
1986 | #: plugins/check_nwstat.c:446 | 2054 | #: plugins/check_nwstat.c:450 |
1987 | #, c-format | 2055 | #, c-format |
1988 | msgid "%s%lu KB purgeable on volume %s" | 2056 | msgid "%s%lu KB purgeable on volume %s" |
1989 | msgstr "" | 2057 | msgstr "" |
1990 | 2058 | ||
1991 | #: plugins/check_nwstat.c:479 | 2059 | #: plugins/check_nwstat.c:483 |
1992 | #, c-format | 2060 | #, c-format |
1993 | msgid "%lu MB (%lu%%) purgeable on volume %s" | 2061 | msgid "%lu MB (%lu%%) purgeable on volume %s" |
1994 | msgstr "" | 2062 | msgstr "" |
1995 | 2063 | ||
1996 | #: plugins/check_nwstat.c:499 | 2064 | #: plugins/check_nwstat.c:503 |
1997 | #, c-format | 2065 | #, c-format |
1998 | msgid "%s%lu KB not yet purgeable on volume %s" | 2066 | msgid "%s%lu KB not yet purgeable on volume %s" |
1999 | msgstr "" | 2067 | msgstr "" |
2000 | 2068 | ||
2001 | #: plugins/check_nwstat.c:532 | 2069 | #: plugins/check_nwstat.c:536 |
2002 | #, c-format | 2070 | #, c-format |
2003 | msgid "%lu MB (%lu%%) not yet purgeable on volume %s" | 2071 | msgid "%lu MB (%lu%%) not yet purgeable on volume %s" |
2004 | msgstr "" | 2072 | msgstr "" |
2005 | 2073 | ||
2006 | #: plugins/check_nwstat.c:550 | 2074 | #: plugins/check_nwstat.c:554 |
2007 | #, c-format | 2075 | #, c-format |
2008 | msgid "%lu open files" | 2076 | msgid "%lu open files" |
2009 | msgstr "" | 2077 | msgstr "" |
2010 | 2078 | ||
2011 | #: plugins/check_nwstat.c:567 | 2079 | #: plugins/check_nwstat.c:571 |
2012 | #, c-format | 2080 | #, c-format |
2013 | msgid "%lu abended threads" | 2081 | msgid "%lu abended threads" |
2014 | msgstr "" | 2082 | msgstr "" |
2015 | 2083 | ||
2016 | #: plugins/check_nwstat.c:592 | 2084 | #: plugins/check_nwstat.c:596 |
2017 | #, c-format | 2085 | #, c-format |
2018 | msgid "%lu current service processes (%lu max)" | 2086 | msgid "%lu current service processes (%lu max)" |
2019 | msgstr "" | 2087 | msgstr "" |
2020 | 2088 | ||
2021 | #: plugins/check_nwstat.c:608 | 2089 | #: plugins/check_nwstat.c:612 |
2022 | msgid "Critical: Time not in sync with network!" | 2090 | msgid "Critical: Time not in sync with network!" |
2023 | msgstr "" | 2091 | msgstr "" |
2024 | 2092 | ||
2025 | #: plugins/check_nwstat.c:611 | 2093 | #: plugins/check_nwstat.c:615 |
2026 | msgid "OK! Time in sync with network!" | 2094 | msgid "OK! Time in sync with network!" |
2027 | msgstr "" | 2095 | msgstr "" |
2028 | 2096 | ||
2029 | #: plugins/check_nwstat.c:627 | 2097 | #: plugins/check_nwstat.c:631 |
2030 | #, c-format | 2098 | #, c-format |
2031 | msgid "LRU sitting time = %lu seconds" | 2099 | msgid "LRU sitting time = %lu seconds" |
2032 | msgstr "" | 2100 | msgstr "" |
2033 | 2101 | ||
2034 | #: plugins/check_nwstat.c:643 | 2102 | #: plugins/check_nwstat.c:647 |
2035 | #, c-format | 2103 | #, c-format |
2036 | msgid "dirty cache buffers = %lu%% of the total" | 2104 | msgid "dirty cache buffers = %lu%% of the total" |
2037 | msgstr "" | 2105 | msgstr "" |
2038 | 2106 | ||
2039 | #: plugins/check_nwstat.c:658 | 2107 | #: plugins/check_nwstat.c:662 |
2040 | #, c-format | 2108 | #, c-format |
2041 | msgid "total cache buffers = %lu%% of the original" | 2109 | msgid "total cache buffers = %lu%% of the original" |
2042 | msgstr "" | 2110 | msgstr "" |
2043 | 2111 | ||
2044 | #: plugins/check_nwstat.c:668 | 2112 | #: plugins/check_nwstat.c:672 |
2045 | #, c-format | 2113 | #, c-format |
2046 | msgid "NDS Version %s" | 2114 | msgid "NDS Version %s" |
2047 | msgstr "" | 2115 | msgstr "" |
2048 | 2116 | ||
2049 | #: plugins/check_nwstat.c:677 | 2117 | #: plugins/check_nwstat.c:681 |
2050 | #, c-format | 2118 | #, c-format |
2051 | msgid "Up %s" | 2119 | msgid "Up %s" |
2052 | msgstr "" | 2120 | msgstr "" |
2053 | 2121 | ||
2054 | #: plugins/check_nwstat.c:687 | 2122 | #: plugins/check_nwstat.c:691 |
2055 | #, c-format | 2123 | #, c-format |
2056 | msgid "Module %s version %s is loaded" | 2124 | msgid "Module %s version %s is loaded" |
2057 | msgstr "" | 2125 | msgstr "" |
2058 | 2126 | ||
2059 | #: plugins/check_nwstat.c:690 | 2127 | #: plugins/check_nwstat.c:694 |
2060 | #, c-format | 2128 | #, c-format |
2061 | msgid "Module %s is not loaded" | 2129 | msgid "Module %s is not loaded" |
2062 | msgstr "" | 2130 | msgstr "" |
2063 | 2131 | ||
2064 | #: plugins/check_nwstat.c:695 plugins/check_overcr.c:270 | 2132 | #: plugins/check_nwstat.c:699 plugins/check_overcr.c:270 |
2065 | msgid "Nothing to check!\n" | 2133 | msgid "Nothing to check!\n" |
2066 | msgstr "" | 2134 | msgstr "" |
2067 | 2135 | ||
2068 | #: plugins/check_nwstat.c:906 | 2136 | #: plugins/check_nwstat.c:912 |
2069 | #, c-format | 2137 | #, c-format |
2070 | msgid "" | 2138 | msgid "" |
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" |
2074 | msgstr "" | 2142 | msgstr "" |
2075 | 2143 | ||
2076 | #: plugins/check_nwstat.c:917 | 2144 | #: plugins/check_nwstat.c:923 |
2077 | msgid "" | 2145 | msgid "" |
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" |
2086 | msgstr "" | 2154 | msgstr "" |
2087 | 2155 | ||
2088 | #: plugins/check_nwstat.c:927 | 2156 | #: plugins/check_nwstat.c:933 |
2089 | msgid "" | 2157 | msgid "" |
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" |
2095 | msgstr "" | 2163 | msgstr "" |
2096 | 2164 | ||
2097 | #: plugins/check_nwstat.c:934 | 2165 | #: plugins/check_nwstat.c:940 |
2098 | msgid "" | 2166 | msgid "" |
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" |
2106 | msgstr "" | 2174 | msgstr "" |
2107 | 2175 | ||
2108 | #: plugins/check_nwstat.c:943 | 2176 | #: plugins/check_nwstat.c:949 |
2109 | msgid "" | 2177 | msgid "" |
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" |
2118 | msgstr "" | 2186 | msgstr "" |
2119 | 2187 | ||
2120 | #: plugins/check_nwstat.c:953 | 2188 | #: plugins/check_nwstat.c:959 |
2121 | msgid "" | 2189 | msgid "" |
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" |
2127 | msgstr "" | 2195 | msgstr "" |
2128 | 2196 | ||
2129 | #: plugins/check_nwstat.c:960 | 2197 | #: plugins/check_nwstat.c:966 |
2130 | msgid "" | 2198 | msgid "" |
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" |
2137 | msgstr "" | 2205 | msgstr "" |
2138 | 2206 | ||
2139 | #: plugins/check_nwstat.c:970 | 2207 | #: plugins/check_nwstat.c:976 |
2140 | msgid "" | 2208 | msgid "" |
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" |
2149 | msgstr "" | 2217 | msgstr "" |
2150 | 2218 | ||
2151 | #: plugins/check_nwstat.c:987 | 2219 | #: plugins/check_nwstat.c:993 |
2152 | #, c-format | 2220 | #, c-format |
2153 | msgid "" | 2221 | msgid "" |
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 "" | |||
2265 | msgid "PGSQL: CRITICAL - no connection to '%s' (%s).\n" | 2333 | msgid "PGSQL: CRITICAL - no connection to '%s' (%s).\n" |
2266 | msgstr "" | 2334 | msgstr "" |
2267 | 2335 | ||
2268 | #: plugins/check_pgsql.c:161 | 2336 | #: plugins/check_pgsql.c:169 |
2269 | #, c-format | 2337 | #, c-format |
2270 | msgid "PGSQL: CRITICAL - database %s (%d sec.)\n" | 2338 | msgid "PGSQL: %s - database %s (%d sec.)|%s\n" |
2271 | msgstr "" | 2339 | msgstr "" |
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 | ||
2275 | msgid "PGSQL: WARNING - database %s (%d sec.)\n" | ||
2276 | msgstr "" | ||
2277 | |||
2278 | #: plugins/check_pgsql.c:172 | ||
2279 | #, c-format | ||
2280 | msgid "PGSQL: ok - database %s (%d sec.)\n" | ||
2281 | msgstr "" | ||
2282 | |||
2283 | #: plugins/check_pgsql.c:220 plugins/check_snmp.c:449 plugins/negate.c:183 | ||
2284 | msgid "Timeout Interval must be an integer" | 2342 | msgid "Timeout Interval must be an integer" |
2285 | msgstr "" | 2343 | msgstr "" |
2286 | 2344 | ||
2287 | #: plugins/check_pgsql.c:226 plugins/check_pgsql.c:232 | 2345 | #: plugins/check_pgsql.c:225 plugins/check_pgsql.c:231 |
2288 | msgid "Invalid critical threshold" | 2346 | msgid "Invalid critical threshold" |
2289 | msgstr "" | 2347 | msgstr "" |
2290 | 2348 | ||
2291 | #: plugins/check_pgsql.c:238 | 2349 | #: plugins/check_pgsql.c:237 |
2292 | msgid "You gave an invalid host name" | 2350 | msgid "You gave an invalid host name" |
2293 | msgstr "" | 2351 | msgstr "" |
2294 | 2352 | ||
2295 | #: plugins/check_pgsql.c:244 | 2353 | #: plugins/check_pgsql.c:243 |
2296 | msgid "Port must be an integer" | 2354 | msgid "Port must be an integer" |
2297 | msgstr "" | 2355 | msgstr "" |
2298 | 2356 | ||
2299 | #: plugins/check_pgsql.c:250 | 2357 | #: plugins/check_pgsql.c:249 |
2300 | msgid "Database name is not valid" | 2358 | msgid "Database name is not valid" |
2301 | msgstr "" | 2359 | msgstr "" |
2302 | 2360 | ||
2303 | #: plugins/check_pgsql.c:256 | 2361 | #: plugins/check_pgsql.c:255 |
2304 | msgid "user name is not valid" | 2362 | msgid "user name is not valid" |
2305 | msgstr "" | 2363 | msgstr "" |
2306 | 2364 | ||
2307 | #: plugins/check_pgsql.c:390 | 2365 | #: plugins/check_pgsql.c:389 |
2308 | msgid "" | 2366 | msgid "" |
2309 | "Test whether a PostgreSQL DBMS is accepting connections.\n" | 2367 | "Test whether a PostgreSQL DBMS is accepting connections.\n" |
2310 | "\n" | 2368 | "\n" |
2311 | msgstr "" | 2369 | msgstr "" |
2312 | 2370 | ||
2313 | #: plugins/check_ping.c:80 | 2371 | #: plugins/check_ping.c:82 |
2314 | msgid "Could not parse arguments" | 2372 | msgid "Could not parse arguments" |
2315 | msgstr "" | 2373 | msgstr "" |
2316 | 2374 | ||
2317 | #: plugins/check_ping.c:123 | 2375 | #: plugins/check_ping.c:124 |
2318 | msgid "Error: Could not interpret output from ping command\n" | 2376 | msgid "Error: Could not interpret output from ping command\n" |
2319 | msgstr "" | 2377 | msgstr "" |
2320 | 2378 | ||
2321 | #: plugins/check_ping.c:139 | 2379 | #: plugins/check_ping.c:140 |
2322 | #, c-format | 2380 | #, c-format |
2323 | msgid "PING %s - %sPacket loss = %d%%" | 2381 | msgid "PING %s - %sPacket loss = %d%%" |
2324 | msgstr "" | 2382 | msgstr "" |
2325 | 2383 | ||
2326 | #: plugins/check_ping.c:142 | 2384 | #: plugins/check_ping.c:143 |
2327 | #, c-format | 2385 | #, c-format |
2328 | msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms" | 2386 | msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms" |
2329 | msgstr "" | 2387 | msgstr "" |
2330 | 2388 | ||
2331 | #: plugins/check_ping.c:233 | 2389 | #: plugins/check_ping.c:235 |
2332 | msgid "Could not realloc() addresses\n" | 2390 | msgid "Could not realloc() addresses\n" |
2333 | msgstr "" | 2391 | msgstr "" |
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 |
2337 | msgid "<max_packets> (%s) must be a non-negative number\n" | 2395 | msgid "<max_packets> (%s) must be a non-negative number\n" |
2338 | msgstr "" | 2396 | msgstr "" |
2339 | 2397 | ||
2340 | #: plugins/check_ping.c:271 | 2398 | #: plugins/check_ping.c:273 |
2341 | #, c-format | 2399 | #, c-format |
2342 | msgid "" | 2400 | msgid "" |
2343 | "Invalid host name/address: %s\n" | 2401 | "Invalid host name/address: %s\n" |
2344 | "\n" | 2402 | "\n" |
2345 | msgstr "" | 2403 | msgstr "" |
2346 | 2404 | ||
2347 | #: plugins/check_ping.c:282 | 2405 | #: plugins/check_ping.c:285 |
2348 | #, c-format | 2406 | #, c-format |
2349 | msgid "<wpl> (%s) must be an integer percentage\n" | 2407 | msgid "<wpl> (%s) must be an integer percentage\n" |
2350 | msgstr "" | 2408 | msgstr "" |
2351 | 2409 | ||
2352 | #: plugins/check_ping.c:293 | 2410 | #: plugins/check_ping.c:296 |
2353 | #, c-format | 2411 | #, c-format |
2354 | msgid "<cpl> (%s) must be an integer percentage\n" | 2412 | msgid "<cpl> (%s) must be an integer percentage\n" |
2355 | msgstr "" | 2413 | msgstr "" |
2356 | 2414 | ||
2357 | #: plugins/check_ping.c:304 | 2415 | #: plugins/check_ping.c:307 |
2358 | #, c-format | 2416 | #, c-format |
2359 | msgid "<wrta> (%s) must be a non-negative number\n" | 2417 | msgid "<wrta> (%s) must be a non-negative number\n" |
2360 | msgstr "" | 2418 | msgstr "" |
2361 | 2419 | ||
2362 | #: plugins/check_ping.c:315 | 2420 | #: plugins/check_ping.c:318 |
2363 | #, c-format | 2421 | #, c-format |
2364 | msgid "<crta> (%s) must be a non-negative number\n" | 2422 | msgid "<crta> (%s) must be a non-negative number\n" |
2365 | msgstr "" | 2423 | msgstr "" |
2366 | 2424 | ||
2367 | #: plugins/check_ping.c:346 | 2425 | #: plugins/check_ping.c:349 |
2368 | #, c-format | 2426 | #, c-format |
2369 | msgid "" | 2427 | msgid "" |
2370 | "%s: Warning threshold must be integer or percentage!\n" | 2428 | "%s: Warning threshold must be integer or percentage!\n" |
2371 | "\n" | 2429 | "\n" |
2372 | msgstr "" | 2430 | msgstr "" |
2373 | 2431 | ||
2374 | #: plugins/check_ping.c:357 | 2432 | #: plugins/check_ping.c:360 |
2375 | msgid "<wrta> was not set\n" | 2433 | msgid "<wrta> was not set\n" |
2376 | msgstr "" | 2434 | msgstr "" |
2377 | 2435 | ||
2378 | #: plugins/check_ping.c:361 | 2436 | #: plugins/check_ping.c:364 |
2379 | msgid "<crta> was not set\n" | 2437 | msgid "<crta> was not set\n" |
2380 | msgstr "" | 2438 | msgstr "" |
2381 | 2439 | ||
2382 | #: plugins/check_ping.c:365 | 2440 | #: plugins/check_ping.c:368 |
2383 | msgid "<wpl> was not set\n" | 2441 | msgid "<wpl> was not set\n" |
2384 | msgstr "" | 2442 | msgstr "" |
2385 | 2443 | ||
2386 | #: plugins/check_ping.c:369 | 2444 | #: plugins/check_ping.c:372 |
2387 | msgid "<cpl> was not set\n" | 2445 | msgid "<cpl> was not set\n" |
2388 | msgstr "" | 2446 | msgstr "" |
2389 | 2447 | ||
2390 | #: plugins/check_ping.c:373 | 2448 | #: plugins/check_ping.c:376 |
2391 | #, c-format | 2449 | #, c-format |
2392 | msgid "<wrta> (%f) cannot be larger than <crta> (%f)\n" | 2450 | msgid "<wrta> (%f) cannot be larger than <crta> (%f)\n" |
2393 | msgstr "" | 2451 | msgstr "" |
2394 | 2452 | ||
2395 | #: plugins/check_ping.c:377 | 2453 | #: plugins/check_ping.c:380 |
2396 | #, c-format | 2454 | #, c-format |
2397 | msgid "<wpl> (%d) cannot be larger than <cpl> (%d)\n" | 2455 | msgid "<wpl> (%d) cannot be larger than <cpl> (%d)\n" |
2398 | msgstr "" | 2456 | msgstr "" |
2399 | 2457 | ||
2400 | #: plugins/check_ping.c:390 | 2458 | #: plugins/check_ping.c:393 |
2401 | msgid "Invalid host name/address" | 2459 | msgid "Invalid host name/address" |
2402 | msgstr "" | 2460 | msgstr "" |
2403 | 2461 | ||
2404 | #: plugins/check_ping.c:408 | 2462 | #: plugins/check_ping.c:411 |
2405 | #, c-format | 2463 | #, c-format |
2406 | msgid "Cannot open pipe: %s" | 2464 | msgid "Cannot open pipe: %s" |
2407 | msgstr "" | 2465 | msgstr "" |
2408 | 2466 | ||
2409 | #: plugins/check_ping.c:412 | 2467 | #: plugins/check_ping.c:415 |
2410 | #, c-format | 2468 | #, c-format |
2411 | msgid "Cannot open stderr for %s\n" | 2469 | msgid "Cannot open stderr for %s\n" |
2412 | msgstr "" | 2470 | msgstr "" |
2413 | 2471 | ||
2414 | #: plugins/check_ping.c:468 | 2472 | #: plugins/check_ping.c:471 |
2415 | #, c-format | 2473 | #, c-format |
2416 | msgid "PING CRITICAL - Network unreachable (%s)" | 2474 | msgid "PING CRITICAL - Network unreachable (%s)" |
2417 | msgstr "" | 2475 | msgstr "" |
2418 | 2476 | ||
2419 | #: plugins/check_ping.c:470 | 2477 | #: plugins/check_ping.c:473 |
2420 | #, c-format | 2478 | #, c-format |
2421 | msgid "PING CRITICAL - Host Unreachable (%s)" | 2479 | msgid "PING CRITICAL - Host Unreachable (%s)" |
2422 | msgstr "" | 2480 | msgstr "" |
2423 | 2481 | ||
2424 | #: plugins/check_ping.c:472 | 2482 | #: plugins/check_ping.c:475 |
2425 | #, c-format | 2483 | #, c-format |
2426 | msgid "PING CRITICAL - Host not found (%s)" | 2484 | msgid "PING CRITICAL - Host not found (%s)" |
2427 | msgstr "" | 2485 | msgstr "" |
2428 | 2486 | ||
2429 | #: plugins/check_ping.c:479 | 2487 | #: plugins/check_ping.c:482 |
2430 | msgid "unable to realloc warn_text" | 2488 | msgid "unable to realloc warn_text" |
2431 | msgstr "" | 2489 | msgstr "" |
2432 | 2490 | ||
2433 | #: plugins/check_ping.c:505 plugins/check_procs.c:586 | 2491 | #: plugins/check_ping.c:508 plugins/check_procs.c:582 |
2434 | msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>" | 2492 | msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>" |
2435 | msgstr "" | 2493 | msgstr "" |
2436 | 2494 | ||
2437 | #: plugins/check_ping.c:508 | 2495 | #: plugins/check_ping.c:511 |
2438 | msgid "" | 2496 | msgid "" |
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" |
2441 | msgstr "" | 2499 | msgstr "" |
2442 | 2500 | ||
2443 | #: plugins/check_ping.c:516 | 2501 | #: plugins/check_ping.c:519 |
2444 | #, c-format | 2502 | #, c-format |
2445 | msgid "" | 2503 | msgid "" |
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" |
2456 | msgstr "" | 2514 | msgstr "" |
2457 | 2515 | ||
2458 | #: plugins/check_ping.c:531 | 2516 | #: plugins/check_ping.c:534 |
2459 | #, c-format | 2517 | #, c-format |
2460 | msgid "" | 2518 | msgid "" |
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" |
2465 | msgstr "" | 2523 | msgstr "" |
2466 | 2524 | ||
2467 | #: plugins/check_ping.c:536 | 2525 | #: plugins/check_ping.c:539 |
2468 | msgid "" | 2526 | msgid "" |
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" |
2477 | msgstr "" | 2535 | msgstr "" |
2478 | 2536 | ||
2479 | #: plugins/check_procs.c:116 | 2537 | #: plugins/check_procs.c:120 |
2480 | msgid "Unable to parse command line\n" | 2538 | msgid "Unable to parse command line\n" |
2481 | msgstr "" | 2539 | msgstr "" |
2482 | 2540 | ||
2483 | #: plugins/check_procs.c:119 | 2541 | #: plugins/check_procs.c:123 |
2484 | #, c-format | 2542 | #, c-format |
2485 | msgid "CMD: %s\n" | 2543 | msgid "CMD: %s\n" |
2486 | msgstr "" | 2544 | msgstr "" |
2487 | 2545 | ||
2488 | #: plugins/check_procs.c:215 | 2546 | #: plugins/check_procs.c:229 |
2489 | #, c-format | 2547 | #, c-format |
2490 | msgid "Not parseable: %s" | 2548 | msgid "Not parseable: %s" |
2491 | msgstr "" | 2549 | msgstr "" |
2492 | 2550 | ||
2493 | #: plugins/check_procs.c:222 | 2551 | #: plugins/check_procs.c:236 |
2494 | #, c-format | 2552 | #, c-format |
2495 | msgid "STDERR: %s" | 2553 | msgid "STDERR: %s" |
2496 | msgstr "" | 2554 | msgstr "" |
2497 | 2555 | ||
2498 | #: plugins/check_procs.c:224 | 2556 | #: plugins/check_procs.c:238 |
2499 | msgid "System call sent warnings to stderr\n" | 2557 | msgid "System call sent warnings to stderr\n" |
2500 | msgstr "" | 2558 | msgstr "" |
2501 | 2559 | ||
2502 | #: plugins/check_procs.c:231 | 2560 | #: plugins/check_procs.c:245 |
2503 | msgid "System call returned nonzero status\n" | 2561 | msgid "System call returned nonzero status\n" |
2504 | msgstr "" | 2562 | msgstr "" |
2505 | 2563 | ||
2506 | #: plugins/check_procs.c:236 plugins/check_users.c:96 | 2564 | #: plugins/check_procs.c:250 plugins/check_users.c:99 |
2507 | msgid "Unable to read output\n" | 2565 | msgid "Unable to read output\n" |
2508 | msgstr "" | 2566 | msgstr "" |
2509 | 2567 | ||
2510 | #: plugins/check_procs.c:253 | 2568 | #: plugins/check_procs.c:267 |
2511 | #, c-format | 2569 | #, c-format |
2512 | msgid "%d warn out of " | 2570 | msgid "%d warn out of " |
2513 | msgstr "" | 2571 | msgstr "" |
2514 | 2572 | ||
2515 | #: plugins/check_procs.c:258 | 2573 | #: plugins/check_procs.c:272 |
2516 | #, c-format | 2574 | #, c-format |
2517 | msgid "%d crit, %d warn out of " | 2575 | msgid "%d crit, %d warn out of " |
2518 | msgstr "" | 2576 | msgstr "" |
2519 | 2577 | ||
2520 | #: plugins/check_procs.c:261 | 2578 | #: plugins/check_procs.c:275 |
2521 | #, c-format | 2579 | #, c-format |
2522 | msgid "%d process" | 2580 | msgid "%d process" |
2523 | msgid_plural "%d processes" | 2581 | msgid_plural "%d processes" |
2524 | msgstr[0] "" | 2582 | msgstr[0] "" |
2525 | msgstr[1] "" | 2583 | msgstr[1] "" |
2526 | 2584 | ||
2527 | #: plugins/check_procs.c:264 | 2585 | #: plugins/check_procs.c:278 |
2528 | #, c-format | 2586 | #, c-format |
2529 | msgid " with %s" | 2587 | msgid " with %s" |
2530 | msgstr "" | 2588 | msgstr "" |
2531 | 2589 | ||
2532 | #: plugins/check_procs.c:328 plugins/check_ssh.c:117 | 2590 | #: plugins/check_procs.c:342 plugins/check_ssh.c:117 |
2533 | msgid "" | 2591 | msgid "" |
2534 | "Timeout Interval must be an integer!\n" | 2592 | "Timeout Interval must be an integer!\n" |
2535 | "\n" | 2593 | "\n" |
2536 | msgstr "" | 2594 | msgstr "" |
2537 | 2595 | ||
2538 | #: plugins/check_procs.c:342 | 2596 | #: plugins/check_procs.c:356 |
2539 | msgid "" | 2597 | msgid "" |
2540 | "Critical Process Count must be an integer!\n" | 2598 | "Critical Process Count must be an integer!\n" |
2541 | "\n" | 2599 | "\n" |
2542 | msgstr "" | 2600 | msgstr "" |
2543 | 2601 | ||
2544 | #: plugins/check_procs.c:354 | 2602 | #: plugins/check_procs.c:368 |
2545 | #, c-format | ||
2546 | msgid "" | 2603 | msgid "" |
2547 | "%s: Warning Process Count must be an integer!\n" | 2604 | "Warning Process Count must be an integer!\n" |
2548 | "\n" | 2605 | "\n" |
2549 | msgstr "" | 2606 | msgstr "" |
2550 | 2607 | ||
2551 | #: plugins/check_procs.c:362 | 2608 | #: plugins/check_procs.c:376 |
2552 | #, c-format | 2609 | #, c-format |
2553 | msgid "" | 2610 | msgid "" |
2554 | "%s: Parent Process ID must be an integer!\n" | 2611 | "%s: Parent Process ID must be an integer!\n" |
2555 | "\n" | 2612 | "\n" |
2556 | msgstr "" | 2613 | msgstr "" |
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 |
2560 | msgid "%s%sSTATE = %s" | 2617 | msgid "%s%sSTATE = %s" |
2561 | msgstr "" | 2618 | msgstr "" |
2562 | 2619 | ||
2563 | #: plugins/check_procs.c:380 | 2620 | #: plugins/check_procs.c:391 |
2564 | #, c-format | 2621 | #, c-format |
2565 | msgid "UID %d was not found\n" | 2622 | msgid "UID %s was not found\n" |
2566 | msgstr "" | 2623 | msgstr "" |
2567 | 2624 | ||
2568 | #: plugins/check_procs.c:389 | 2625 | #: plugins/check_procs.c:397 |
2569 | #, c-format | 2626 | #, c-format |
2570 | msgid "User name %s was not found\n" | 2627 | msgid "User name %s was not found\n" |
2571 | msgstr "" | 2628 | msgstr "" |
2572 | 2629 | ||
2573 | #: plugins/check_procs.c:397 | 2630 | #: plugins/check_procs.c:402 |
2574 | #, c-format | 2631 | #, c-format |
2575 | msgid "%s%sUID = %d (%s)" | 2632 | msgid "%s%sUID = %d (%s)" |
2576 | msgstr "" | 2633 | msgstr "" |
2577 | 2634 | ||
2578 | #: plugins/check_procs.c:406 | 2635 | #: plugins/check_procs.c:411 |
2579 | #, c-format | 2636 | #, c-format |
2580 | msgid "%s%scommand name '%s'" | 2637 | msgid "%s%scommand name '%s'" |
2581 | msgstr "" | 2638 | msgstr "" |
2582 | 2639 | ||
2583 | #: plugins/check_procs.c:415 | 2640 | #: plugins/check_procs.c:420 |
2584 | #, c-format | 2641 | #, c-format |
2585 | msgid "%s%sargs '%s'" | 2642 | msgid "%s%sargs '%s'" |
2586 | msgstr "" | 2643 | msgstr "" |
2587 | 2644 | ||
2588 | #: plugins/check_procs.c:420 | 2645 | #: plugins/check_procs.c:425 |
2589 | #, c-format | 2646 | #, c-format |
2590 | msgid "%s%sRSS >= %d" | 2647 | msgid "%s%sRSS >= %d" |
2591 | msgstr "" | 2648 | msgstr "" |
2592 | 2649 | ||
2593 | #: plugins/check_procs.c:424 | 2650 | #: plugins/check_procs.c:429 |
2594 | #, c-format | 2651 | #, c-format |
2595 | msgid "" | 2652 | msgid "" |
2596 | "%s: RSS must be an integer!\n" | 2653 | "%s: RSS must be an integer!\n" |
2597 | "\n" | 2654 | "\n" |
2598 | msgstr "" | 2655 | msgstr "" |
2599 | 2656 | ||
2600 | #: plugins/check_procs.c:430 | 2657 | #: plugins/check_procs.c:432 |
2601 | #, c-format | 2658 | #, c-format |
2602 | msgid "%s%sVSZ >= %d" | 2659 | msgid "%s%sVSZ >= %d" |
2603 | msgstr "" | 2660 | msgstr "" |
2604 | 2661 | ||
2605 | #: plugins/check_procs.c:434 | 2662 | #: plugins/check_procs.c:436 |
2606 | #, c-format | 2663 | #, c-format |
2607 | msgid "" | 2664 | msgid "" |
2608 | "%s: VSZ must be an integer!\n" | 2665 | "%s: VSZ must be an integer!\n" |
2609 | "\n" | 2666 | "\n" |
2610 | msgstr "" | 2667 | msgstr "" |
2611 | 2668 | ||
2612 | #: plugins/check_procs.c:441 | 2669 | #: plugins/check_procs.c:440 |
2613 | #, c-format | 2670 | #, c-format |
2614 | msgid "%s%sPCPU >= %.2f" | 2671 | msgid "%s%sPCPU >= %.2f" |
2615 | msgstr "" | 2672 | msgstr "" |
2616 | 2673 | ||
2617 | #: plugins/check_procs.c:445 | 2674 | #: plugins/check_procs.c:444 |
2618 | #, c-format | 2675 | #, c-format |
2619 | msgid "" | 2676 | msgid "" |
2620 | "%s: PCPU must be a float!\n" | 2677 | "%s: PCPU must be a float!\n" |
2621 | "\n" | 2678 | "\n" |
2622 | msgstr "" | 2679 | msgstr "" |
2623 | 2680 | ||
2624 | #: plugins/check_procs.c:467 | 2681 | #: plugins/check_procs.c:463 |
2625 | #, c-format | 2682 | #, c-format |
2626 | msgid "" | 2683 | msgid "" |
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" |
2629 | msgstr "" | 2686 | msgstr "" |
2630 | 2687 | ||
2631 | #: plugins/check_procs.c:504 | 2688 | #: plugins/check_procs.c:500 |
2632 | #, c-format | 2689 | #, c-format |
2633 | msgid "wmax (%d) cannot be greater than cmax (%d)\n" | 2690 | msgid "wmax (%d) cannot be greater than cmax (%d)\n" |
2634 | msgstr "" | 2691 | msgstr "" |
2635 | 2692 | ||
2636 | #: plugins/check_procs.c:508 | 2693 | #: plugins/check_procs.c:504 |
2637 | #, c-format | 2694 | #, c-format |
2638 | msgid "wmin (%d) cannot be less than cmin (%d)\n" | 2695 | msgid "wmin (%d) cannot be less than cmin (%d)\n" |
2639 | msgstr "" | 2696 | msgstr "" |
2640 | 2697 | ||
2641 | #: plugins/check_procs.c:589 | 2698 | #: plugins/check_procs.c:585 |
2642 | msgid "" | 2699 | msgid "" |
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" |
2650 | msgstr "" | 2707 | msgstr "" |
2651 | 2708 | ||
2652 | #: plugins/check_procs.c:596 | 2709 | #: plugins/check_procs.c:592 |
2653 | msgid "" | 2710 | msgid "" |
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" |
2660 | msgstr "" | 2717 | msgstr "" |
2661 | 2718 | ||
2662 | #: plugins/check_procs.c:603 | 2719 | #: plugins/check_procs.c:599 |
2663 | msgid "" | 2720 | msgid "" |
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" |
2674 | msgstr "" | 2731 | msgstr "" |
2675 | 2732 | ||
2676 | #: plugins/check_procs.c:614 | 2733 | #: plugins/check_procs.c:610 |
2677 | msgid "" | 2734 | msgid "" |
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" |
2690 | msgstr "" | 2747 | msgstr "" |
2691 | 2748 | ||
2692 | #: plugins/check_procs.c:627 | 2749 | #: plugins/check_procs.c:623 |
2693 | msgid "" | 2750 | msgid "" |
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" |
2702 | msgstr "" | 2759 | msgstr "" |
2703 | 2760 | ||
2704 | #: plugins/check_procs.c:637 | 2761 | #: plugins/check_procs.c:633 |
2705 | msgid "" | 2762 | msgid "" |
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" |
2711 | msgstr "" | 2768 | msgstr "" |
2712 | 2769 | ||
2713 | #: plugins/check_procs.c:642 | 2770 | #: plugins/check_procs.c:638 |
2714 | msgid "" | 2771 | msgid "" |
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" |
2721 | msgstr "" | 2778 | msgstr "" |
2722 | 2779 | ||
2723 | #: plugins/check_procs.c:649 | 2780 | #: plugins/check_procs.c:645 |
2724 | msgid "" | 2781 | msgid "" |
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" |
2737 | msgstr "" | 2796 | msgstr "" |
2738 | 2797 | ||
2739 | #: plugins/check_radius.c:116 | 2798 | #: plugins/check_radius.c:117 |
2740 | msgid "Config file error" | 2799 | msgid "Config file error" |
2741 | msgstr "" | 2800 | msgstr "" |
2742 | 2801 | ||
2743 | #: plugins/check_radius.c:123 | 2802 | #: plugins/check_radius.c:125 |
2744 | msgid "Out of Memory?" | 2803 | msgid "Out of Memory?" |
2745 | msgstr "" | 2804 | msgstr "" |
2746 | 2805 | ||
2747 | #: plugins/check_radius.c:144 | 2806 | #: plugins/check_radius.c:146 |
2748 | msgid "Timeout" | 2807 | msgid "Timeout" |
2749 | msgstr "" | 2808 | msgstr "" |
2750 | 2809 | ||
2751 | #: plugins/check_radius.c:146 | 2810 | #: plugins/check_radius.c:148 |
2752 | msgid "Auth Error" | 2811 | msgid "Auth Error" |
2753 | msgstr "" | 2812 | msgstr "" |
2754 | 2813 | ||
2755 | #: plugins/check_radius.c:148 | 2814 | #: plugins/check_radius.c:150 |
2756 | msgid "Auth Failed" | 2815 | msgid "Auth Failed" |
2757 | msgstr "" | 2816 | msgstr "" |
2758 | 2817 | ||
2759 | #: plugins/check_radius.c:152 | 2818 | #: plugins/check_radius.c:154 |
2760 | msgid "Auth OK" | 2819 | msgid "Auth OK" |
2761 | msgstr "" | 2820 | msgstr "" |
2762 | 2821 | ||
2763 | #: plugins/check_radius.c:190 plugins/check_radius.c:261 | 2822 | #: plugins/check_radius.c:193 plugins/check_radius.c:267 |
2764 | msgid "Timeout interval must be a positive integer" | 2823 | msgid "Timeout interval must be a positive integer" |
2765 | msgstr "" | 2824 | msgstr "" |
2766 | 2825 | ||
2767 | #: plugins/check_radius.c:194 plugins/check_radius.c:255 | 2826 | #: plugins/check_radius.c:197 plugins/check_radius.c:261 |
2768 | msgid "Number of retries must be a positive integer" | 2827 | msgid "Number of retries must be a positive integer" |
2769 | msgstr "" | 2828 | msgstr "" |
2770 | 2829 | ||
2771 | #: plugins/check_radius.c:199 plugins/check_radius.c:237 | 2830 | #: plugins/check_radius.c:202 plugins/check_radius.c:240 |
2772 | msgid "Server port must be a positive integer" | 2831 | msgid "Server port must be a positive integer" |
2773 | msgstr "" | 2832 | msgstr "" |
2774 | 2833 | ||
2775 | #: plugins/check_radius.c:281 | 2834 | #: plugins/check_radius.c:287 |
2776 | msgid "Copyright (c) 1999 Robert August Vincent II\n" | 2835 | msgid "Copyright (c) 1999 Robert August Vincent II\n" |
2777 | msgstr "" | 2836 | msgstr "" |
2778 | 2837 | ||
2779 | #: plugins/check_radius.c:284 | 2838 | #: plugins/check_radius.c:290 |
2780 | msgid "" | 2839 | msgid "" |
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" |
2783 | msgstr "" | 2842 | msgstr "" |
2784 | 2843 | ||
2785 | #: plugins/check_radius.c:292 | 2844 | #: plugins/check_radius.c:298 |
2786 | msgid "" | 2845 | msgid "" |
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" |
2797 | msgstr "" | 2858 | msgstr "" |
2798 | 2859 | ||
2799 | #: plugins/check_radius.c:306 | 2860 | #: plugins/check_radius.c:314 |
2800 | msgid "" | 2861 | msgid "" |
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" |
2808 | msgstr "" | 2869 | msgstr "" |
2809 | 2870 | ||
2810 | #: plugins/check_radius.c:313 | 2871 | #: plugins/check_radius.c:321 |
2811 | msgid "" | 2872 | msgid "" |
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 "" | |||
2845 | msgid "REAL %s - %d second response time\n" | 2906 | msgid "REAL %s - %d second response time\n" |
2846 | msgstr "" | 2907 | msgstr "" |
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 |
2849 | msgid "Server port must be a positive integer\n" | 2910 | msgid "Server port must be a positive integer\n" |
2850 | msgstr "" | 2911 | msgstr "" |
2851 | 2912 | ||
2852 | #: plugins/check_real.c:328 plugins/check_smtp.c:273 | 2913 | #: plugins/check_real.c:328 plugins/check_smtp.c:345 |
2853 | msgid "Warning time must be a nonnegative integer\n" | 2914 | msgid "Warning time must be a nonnegative integer\n" |
2854 | msgstr "" | 2915 | msgstr "" |
2855 | 2916 | ||
2856 | #: plugins/check_real.c:337 plugins/check_smtp.c:264 | 2917 | #: plugins/check_real.c:337 plugins/check_smtp.c:336 |
2857 | msgid "Critical time must be a nonnegative integer\n" | 2918 | msgid "Critical time must be a nonnegative integer\n" |
2858 | msgstr "" | 2919 | msgstr "" |
2859 | 2920 | ||
2860 | #: plugins/check_real.c:348 plugins/check_smtp.c:284 | 2921 | #: plugins/check_real.c:348 plugins/check_smtp.c:356 |
2861 | msgid "Time interval must be a nonnegative integer\n" | 2922 | msgid "Time interval must be a nonnegative integer\n" |
2862 | msgstr "" | 2923 | msgstr "" |
2863 | 2924 | ||
@@ -2893,47 +2954,54 @@ msgid "" | |||
2893 | "values." | 2954 | "values." |
2894 | msgstr "" | 2955 | msgstr "" |
2895 | 2956 | ||
2896 | #: plugins/check_smtp.c:108 | 2957 | #: plugins/check_smtp.c:126 |
2897 | msgid "recv() failed\n" | 2958 | msgid "recv() failed\n" |
2898 | msgstr "" | 2959 | msgstr "" |
2899 | 2960 | ||
2900 | #: plugins/check_smtp.c:117 | 2961 | #: plugins/check_smtp.c:137 |
2901 | msgid "Invalid SMTP response received from host\n" | 2962 | msgid "Invalid SMTP response received from host\n" |
2902 | msgstr "" | 2963 | msgstr "" |
2903 | 2964 | ||
2904 | #: plugins/check_smtp.c:119 | 2965 | #: plugins/check_smtp.c:139 |
2905 | #, c-format | 2966 | #, c-format |
2906 | msgid "Invalid SMTP response received from host on port %d\n" | 2967 | msgid "Invalid SMTP response received from host on port %d\n" |
2907 | msgstr "" | 2968 | msgstr "" |
2908 | 2969 | ||
2909 | #: plugins/check_smtp.c:149 | 2970 | #: plugins/check_smtp.c:183 plugins/check_snmp.c:512 |
2971 | msgid "Could Not Compile Regular Expression" | ||
2972 | msgstr "" | ||
2973 | |||
2974 | #: plugins/check_smtp.c:192 plugins/check_smtp.c:202 | ||
2910 | #, c-format | 2975 | #, c-format |
2911 | msgid "" | 2976 | msgid "SMTP %s - Invalid response '%s' to command '%s'\n" |
2912 | "DUMMYCMD: %s\n" | ||
2913 | "%s\n" | ||
2914 | msgstr "" | 2977 | msgstr "" |
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 |
2918 | msgid "SMTP %s - %.3f sec. response time, %s|time=%ldus\n" | 2981 | msgid "Execute Error: %s\n" |
2919 | msgstr "" | 2982 | msgstr "" |
2920 | 2983 | ||
2921 | #: plugins/check_smtp.c:175 | 2984 | #: plugins/check_smtp.c:227 |
2922 | #, c-format | 2985 | #, c-format |
2923 | msgid "SMTP %s - %.3f second response time|time=%ldus\n" | 2986 | msgid "SMTP %s - %.3f sec. response time%s%s|%s\n" |
2924 | msgstr "" | 2987 | msgstr "" |
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 | ||
2991 | msgid "Could not realloc() units [%d]\n" | ||
2992 | msgstr "" | ||
2993 | |||
2994 | #: plugins/check_smtp.c:428 | ||
2927 | msgid "Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n" | 2995 | msgid "Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n" |
2928 | msgstr "" | 2996 | msgstr "" |
2929 | 2997 | ||
2930 | #: plugins/check_smtp.c:359 | 2998 | #: plugins/check_smtp.c:431 |
2931 | msgid "" | 2999 | msgid "" |
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" |
2934 | msgstr "" | 3002 | msgstr "" |
2935 | 3003 | ||
2936 | #: plugins/check_smtp.c:370 | 3004 | #: plugins/check_smtp.c:442 |
2937 | #, c-format | 3005 | #, c-format |
2938 | msgid "" | 3006 | msgid "" |
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" | ||
2948 | msgstr "" | 3017 | msgstr "" |
2949 | 3018 | ||
2950 | #: plugins/check_smtp.c:387 | 3019 | #: plugins/check_smtp.c:461 |
2951 | msgid "" | 3020 | msgid "" |
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" |
2957 | msgstr "" | 3026 | msgstr "" |
2958 | 3027 | ||
2959 | #: plugins/check_snmp.c:278 | 3028 | #: plugins/check_snmp.c:285 plugins/check_snmp.c:518 |
2960 | #, c-format | ||
2961 | msgid "Execute Error: %s\n" | ||
2962 | msgstr "" | ||
2963 | |||
2964 | #: plugins/check_snmp.c:285 plugins/check_snmp.c:524 | ||
2965 | #, c-format | 3029 | #, c-format |
2966 | msgid "%s UNKNOWN: call for regex which was not a compiled option" | 3030 | msgid "%s UNKNOWN: call for regex which was not a compiled option" |
2967 | msgstr "" | 3031 | msgstr "" |
@@ -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 |
2971 | msgid "" | 3035 | msgid "" |
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" |
2974 | msgstr "" | 3038 | msgstr "" |
2975 | 3039 | ||
@@ -2978,52 +3042,43 @@ msgstr "" | |||
2978 | msgid "Invalid critical threshold: %s\n" | 3042 | msgid "Invalid critical threshold: %s\n" |
2979 | msgstr "" | 3043 | msgstr "" |
2980 | 3044 | ||
2981 | #: plugins/check_snmp.c:471 | 3045 | #: plugins/check_snmp.c:468 |
2982 | #, c-format | 3046 | #, c-format |
2983 | msgid "Invalid warning threshold: %s\n" | 3047 | msgid "Invalid warning threshold: %s\n" |
2984 | msgstr "" | 3048 | msgstr "" |
2985 | 3049 | ||
2986 | #: plugins/check_snmp.c:518 | 3050 | #: plugins/check_snmp.c:538 |
2987 | msgid "Could Not Compile Regular Expression" | ||
2988 | msgstr "" | ||
2989 | |||
2990 | #: plugins/check_snmp.c:544 | ||
2991 | #, c-format | 3051 | #, c-format |
2992 | msgid "Could not realloc() labels[%d]" | 3052 | msgid "Could not realloc() labels[%d]" |
2993 | msgstr "" | 3053 | msgstr "" |
2994 | 3054 | ||
2995 | #: plugins/check_snmp.c:557 | 3055 | #: plugins/check_snmp.c:550 |
2996 | msgid "Could not realloc() labels\n" | 3056 | msgid "Could not realloc() labels\n" |
2997 | msgstr "" | 3057 | msgstr "" |
2998 | 3058 | ||
2999 | #: plugins/check_snmp.c:575 | 3059 | #: plugins/check_snmp.c:580 |
3000 | #, c-format | ||
3001 | msgid "Could not realloc() units [%d]\n" | ||
3002 | msgstr "" | ||
3003 | |||
3004 | #: plugins/check_snmp.c:588 | ||
3005 | msgid "Could not realloc() units\n" | 3060 | msgid "Could not realloc() units\n" |
3006 | msgstr "" | 3061 | msgstr "" |
3007 | 3062 | ||
3008 | #: plugins/check_snmp.c:661 | 3063 | #: plugins/check_snmp.c:653 |
3009 | #, c-format | 3064 | #, c-format |
3010 | msgid "" | 3065 | msgid "" |
3011 | "Missing secname (%s) or authpassword (%s) ! \n" | 3066 | "Missing secname (%s) or authpassword (%s) ! \n" |
3012 | ")" | 3067 | ")" |
3013 | msgstr "" | 3068 | msgstr "" |
3014 | 3069 | ||
3015 | #: plugins/check_snmp.c:679 | 3070 | #: plugins/check_snmp.c:671 |
3016 | #, c-format | 3071 | #, c-format |
3017 | msgid "Invalid SNMP version: %s\n" | 3072 | msgid "Invalid SNMP version: %s\n" |
3018 | msgstr "" | 3073 | msgstr "" |
3019 | 3074 | ||
3020 | #: plugins/check_snmp.c:874 | 3075 | #: plugins/check_snmp.c:864 |
3021 | msgid "" | 3076 | msgid "" |
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" |
3024 | msgstr "" | 3079 | msgstr "" |
3025 | 3080 | ||
3026 | #: plugins/check_snmp.c:884 | 3081 | #: plugins/check_snmp.c:874 |
3027 | msgid "" | 3082 | msgid "" |
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" |
3034 | msgstr "" | 3089 | msgstr "" |
3035 | 3090 | ||
3036 | #: plugins/check_snmp.c:893 | 3091 | #: plugins/check_snmp.c:883 |
3037 | #, c-format | 3092 | #, c-format |
3038 | msgid "" | 3093 | msgid "" |
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" |
3048 | msgstr "" | 3103 | msgstr "" |
3049 | 3104 | ||
3050 | #: plugins/check_snmp.c:905 | 3105 | #: plugins/check_snmp.c:895 |
3051 | #, c-format | 3106 | #, c-format |
3052 | msgid "" | 3107 | msgid "" |
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" |
3061 | msgstr "" | 3116 | msgstr "" |
3062 | 3117 | ||
3063 | #: plugins/check_snmp.c:915 | 3118 | #: plugins/check_snmp.c:905 |
3064 | msgid "" | 3119 | msgid "" |
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" |
3069 | msgstr "" | 3124 | msgstr "" |
3070 | 3125 | ||
3071 | #: plugins/check_snmp.c:922 | 3126 | #: plugins/check_snmp.c:912 |
3072 | msgid "" | 3127 | msgid "" |
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" |
3083 | msgstr "" | 3138 | msgstr "" |
3084 | 3139 | ||
3085 | #: plugins/check_snmp.c:933 | 3140 | #: plugins/check_snmp.c:923 |
3086 | msgid "" | 3141 | msgid "" |
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" |
3091 | msgstr "" | 3146 | msgstr "" |
3092 | 3147 | ||
3093 | #: plugins/check_snmp.c:943 | 3148 | #: plugins/check_snmp.c:933 |
3094 | msgid "" | 3149 | msgid "" |
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" |
3101 | msgstr "" | 3156 | msgstr "" |
3102 | 3157 | ||
3103 | #: plugins/check_snmp.c:948 | 3158 | #: plugins/check_snmp.c:938 |
3104 | msgid "" | 3159 | msgid "" |
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" |
3108 | msgstr "" | 3163 | msgstr "" |
3109 | 3164 | ||
3110 | #: plugins/check_snmp.c:952 | 3165 | #: plugins/check_snmp.c:942 |
3111 | msgid "" | 3166 | msgid "" |
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" |
3117 | msgstr "" | 3172 | msgstr "" |
3118 | 3173 | ||
3119 | #: plugins/check_snmp.c:958 | 3174 | #: plugins/check_snmp.c:948 |
3120 | msgid "" | 3175 | msgid "" |
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" |
3124 | msgstr "" | 3179 | msgstr "" |
3125 | 3180 | ||
3126 | #: plugins/check_snmp.c:962 | 3181 | #: plugins/check_snmp.c:952 |
3127 | msgid "" | 3182 | msgid "" |
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" |
3137 | msgstr "" | 3192 | msgstr "" |
3138 | 3193 | ||
3139 | #: plugins/check_snmp.c:976 | 3194 | #: plugins/check_snmp.c:966 |
3140 | #, c-format | 3195 | #, c-format |
3141 | msgid "" | 3196 | msgid "" |
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 "" | |||
3172 | msgid "Usage: %s [-46] [-t <timeout>] [-p <port>] <host>\n" | 3227 | msgid "Usage: %s [-46] [-t <timeout>] [-p <port>] <host>\n" |
3173 | msgstr "" | 3228 | msgstr "" |
3174 | 3229 | ||
3175 | #: plugins/check_swap.c:125 | 3230 | #: plugins/check_swap.c:145 |
3176 | #, c-format | 3231 | #, c-format |
3177 | msgid "Command: %s\n" | 3232 | msgid "Command: %s\n" |
3178 | msgstr "" | 3233 | msgstr "" |
3179 | 3234 | ||
3180 | #: plugins/check_swap.c:127 | 3235 | #: plugins/check_swap.c:147 |
3181 | #, c-format | 3236 | #, c-format |
3182 | msgid "Format: %s\n" | 3237 | msgid "Format: %s\n" |
3183 | msgstr "" | 3238 | msgstr "" |
3184 | 3239 | ||
3185 | #: plugins/check_swap.c:163 | 3240 | #: plugins/check_swap.c:183 |
3186 | #, c-format | 3241 | #, c-format |
3187 | msgid "total=%d, used=%d, free=%d\n" | 3242 | msgid "total=%d, used=%d, free=%d\n" |
3188 | msgstr "" | 3243 | msgstr "" |
3189 | 3244 | ||
3190 | #: plugins/check_swap.c:186 | 3245 | #: plugins/check_swap.c:197 |
3191 | #, c-format | 3246 | #, c-format |
3192 | msgid "total=%d, free=%d\n" | 3247 | msgid "total=%d, free=%d\n" |
3193 | msgstr "" | 3248 | msgstr "" |
3194 | 3249 | ||
3195 | #: plugins/check_swap.c:222 | 3250 | #: plugins/check_swap.c:314 |
3196 | #, c-format | 3251 | #, c-format |
3197 | msgid " %d%% free (%lu MB out of %lu MB)%s" | 3252 | msgid " %d%% free (%llu MB out of %llu MB)" |
3198 | msgstr "" | 3253 | msgstr "" |
3199 | 3254 | ||
3200 | #: plugins/check_swap.c:365 | 3255 | #: plugins/check_swap.c:464 |
3201 | msgid "Warning percentage should be more than critical percentage\n" | 3256 | msgid "Warning percentage should be more than critical percentage\n" |
3202 | msgstr "" | 3257 | msgstr "" |
3203 | 3258 | ||
3204 | #: plugins/check_swap.c:369 | 3259 | #: plugins/check_swap.c:468 |
3205 | msgid "Warning free space should be more than critical free space\n" | 3260 | msgid "Warning free space should be more than critical free space\n" |
3206 | msgstr "" | 3261 | msgstr "" |
3207 | 3262 | ||
3208 | #: plugins/check_swap.c:386 | 3263 | #: plugins/check_swap.c:485 |
3209 | msgid "" | 3264 | msgid "" |
3210 | "Check swap space on local server.\n" | 3265 | "Check swap space on local server.\n" |
3211 | "\n" | 3266 | "\n" |
3212 | msgstr "" | 3267 | msgstr "" |
3213 | 3268 | ||
3214 | #: plugins/check_swap.c:392 | 3269 | #: plugins/check_swap.c:491 |
3215 | #, c-format | 3270 | #, c-format |
3216 | msgid "" | 3271 | msgid "" |
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" | ||
3232 | msgstr "" | 3287 | msgstr "" |
3233 | 3288 | ||
3234 | #: plugins/check_swap.c:404 | 3289 | #: plugins/check_swap.c:505 |
3235 | msgid "" | 3290 | msgid "" |
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" |
3240 | msgstr "" | 3295 | msgstr "" |
3241 | 3296 | ||
3242 | #: plugins/check_swap.c:408 | 3297 | #: plugins/check_swap.c:509 |
3243 | msgid "" | 3298 | msgid "" |
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" |
3246 | msgstr "" | 3301 | msgstr "" |
3247 | 3302 | ||
3248 | #: plugins/check_swap.c:420 | 3303 | #: plugins/check_swap.c:521 |
3249 | #, c-format | 3304 | #, c-format |
3250 | msgid "" | 3305 | msgid "" |
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" |
3256 | msgstr "" | 3311 | msgstr "" |
@@ -3268,61 +3323,61 @@ msgstr "" | |||
3268 | msgid "%s %s%s - %.3f second response time on port %d" | 3323 | msgid "%s %s%s - %.3f second response time on port %d" |
3269 | msgstr "" | 3324 | msgstr "" |
3270 | 3325 | ||
3271 | #: plugins/check_tcp.c:426 | 3326 | #: plugins/check_tcp.c:430 |
3272 | msgid "invalid host name or address" | 3327 | msgid "invalid host name or address" |
3273 | msgstr "" | 3328 | msgstr "" |
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 |
3277 | msgid "Critical threshold must be a nonnegative integer\n" | 3332 | msgid "Critical threshold must be a nonnegative integer\n" |
3278 | msgstr "" | 3333 | msgstr "" |
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 |
3283 | msgid "Warning threshold must be a nonnegative integer\n" | 3338 | msgid "Warning threshold must be a nonnegative integer\n" |
3284 | msgstr "" | 3339 | msgstr "" |
3285 | 3340 | ||
3286 | #: plugins/check_tcp.c:453 | 3341 | #: plugins/check_tcp.c:457 |
3287 | msgid "Timeout interval must be a positive integer\n" | 3342 | msgid "Timeout interval must be a positive integer\n" |
3288 | msgstr "" | 3343 | msgstr "" |
3289 | 3344 | ||
3290 | #: plugins/check_tcp.c:476 | 3345 | #: plugins/check_tcp.c:480 |
3291 | msgid "Maxbytes must be a positive integer\n" | 3346 | msgid "Maxbytes must be a positive integer\n" |
3292 | msgstr "" | 3347 | msgstr "" |
3293 | 3348 | ||
3294 | #: plugins/check_tcp.c:490 | 3349 | #: plugins/check_tcp.c:494 |
3295 | msgid "Refuse mut be one of ok, warn, crit\n" | 3350 | msgid "Refuse mut be one of ok, warn, crit\n" |
3296 | msgstr "" | 3351 | msgstr "" |
3297 | 3352 | ||
3298 | #: plugins/check_tcp.c:496 | 3353 | #: plugins/check_tcp.c:500 |
3299 | msgid "Delay must be a positive integer\n" | 3354 | msgid "Delay must be a positive integer\n" |
3300 | msgstr "" | 3355 | msgstr "" |
3301 | 3356 | ||
3302 | #: plugins/check_tcp.c:501 | 3357 | #: plugins/check_tcp.c:505 |
3303 | msgid "SSL support not available. Install OpenSSL and recompile." | 3358 | msgid "SSL support not available. Install OpenSSL and recompile." |
3304 | msgstr "" | 3359 | msgstr "" |
3305 | 3360 | ||
3306 | #: plugins/check_tcp.c:509 | 3361 | #: plugins/check_tcp.c:513 |
3307 | msgid "You must provide a server address\n" | 3362 | msgid "You must provide a server address\n" |
3308 | msgstr "" | 3363 | msgstr "" |
3309 | 3364 | ||
3310 | #: plugins/check_tcp.c:527 | 3365 | #: plugins/check_tcp.c:531 |
3311 | msgid "ERROR: Cannot create SSL context.\n" | 3366 | msgid "ERROR: Cannot create SSL context.\n" |
3312 | msgstr "" | 3367 | msgstr "" |
3313 | 3368 | ||
3314 | #: plugins/check_tcp.c:553 | 3369 | #: plugins/check_tcp.c:557 |
3315 | msgid "ERROR: Cannot initiate SSL handshake.\n" | 3370 | msgid "ERROR: Cannot initiate SSL handshake.\n" |
3316 | msgstr "" | 3371 | msgstr "" |
3317 | 3372 | ||
3318 | #: plugins/check_tcp.c:599 | 3373 | #: plugins/check_tcp.c:603 |
3319 | #, c-format | 3374 | #, c-format |
3320 | msgid "" | 3375 | msgid "" |
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" |
3323 | msgstr "" | 3378 | msgstr "" |
3324 | 3379 | ||
3325 | #: plugins/check_tcp.c:610 | 3380 | #: plugins/check_tcp.c:614 |
3326 | msgid "" | 3381 | msgid "" |
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" |
3333 | msgstr "" | 3388 | msgstr "" |
3334 | 3389 | ||
3335 | #: plugins/check_tcp.c:618 | 3390 | #: plugins/check_tcp.c:622 |
3336 | msgid "" | 3391 | msgid "" |
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" |
3343 | msgstr "" | 3398 | msgstr "" |
3344 | 3399 | ||
3345 | #: plugins/check_tcp.c:641 | 3400 | #: plugins/check_tcp.c:645 |
3346 | #, c-format | 3401 | #, c-format |
3347 | msgid "" | 3402 | msgid "" |
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" |
3352 | msgstr "" | 3407 | msgstr "" |
3353 | 3408 | ||
3354 | #: plugins/check_time.c:87 | 3409 | #: plugins/check_time.c:88 |
3355 | #, c-format | 3410 | #, c-format |
3356 | msgid "TIME UNKNOWN - could not connect to server %s, port %d\n" | 3411 | msgid "TIME UNKNOWN - could not connect to server %s, port %d\n" |
3357 | msgstr "" | 3412 | msgstr "" |
3358 | 3413 | ||
3359 | #: plugins/check_time.c:100 | 3414 | #: plugins/check_time.c:101 |
3360 | #, c-format | 3415 | #, c-format |
3361 | msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n" | 3416 | msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n" |
3362 | msgstr "" | 3417 | msgstr "" |
3363 | 3418 | ||
3364 | #: plugins/check_time.c:124 | 3419 | #: plugins/check_time.c:125 |
3365 | #, c-format | 3420 | #, c-format |
3366 | msgid "TIME UNKNOWN - no data on recv() from server %s, port %d\n" | 3421 | msgid "TIME UNKNOWN - no data on recv() from server %s, port %d\n" |
3367 | msgstr "" | 3422 | msgstr "" |
3368 | 3423 | ||
3369 | #: plugins/check_time.c:136 | 3424 | #: plugins/check_time.c:138 |
3370 | #, c-format | 3425 | #, c-format |
3371 | msgid "TIME %s - %d second response time\n" | 3426 | msgid "TIME %s - %d second response time|%s\n" |
3372 | msgstr "" | 3427 | msgstr "" |
3373 | 3428 | ||
3374 | #: plugins/check_time.c:150 | 3429 | #: plugins/check_time.c:156 |
3375 | #, c-format | 3430 | #, c-format |
3376 | msgid "TIME %s - %lu second time difference\n" | 3431 | msgid "TIME %s - %lu second time difference|%s %s\n" |
3377 | msgstr "" | 3432 | msgstr "" |
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 |
3381 | msgid "Invalid host name/address\n" | 3436 | msgid "Invalid host name/address\n" |
3382 | msgstr "" | 3437 | msgstr "" |
3383 | 3438 | ||
3384 | #: plugins/check_time.c:229 | 3439 | #: plugins/check_time.c:243 |
3385 | msgid "Warning thresholds must be a nonnegative integer\n" | 3440 | msgid "Warning thresholds must be a nonnegative integer\n" |
3386 | msgstr "" | 3441 | msgstr "" |
3387 | 3442 | ||
3388 | #: plugins/check_time.c:248 | 3443 | #: plugins/check_time.c:262 |
3389 | msgid "Critical thresholds must be a nonnegative integer\n" | 3444 | msgid "Critical thresholds must be a nonnegative integer\n" |
3390 | msgstr "" | 3445 | msgstr "" |
3391 | 3446 | ||
3392 | #: plugins/check_time.c:271 plugins/check_udp.c:186 | 3447 | #: plugins/check_time.c:285 plugins/check_udp.c:186 |
3393 | msgid "Server port must be a nonnegative integer\n" | 3448 | msgid "Server port must be a nonnegative integer\n" |
3394 | msgstr "" | 3449 | msgstr "" |
3395 | 3450 | ||
3396 | #: plugins/check_time.c:277 plugins/check_udp.c:180 | 3451 | #: plugins/check_time.c:291 plugins/check_udp.c:180 |
3397 | msgid "Timeout interval must be a nonnegative integer\n" | 3452 | msgid "Timeout interval must be a nonnegative integer\n" |
3398 | msgstr "" | 3453 | msgstr "" |
3399 | 3454 | ||
3400 | #: plugins/check_time.c:294 plugins/check_udp.c:207 | 3455 | #: plugins/check_time.c:308 plugins/check_udp.c:207 |
3401 | msgid "Host name was not supplied\n" | 3456 | msgid "Host name was not supplied\n" |
3402 | msgstr "" | 3457 | msgstr "" |
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 |
3405 | msgid "Copyright (c) 1999 Ethan Galstad\n" | 3460 | msgid "Copyright (c) 1999 Ethan Galstad\n" |
3406 | msgstr "" | 3461 | msgstr "" |
3407 | 3462 | ||
3408 | #: plugins/check_time.c:317 | 3463 | #: plugins/check_time.c:331 |
3409 | msgid "" | 3464 | msgid "" |
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" |
3412 | msgstr "" | 3467 | msgstr "" |
3413 | 3468 | ||
3414 | #: plugins/check_time.c:326 | 3469 | #: plugins/check_time.c:340 |
3415 | msgid "" | 3470 | msgid "" |
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" |
3426 | msgstr "" | 3481 | msgstr "" |
3427 | 3482 | ||
3428 | #: plugins/check_time.c:349 | 3483 | #: plugins/check_time.c:363 |
3429 | #, c-format | 3484 | #, c-format |
3430 | msgid "" | 3485 | msgid "" |
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" |
3475 | msgstr "" | 3530 | msgstr "" |
3476 | 3531 | ||
3477 | #: plugins/check_ups.c:546 | 3532 | #: plugins/check_ups.c:573 |
3478 | msgid "Copyright (c) 2000 Tom Shields" | 3533 | msgid "Copyright (c) 2000 Tom Shields" |
3479 | msgstr "" | 3534 | msgstr "" |
3480 | 3535 | ||
3481 | #: plugins/check_ups.c:549 | 3536 | #: plugins/check_ups.c:576 |
3482 | msgid "" | 3537 | msgid "" |
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" |
3487 | msgstr "" | 3542 | msgstr "" |
3488 | 3543 | ||
3489 | #: plugins/check_ups.c:559 | 3544 | #: plugins/check_ups.c:586 |
3490 | msgid "" | 3545 | msgid "" |
3491 | " -u, --ups=STRING\n" | 3546 | " -u, --ups=STRING\n" |
3492 | " Name of UPS\n" | 3547 | " Name of UPS\n" |
3493 | msgstr "" | 3548 | msgstr "" |
3494 | 3549 | ||
3495 | #: plugins/check_ups.c:569 | 3550 | #: plugins/check_ups.c:596 |
3496 | msgid "" | 3551 | msgid "" |
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" |
3506 | msgstr "" | 3561 | msgstr "" |
3507 | 3562 | ||
3508 | #: plugins/check_ups.c:576 | 3563 | #: plugins/check_ups.c:603 |
3509 | msgid "" | 3564 | msgid "" |
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" |
3518 | msgstr "" | 3573 | msgstr "" |
3519 | 3574 | ||
3520 | #: plugins/check_ups.c:582 | 3575 | #: plugins/check_ups.c:609 |
3521 | msgid "" | 3576 | msgid "" |
3522 | "Notes:\n" | 3577 | "Notes:\n" |
3523 | "\n" | 3578 | "\n" |
@@ -3528,31 +3583,31 @@ msgid "" | |||
3528 | "\n" | 3583 | "\n" |
3529 | msgstr "" | 3584 | msgstr "" |
3530 | 3585 | ||
3531 | #: plugins/check_ups.c:597 | 3586 | #: plugins/check_ups.c:624 |
3532 | #, c-format | 3587 | #, c-format |
3533 | msgid "" | 3588 | msgid "" |
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" |
3536 | msgstr "" | 3591 | msgstr "" |
3537 | 3592 | ||
3538 | #: plugins/check_users.c:73 | 3593 | #: plugins/check_users.c:76 |
3539 | #, c-format | 3594 | #, c-format |
3540 | msgid "# users=%d" | 3595 | msgid "# users=%d" |
3541 | msgstr "" | 3596 | msgstr "" |
3542 | 3597 | ||
3543 | #: plugins/check_users.c:98 | 3598 | #: plugins/check_users.c:106 |
3544 | #, c-format | 3599 | #, c-format |
3545 | msgid "USERS %s - %d users currently logged in\n" | 3600 | msgid "USERS %s - %d users currently logged in |%s\n" |
3546 | msgstr "" | 3601 | msgstr "" |
3547 | 3602 | ||
3548 | #: plugins/check_users.c:189 | 3603 | #: plugins/check_users.c:198 |
3549 | msgid "" | 3604 | msgid "" |
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" |
3553 | msgstr "" | 3608 | msgstr "" |
3554 | 3609 | ||
3555 | #: plugins/check_users.c:197 | 3610 | #: plugins/check_users.c:206 |
3556 | msgid "" | 3611 | msgid "" |
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 |
3599 | msgid "" | 3654 | msgid "" |
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" |
3602 | msgstr "" | 3657 | msgstr "" |
3603 | 3658 | ||
@@ -6,7 +6,7 @@ | |||
6 | msgid "" | 6 | msgid "" |
7 | msgstr "" | 7 | msgstr "" |
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 |
23 | msgid "Could not parse arguments\n" | 23 | msgid "Could not parse arguments\n" |
24 | msgstr "" | 24 | msgstr "" |
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 |
28 | msgid "Cannot catch SIGALRM" | 28 | msgid "Cannot catch SIGALRM" |
29 | msgstr "" | 29 | msgstr "" |
30 | 30 | ||
31 | #: plugins/check_by_ssh.c:88 | 31 | #: plugins/check_by_ssh.c:89 |
32 | #, c-format | 32 | #, c-format |
33 | msgid "Unable to open pipe: %s" | 33 | msgid "Unable to open pipe: %s" |
34 | msgstr "" | 34 | msgstr "" |
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 |
42 | msgid "Could not open stderr for %s\n" | 42 | msgid "Could not open stderr for %s\n" |
43 | msgstr "" | 43 | msgstr "" |
44 | 44 | ||
45 | #: plugins/check_by_ssh.c:123 | 45 | #: plugins/check_by_ssh.c:129 |
46 | #, c-format | 46 | #, c-format |
47 | msgid "SSH WARNING: could not open %s\n" | 47 | msgid "SSH WARNING: could not open %s\n" |
48 | msgstr "" | 48 | msgstr "" |
49 | 49 | ||
50 | #: plugins/check_by_ssh.c:142 | 50 | #: plugins/check_by_ssh.c:148 |
51 | #, c-format | 51 | #, c-format |
52 | msgid "[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n" | 52 | msgid "[%d] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n" |
53 | msgstr "" | 53 | msgstr "" |
54 | 54 | ||
55 | #: plugins/check_by_ssh.c:228 | 55 | #: plugins/check_by_ssh.c:235 |
56 | msgid "timeout interval must be an integer" | 56 | msgid "timeout interval must be an integer" |
57 | msgstr "" | 57 | msgstr "" |
58 | 58 | ||
59 | #: plugins/check_by_ssh.c:234 | 59 | #: plugins/check_by_ssh.c:241 |
60 | msgid "invalid host name" | 60 | msgid "invalid host name" |
61 | msgstr "" | 61 | msgstr "" |
62 | 62 | ||
63 | #: plugins/check_by_ssh.c:239 | 63 | #: plugins/check_by_ssh.c:246 |
64 | msgid "port must be an integer" | 64 | msgid "port must be an integer" |
65 | msgstr "" | 65 | msgstr "" |
66 | 66 | ||
67 | #: plugins/check_by_ssh.c:284 | 67 | #: plugins/check_by_ssh.c:288 |
68 | msgid "skip lines must be an integer" | ||
69 | msgstr "" | ||
70 | |||
71 | #: plugins/check_by_ssh.c:298 | ||
68 | #, c-format | 72 | #, c-format |
69 | msgid "%s: You must provide a host name\n" | 73 | msgid "%s: You must provide a host name\n" |
70 | msgstr "" | 74 | msgstr "" |
71 | 75 | ||
72 | #: plugins/check_by_ssh.c:286 | 76 | #: plugins/check_by_ssh.c:300 |
73 | #, c-format | 77 | #, c-format |
74 | msgid "%s: Invalid host name %s\n" | 78 | msgid "%s: Invalid host name %s\n" |
75 | msgstr "" | 79 | msgstr "" |
76 | 80 | ||
77 | #: plugins/check_by_ssh.c:302 | 81 | #: plugins/check_by_ssh.c:316 |
78 | msgid "No remotecmd\n" | 82 | msgid "No remotecmd\n" |
79 | msgstr "" | 83 | msgstr "" |
80 | 84 | ||
81 | #: plugins/check_by_ssh.c:320 | 85 | #: plugins/check_by_ssh.c:334 |
82 | #, c-format | 86 | #, c-format |
83 | msgid "" | 87 | msgid "" |
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" |
85 | msgstr "" | 89 | msgstr "" |
86 | 90 | ||
87 | #: plugins/check_by_ssh.c:323 | 91 | #: plugins/check_by_ssh.c:337 |
88 | #, c-format | 92 | #, c-format |
89 | msgid "" | 93 | msgid "" |
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" |
92 | msgstr "" | 96 | msgstr "" |
93 | 97 | ||
94 | #: plugins/check_by_ssh.c:338 | 98 | #: plugins/check_by_ssh.c:352 |
95 | msgid "" | 99 | msgid "" |
96 | "Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" | 100 | "Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" |
97 | msgstr "" | 101 | msgstr "" |
98 | 102 | ||
99 | #: plugins/check_by_ssh.c:341 | 103 | #: plugins/check_by_ssh.c:355 |
100 | msgid "" | 104 | msgid "" |
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" |
103 | msgstr "" | 107 | msgstr "" |
104 | 108 | ||
105 | #: plugins/check_by_ssh.c:351 | 109 | #: plugins/check_by_ssh.c:365 |
106 | msgid "" | 110 | msgid "" |
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" |
113 | msgstr "" | 119 | msgstr "" |
114 | 120 | ||
115 | #: plugins/check_by_ssh.c:359 | 121 | #: plugins/check_by_ssh.c:375 |
116 | msgid "" | 122 | msgid "" |
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" |
129 | msgstr "" | 135 | msgstr "" |
130 | 136 | ||
131 | #: plugins/check_by_ssh.c:377 | 137 | #: plugins/check_by_ssh.c:393 |
132 | msgid "" | 138 | msgid "" |
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" |
141 | msgstr "" | 147 | msgstr "" |
142 | 148 | ||
143 | #: plugins/check_by_ssh.c:386 | 149 | #: plugins/check_by_ssh.c:402 |
144 | msgid "" | 150 | msgid "" |
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" |
149 | msgstr "" | 155 | msgstr "" |
150 | 156 | ||
151 | #: plugins/check_by_ssh.c:401 | 157 | #: plugins/check_by_ssh.c:407 |
158 | msgid "" | ||
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" | ||
166 | msgstr "" | ||
167 | |||
168 | #: plugins/check_by_ssh.c:425 | ||
152 | #, c-format | 169 | #, c-format |
153 | msgid "" | 170 | msgid "" |
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" |
157 | msgstr "" | 174 | msgstr "" |
158 | 175 | ||
159 | #: plugins/check_dig.c:65 | 176 | #: plugins/check_dig.c:67 |
160 | msgid "Cannot catch SIGALRM\n" | 177 | msgid "Cannot catch SIGALRM\n" |
161 | msgstr "" | 178 | msgstr "" |
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 |
168 | msgid "Could not open pipe: %s\n" | 185 | msgid "Could not open pipe: %s\n" |
169 | msgstr "" | 186 | msgstr "" |
170 | 187 | ||
171 | #: plugins/check_dig.c:108 | 188 | #: plugins/check_dig.c:128 |
172 | msgid "Server not found in ANSWER SECTION" | 189 | msgid "Server not found in ANSWER SECTION" |
173 | msgstr "" | 190 | msgstr "" |
174 | 191 | ||
175 | #: plugins/check_dig.c:118 | 192 | #: plugins/check_dig.c:137 |
176 | msgid "No ANSWER SECTION found" | 193 | msgid "No ANSWER SECTION found" |
177 | msgstr "" | 194 | msgstr "" |
178 | 195 | ||
179 | #: plugins/check_dig.c:135 | 196 | #: plugins/check_dig.c:154 |
180 | msgid "dig returned error status" | 197 | msgid "dig returned error status" |
181 | msgstr "" | 198 | msgstr "" |
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 |
185 | msgid " Probably a non-existent host/domain" | 202 | msgid " Probably a non-existent host/domain" |
186 | msgstr "" | 203 | msgstr "" |
187 | 204 | ||
188 | #: plugins/check_dig.c:150 | 205 | #: plugins/check_dig.c:169 |
189 | #, c-format | 206 | #, c-format |
190 | msgid "%.3f seconds response time (%s)" | 207 | msgid "%.3f seconds response time (%s)" |
191 | msgstr "" | 208 | msgstr "" |
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 |
195 | msgid "Unknown argument" | 212 | msgid "Unknown argument" |
196 | msgstr "" | 213 | msgstr "" |
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 |
200 | msgid "Invalid host name" | 217 | msgid "Invalid host name" |
201 | msgstr "" | 218 | msgstr "" |
202 | 219 | ||
203 | #: plugins/check_dig.c:218 | 220 | #: plugins/check_dig.c:239 |
204 | msgid "Server port must be a nonnegative integer" | 221 | msgid "Server port must be a nonnegative integer" |
205 | msgstr "" | 222 | msgstr "" |
206 | 223 | ||
207 | #: plugins/check_dig.c:228 | 224 | #: plugins/check_dig.c:250 |
208 | msgid "Input causes overflow in warning interval" | ||
209 | msgstr "" | ||
210 | |||
211 | #: plugins/check_dig.c:231 | ||
212 | msgid "Warning interval must be a nonnegative integer" | 225 | msgid "Warning interval must be a nonnegative integer" |
213 | msgstr "" | 226 | msgstr "" |
214 | 227 | ||
215 | #: plugins/check_dig.c:238 | 228 | #: plugins/check_dig.c:258 |
216 | msgid "Input causes overflow in critical interval" | ||
217 | msgstr "" | ||
218 | |||
219 | #: plugins/check_dig.c:241 | ||
220 | msgid "Critical interval must be a nonnegative integer" | 229 | msgid "Critical interval must be a nonnegative integer" |
221 | msgstr "" | 230 | msgstr "" |
222 | 231 | ||
223 | #: plugins/check_dig.c:249 | 232 | #: plugins/check_dig.c:266 |
224 | msgid "Time interval must be a nonnegative integer" | 233 | msgid "Time interval must be a nonnegative integer" |
225 | msgstr "" | 234 | msgstr "" |
226 | 235 | ||
227 | #: plugins/check_dig.c:301 plugins/urlize.c:132 | 236 | #: plugins/check_dig.c:324 plugins/urlize.c:132 |
228 | msgid "" | 237 | msgid "" |
229 | "Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" | 238 | "Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n" |
230 | msgstr "" | 239 | msgstr "" |
231 | 240 | ||
232 | #: plugins/check_dig.c:304 | 241 | #: plugins/check_dig.c:327 |
233 | msgid "" | 242 | msgid "" |
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" |
236 | msgstr "" | 245 | msgstr "" |
237 | 246 | ||
238 | #: plugins/check_dig.c:312 | 247 | #: plugins/check_dig.c:335 |
239 | msgid "" | 248 | msgid "" |
240 | " -l, --lookup=STRING\n" | 249 | " -l, --lookup=STRING\n" |
241 | " machine name to lookup\n" | 250 | " machine name to lookup\n" |
242 | msgstr "" | 251 | msgstr "" |
243 | 252 | ||
244 | #: plugins/check_dig.c:331 | 253 | #: plugins/check_dig.c:339 |
254 | msgid "" | ||
255 | " -T, --record_type=STRING\n" | ||
256 | " record type to lookup (default: A)\n" | ||
257 | msgstr "" | ||
258 | |||
259 | #: plugins/check_dig.c:343 | ||
260 | msgid "" | ||
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" | ||
264 | msgstr "" | ||
265 | |||
266 | #: plugins/check_dig.c:363 | ||
245 | #, c-format | 267 | #, c-format |
246 | msgid "" | 268 | msgid "" |
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" | ||
249 | msgstr "" | 272 | msgstr "" |
250 | 273 | ||
251 | #: plugins/check_disk.c:212 | 274 | #: plugins/check_disk.c:213 |
252 | #, c-format | 275 | #, c-format |
253 | msgid "" | 276 | msgid "" |
254 | "%s\n" | 277 | "%s\n" |
@@ -256,70 +279,70 @@ msgid "" | |||
256 | "lu warn%%:%.0f%% crit%%:%.0f%%" | 279 | "lu warn%%:%.0f%% crit%%:%.0f%%" |
257 | msgstr "" | 280 | msgstr "" |
258 | 281 | ||
259 | #: plugins/check_disk.c:230 | 282 | #: plugins/check_disk.c:231 |
260 | #, c-format | 283 | #, c-format |
261 | msgid "%s [%s not found]" | 284 | msgid "%s [%s not found]" |
262 | msgstr "" | 285 | msgstr "" |
263 | 286 | ||
264 | #: plugins/check_disk.c:306 | 287 | #: plugins/check_disk.c:307 |
265 | msgid "Timeout Interval must be an integer!\n" | 288 | msgid "Timeout Interval must be an integer!\n" |
266 | msgstr "" | 289 | msgstr "" |
267 | 290 | ||
268 | #: plugins/check_disk.c:323 plugins/check_swap.c:292 | 291 | #: plugins/check_disk.c:324 plugins/check_swap.c:391 |
269 | msgid "Warning threshold must be integer or percentage!\n" | 292 | msgid "Warning threshold must be integer or percentage!\n" |
270 | msgstr "" | 293 | msgstr "" |
271 | 294 | ||
272 | #: plugins/check_disk.c:340 plugins/check_swap.c:309 | 295 | #: plugins/check_disk.c:341 plugins/check_swap.c:408 |
273 | msgid "Critical threshold must be integer or percentage!\n" | 296 | msgid "Critical threshold must be integer or percentage!\n" |
274 | msgstr "" | 297 | msgstr "" |
275 | 298 | ||
276 | #: plugins/check_disk.c:361 | 299 | #: plugins/check_disk.c:362 |
277 | #, c-format | 300 | #, c-format |
278 | msgid "unit type %s not known\n" | 301 | msgid "unit type %s not known\n" |
279 | msgstr "" | 302 | msgstr "" |
280 | 303 | ||
281 | #: plugins/check_disk.c:364 | 304 | #: plugins/check_disk.c:365 |
282 | #, c-format | 305 | #, c-format |
283 | msgid "failed allocating storage for '%s'\n" | 306 | msgid "failed allocating storage for '%s'\n" |
284 | msgstr "" | 307 | msgstr "" |
285 | 308 | ||
286 | #: plugins/check_disk.c:431 | 309 | #: plugins/check_disk.c:440 |
287 | msgid "check_disk: unrecognized option\n" | 310 | msgid "check_disk: unrecognized option\n" |
288 | msgstr "" | 311 | msgstr "" |
289 | 312 | ||
290 | #: plugins/check_disk.c:488 | 313 | #: plugins/check_disk.c:497 |
291 | msgid "INPUT ERROR: No thresholds specified" | 314 | msgid "INPUT ERROR: No thresholds specified" |
292 | msgstr "" | 315 | msgstr "" |
293 | 316 | ||
294 | #: plugins/check_disk.c:494 | 317 | #: plugins/check_disk.c:503 |
295 | #, c-format | 318 | #, c-format |
296 | msgid "" | 319 | msgid "" |
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" |
299 | msgstr "" | 322 | msgstr "" |
300 | 323 | ||
301 | #: plugins/check_disk.c:501 | 324 | #: plugins/check_disk.c:510 |
302 | #, c-format | 325 | #, c-format |
303 | msgid "" | 326 | msgid "" |
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" |
306 | msgstr "" | 329 | msgstr "" |
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 |
312 | msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n" | 335 | msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n" |
313 | msgstr "" | 336 | msgstr "" |
314 | 337 | ||
315 | #: plugins/check_disk.c:569 | 338 | #: plugins/check_disk.c:578 |
316 | msgid "" | 339 | msgid "" |
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." |
320 | msgstr "" | 343 | msgstr "" |
321 | 344 | ||
322 | #: plugins/check_disk.c:577 | 345 | #: plugins/check_disk.c:586 |
323 | #, c-format | 346 | #, c-format |
324 | msgid "" | 347 | msgid "" |
325 | " -w, --warning=INTEGER\n" | 348 | " -w, --warning=INTEGER\n" |
@@ -335,7 +358,7 @@ msgid "" | |||
335 | " Clear thresholds\n" | 358 | " Clear thresholds\n" |
336 | msgstr "" | 359 | msgstr "" |
337 | 360 | ||
338 | #: plugins/check_disk.c:589 | 361 | #: plugins/check_disk.c:598 |
339 | msgid "" | 362 | msgid "" |
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" |
346 | msgstr "" | 369 | msgstr "" |
347 | 370 | ||
348 | #: plugins/check_disk.c:597 | 371 | #: plugins/check_disk.c:606 |
349 | msgid "" | 372 | msgid "" |
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" |
362 | msgstr "" | 385 | msgstr "" |
363 | 386 | ||
364 | #: plugins/check_disk.c:617 | 387 | #: plugins/check_disk.c:626 |
365 | msgid "" | 388 | msgid "" |
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" |
369 | msgstr "" | 392 | msgstr "" |
370 | 393 | ||
371 | #: plugins/check_disk.c:630 | 394 | #: plugins/check_disk.c:639 |
372 | #, c-format | 395 | #, c-format |
373 | msgid "" | 396 | msgid "" |
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" |
378 | msgstr "" | 401 | msgstr "" |
379 | 402 | ||
380 | #: plugins/check_dns.c:129 plugins/check_dns.c:158 | 403 | #: plugins/check_dns.c:108 |
381 | msgid "Unknown error (plugin)" | 404 | msgid "Unknown error (plugin)" |
382 | msgstr "" | 405 | msgstr "" |
383 | 406 | ||
384 | #: plugins/check_dns.c:153 | 407 | #: plugins/check_dns.c:128 |
385 | #, c-format | 408 | #, c-format |
386 | msgid "DNS CRITICAL - '%s' returned empty host name string\n" | 409 | msgid "DNS CRITICAL - '%s' returned empty host name string\n" |
387 | msgstr "" | 410 | msgstr "" |
388 | 411 | ||
389 | #: plugins/check_dns.c:190 | 412 | #: plugins/check_dns.c:167 |
390 | msgid "nslookup returned error status" | 413 | msgid "nslookup returned error status" |
391 | msgstr "" | 414 | msgstr "" |
392 | 415 | ||
393 | #: plugins/check_dns.c:197 | 416 | #: plugins/check_dns.c:174 |
394 | #, c-format | 417 | #, c-format |
395 | msgid "DNS CRITICAL - '%s' output parsing exited with no address\n" | 418 | msgid "DNS CRITICAL - '%s' output parsing exited with no address\n" |
396 | msgstr "" | 419 | msgstr "" |
397 | 420 | ||
398 | #: plugins/check_dns.c:203 | 421 | #: plugins/check_dns.c:180 |
399 | #, c-format | 422 | #, c-format |
400 | msgid "expected %s but got %s" | 423 | msgid "expected %s but got %s" |
401 | msgstr "" | 424 | msgstr "" |
402 | 425 | ||
403 | #: plugins/check_dns.c:215 | 426 | #: plugins/check_dns.c:186 |
404 | #, c-format | 427 | #, c-format |
405 | msgid "DNS ok - %.3f seconds response time, address%s %s|%s\n" | 428 | msgid "server %s is not authoritative for %s" |
429 | msgstr "" | ||
430 | |||
431 | #: plugins/check_dns.c:198 | ||
432 | msgid "DNS" | ||
406 | msgstr "" | 433 | msgstr "" |
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 | ||
437 | msgid "OK" | ||
438 | msgstr "" | ||
439 | |||
440 | #: plugins/check_dns.c:199 | ||
441 | #, c-format | ||
442 | msgid "%.3f second response time, " | ||
443 | msgid_plural "%.3f seconds response time, " | ||
444 | msgstr[0] "" | ||
445 | msgstr[1] "" | ||
446 | |||
447 | #: plugins/check_dns.c:200 | ||
448 | #, c-format | ||
449 | msgid "%s returns %s" | ||
450 | msgstr "" | ||
451 | |||
452 | #: plugins/check_dns.c:204 | ||
409 | #, c-format | 453 | #, c-format |
410 | msgid "DNS WARNING - %s\n" | 454 | msgid "DNS WARNING - %s\n" |
411 | msgstr "" | 455 | msgstr "" |
412 | 456 | ||
413 | #: plugins/check_dns.c:223 | 457 | #: plugins/check_dns.c:207 |
414 | #, c-format | 458 | #, c-format |
415 | msgid "DNS CRITICAL - %s\n" | 459 | msgid "DNS CRITICAL - %s\n" |
416 | msgstr "" | 460 | msgstr "" |
417 | 461 | ||
418 | #: plugins/check_dns.c:226 | 462 | #: plugins/check_dns.c:210 |
419 | #, c-format | 463 | #, c-format |
420 | msgid "DNS problem - %s\n" | 464 | msgid "DNS problem - %s\n" |
421 | msgstr "" | 465 | msgstr "" |
422 | 466 | ||
423 | #: plugins/check_dns.c:244 | 467 | #: plugins/check_dns.c:228 |
424 | #, c-format | 468 | #, c-format |
425 | msgid "No response from name server %s\n" | 469 | msgid "No response from name server %s\n" |
426 | msgstr "" | 470 | msgstr "" |
427 | 471 | ||
428 | #: plugins/check_dns.c:248 | 472 | #: plugins/check_dns.c:232 |
429 | #, c-format | 473 | #, c-format |
430 | msgid "Name server %s has no records\n" | 474 | msgid "Name server %s has no records\n" |
431 | msgstr "" | 475 | msgstr "" |
432 | 476 | ||
433 | #: plugins/check_dns.c:255 | 477 | #: plugins/check_dns.c:239 |
434 | #, c-format | 478 | #, c-format |
435 | msgid "Connection to name server %s was refused\n" | 479 | msgid "Connection to name server %s was refused\n" |
436 | msgstr "" | 480 | msgstr "" |
437 | 481 | ||
438 | #: plugins/check_dns.c:261 | 482 | #: plugins/check_dns.c:245 |
439 | #, c-format | 483 | #, c-format |
440 | msgid "Domain %s was not found by the server\n" | 484 | msgid "Domain %s was not found by the server\n" |
441 | msgstr "" | 485 | msgstr "" |
442 | 486 | ||
443 | #: plugins/check_dns.c:265 | 487 | #: plugins/check_dns.c:249 |
444 | msgid "Network is unreachable\n" | 488 | msgid "Network is unreachable\n" |
445 | msgstr "" | 489 | msgstr "" |
446 | 490 | ||
447 | #: plugins/check_dns.c:269 | 491 | #: plugins/check_dns.c:253 |
448 | #, c-format | 492 | #, c-format |
449 | msgid "Server failure for %s\n" | 493 | msgid "Server failure for %s\n" |
450 | msgstr "" | 494 | msgstr "" |
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 |
456 | msgid "" | 500 | msgid "" |
457 | "%s: Unknown argument: %s\n" | 501 | "%s: Unknown argument: %s\n" |
458 | "\n" | 502 | "\n" |
459 | msgstr "" | 503 | msgstr "" |
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 |
464 | msgid "Input buffer overflow\n" | 508 | msgid "Input buffer overflow\n" |
465 | msgstr "" | 509 | msgstr "" |
466 | 510 | ||
467 | #: plugins/check_dns.c:338 | 511 | #: plugins/check_dns.c:323 |
468 | msgid "" | 512 | msgid "" |
469 | "Invalid server name/address\n" | 513 | "Invalid server name/address\n" |
470 | "\n" | 514 | "\n" |
471 | msgstr "" | 515 | msgstr "" |
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 |
475 | msgid "" | 519 | msgid "" |
476 | "Invalid host name/address\n" | 520 | "Invalid host name/address\n" |
477 | "\n" | 521 | "\n" |
478 | msgstr "" | 522 | msgstr "" |
479 | 523 | ||
480 | #: plugins/check_dns.c:376 | 524 | #: plugins/check_dns.c:364 |
481 | #, c-format | 525 | #, c-format |
482 | msgid "" | 526 | msgid "" |
483 | "Invalid name/address: %s\n" | 527 | "Invalid name/address: %s\n" |
484 | "\n" | 528 | "\n" |
485 | msgstr "" | 529 | msgstr "" |
486 | 530 | ||
487 | #: plugins/check_dns.c:413 | 531 | #: plugins/check_dns.c:401 |
488 | msgid "" | 532 | msgid "" |
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" | ||
495 | msgstr "" | 541 | msgstr "" |
496 | 542 | ||
497 | #: plugins/check_dns.c:423 | 543 | #: plugins/check_dns.c:413 |
498 | msgid "" | 544 | msgid "" |
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" |
504 | msgstr "" | 550 | msgstr "" |
505 | 551 | ||
506 | #: plugins/check_dns.c:438 | 552 | #: plugins/check_dns.c:428 |
507 | #, c-format | 553 | #, c-format |
508 | msgid "" | 554 | msgid "" |
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" |
512 | msgstr "" | 558 | msgstr "" |
@@ -519,16 +565,33 @@ msgstr "" | |||
519 | msgid "Arguments to check_dummy must be an integer\n" | 565 | msgid "Arguments to check_dummy must be an integer\n" |
520 | msgstr "" | 566 | msgstr "" |
521 | 567 | ||
522 | #: plugins/check_dummy.c:91 | 568 | #: plugins/check_dummy.c:61 plugins/check_http.c:680 plugins/check_procs.c:265 |
569 | msgid "WARNING" | ||
570 | msgstr "" | ||
571 | |||
572 | #: plugins/check_dummy.c:64 plugins/check_http.c:682 plugins/check_procs.c:270 | ||
573 | msgid "CRITICAL" | ||
574 | msgstr "" | ||
575 | |||
576 | #: plugins/check_dummy.c:67 plugins/check_http.c:676 | ||
577 | msgid "UNKNOWN" | ||
578 | msgstr "" | ||
579 | |||
580 | #: plugins/check_dummy.c:70 | ||
581 | #, c-format | ||
582 | msgid "Status %d is not a supported error state\n" | ||
583 | msgstr "" | ||
584 | |||
585 | #: plugins/check_dummy.c:96 | ||
523 | msgid "" | 586 | msgid "" |
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" |
527 | msgstr "" | 590 | msgstr "" |
528 | 591 | ||
529 | #: plugins/check_dummy.c:103 | 592 | #: plugins/check_dummy.c:108 |
530 | #, c-format | 593 | #, c-format |
531 | msgid "Usage: %s <integer state>\n" | 594 | msgid "Usage: %s <integer state> [optional text]\n" |
532 | msgstr "" | 595 | msgstr "" |
533 | 596 | ||
534 | #: plugins/check_fping.c:83 | 597 | #: plugins/check_fping.c:83 |
@@ -684,8 +747,8 @@ msgid "" | |||
684 | msgstr "" | 747 | msgstr "" |
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 |
689 | msgid "Invalid command arguments supplied\n" | 752 | msgid "Invalid command arguments supplied\n" |
690 | msgstr "" | 753 | msgstr "" |
691 | 754 | ||
@@ -739,13 +802,13 @@ msgid "Printer ok - (%s)\n" | |||
739 | msgstr "" | 802 | msgstr "" |
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 |
743 | msgid "Invalid host name\n" | 806 | msgid "Invalid host name\n" |
744 | msgstr "" | 807 | msgstr "" |
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 |
749 | msgid "Invalid argument\n" | 812 | msgid "Invalid argument\n" |
750 | msgstr "" | 813 | msgstr "" |
751 | 814 | ||
@@ -768,246 +831,230 @@ msgstr "" | |||
768 | msgid "Usage: %s -H host [-C community]\n" | 831 | msgid "Usage: %s -H host [-C community]\n" |
769 | msgstr "" | 832 | msgstr "" |
770 | 833 | ||
771 | #: plugins/check_http.c:141 | 834 | #: plugins/check_http.c:142 |
772 | msgid "check_http: could not parse arguments\n" | 835 | msgid "check_http: could not parse arguments\n" |
773 | msgstr "" | 836 | msgstr "" |
774 | 837 | ||
775 | #: plugins/check_http.c:162 | 838 | #: plugins/check_http.c:163 |
776 | msgid "HTTP CRITICAL - Could not make SSL connection\n" | 839 | msgid "HTTP CRITICAL - Could not make SSL connection\n" |
777 | msgstr "" | 840 | msgstr "" |
778 | 841 | ||
779 | #: plugins/check_http.c:168 plugins/check_http.c:495 | 842 | #: plugins/check_http.c:169 plugins/check_http.c:501 |
780 | msgid "ERROR: Cannot retrieve server certificate.\n" | 843 | msgid "ERROR: Cannot retrieve server certificate.\n" |
781 | msgstr "" | 844 | msgstr "" |
782 | 845 | ||
783 | #: plugins/check_http.c:239 | 846 | #: plugins/check_http.c:242 |
784 | msgid "unknown argument" | 847 | msgid "unknown argument" |
785 | msgstr "" | 848 | msgstr "" |
786 | 849 | ||
787 | #: plugins/check_http.c:251 | 850 | #: plugins/check_http.c:254 |
788 | msgid "timeout interval must be a non-negative integer" | 851 | msgid "timeout interval must be a non-negative integer" |
789 | msgstr "" | 852 | msgstr "" |
790 | 853 | ||
791 | #: plugins/check_http.c:257 | 854 | #: plugins/check_http.c:260 |
792 | msgid "invalid critical threshold" | 855 | msgid "invalid critical threshold" |
793 | msgstr "" | 856 | msgstr "" |
794 | 857 | ||
795 | #: plugins/check_http.c:265 | 858 | #: plugins/check_http.c:268 |
796 | msgid "invalid warning threshold" | 859 | msgid "invalid warning threshold" |
797 | msgstr "" | 860 | msgstr "" |
798 | 861 | ||
799 | #: plugins/check_http.c:279 plugins/check_http.c:294 | 862 | #: plugins/check_http.c:282 plugins/check_http.c:297 |
800 | msgid "check_http: invalid option - SSL is not available\n" | 863 | msgid "check_http: invalid option - SSL is not available\n" |
801 | msgstr "" | 864 | msgstr "" |
802 | 865 | ||
803 | #: plugins/check_http.c:288 | 866 | #: plugins/check_http.c:291 |
804 | msgid "invalid certificate expiration period" | 867 | msgid "invalid certificate expiration period" |
805 | msgstr "" | 868 | msgstr "" |
806 | 869 | ||
807 | #: plugins/check_http.c:309 | 870 | #: plugins/check_http.c:312 |
808 | #, c-format | 871 | #, c-format |
809 | msgid "option f:%d \n" | 872 | msgid "option f:%d \n" |
810 | msgstr "" | 873 | msgstr "" |
811 | 874 | ||
812 | #: plugins/check_http.c:324 | 875 | #: plugins/check_http.c:327 |
813 | msgid "invalid port number" | 876 | msgid "invalid port number" |
814 | msgstr "" | 877 | msgstr "" |
815 | 878 | ||
816 | #: plugins/check_http.c:352 | 879 | #: plugins/check_http.c:358 |
817 | msgid "check_http: call for regex which was not a compiled option\n" | 880 | msgid "check_http: call for regex which was not a compiled option\n" |
818 | msgstr "" | 881 | msgstr "" |
819 | 882 | ||
820 | #: plugins/check_http.c:366 | 883 | #: plugins/check_http.c:372 |
821 | #, c-format | 884 | #, c-format |
822 | msgid "Could Not Compile Regular Expression: %s" | 885 | msgid "Could Not Compile Regular Expression: %s" |
823 | msgstr "" | 886 | msgstr "" |
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 |
827 | msgid "IPv6 support not available\n" | 890 | msgid "IPv6 support not available\n" |
828 | msgstr "" | 891 | msgstr "" |
829 | 892 | ||
830 | #: plugins/check_http.c:400 | 893 | #: plugins/check_http.c:406 |
831 | msgid "check_http: you must specify a server address or host name\n" | 894 | msgid "check_http: you must specify a server address or host name\n" |
832 | msgstr "" | 895 | msgstr "" |
833 | 896 | ||
834 | #: plugins/check_http.c:488 plugins/check_http.c:503 | 897 | #: plugins/check_http.c:494 plugins/check_http.c:509 |
835 | msgid "Unable to open TCP socket\n" | 898 | msgid "Unable to open TCP socket\n" |
836 | msgstr "" | 899 | msgstr "" |
837 | 900 | ||
838 | #: plugins/check_http.c:561 | 901 | #: plugins/check_http.c:571 |
839 | msgid "Client Certificate Required\n" | 902 | msgid "Client Certificate Required\n" |
840 | msgstr "" | 903 | msgstr "" |
841 | 904 | ||
842 | #: plugins/check_http.c:563 plugins/check_http.c:568 | 905 | #: plugins/check_http.c:573 plugins/check_http.c:578 |
843 | msgid "Error in recv()\n" | 906 | msgid "Error in recv()\n" |
844 | msgstr "" | 907 | msgstr "" |
845 | 908 | ||
846 | #: plugins/check_http.c:576 | 909 | #: plugins/check_http.c:586 |
847 | #, c-format | 910 | #, c-format |
848 | msgid "No data received %s\n" | 911 | msgid "No data received %s\n" |
849 | msgstr "" | 912 | msgstr "" |
850 | 913 | ||
851 | #: plugins/check_http.c:620 | 914 | #: plugins/check_http.c:630 |
852 | msgid "Invalid HTTP response received from host\n" | 915 | msgid "Invalid HTTP response received from host\n" |
853 | msgstr "" | 916 | msgstr "" |
854 | 917 | ||
855 | #: plugins/check_http.c:623 | 918 | #: plugins/check_http.c:633 |
856 | #, c-format | 919 | #, c-format |
857 | msgid "Invalid HTTP response received from host on port %d\n" | 920 | msgid "Invalid HTTP response received from host on port %d\n" |
858 | msgstr "" | 921 | msgstr "" |
859 | 922 | ||
860 | #: plugins/check_http.c:631 | 923 | #: plugins/check_http.c:641 |
861 | #, c-format | 924 | #, c-format |
862 | msgid "HTTP OK: Status line output matched \"%s\"\n" | 925 | msgid "HTTP OK: Status line output matched \"%s\"\n" |
863 | msgstr "" | 926 | msgstr "" |
864 | 927 | ||
865 | #: plugins/check_http.c:643 | 928 | #: plugins/check_http.c:653 |
866 | #, c-format | 929 | #, c-format |
867 | msgid "HTTP CRITICAL: Invalid Status Line (%s)\n" | 930 | msgid "HTTP CRITICAL: Invalid Status Line (%s)\n" |
868 | msgstr "" | 931 | msgstr "" |
869 | 932 | ||
870 | #: plugins/check_http.c:650 | 933 | #: plugins/check_http.c:660 |
871 | #, c-format | 934 | #, c-format |
872 | msgid "HTTP CRITICAL: Invalid Status (%s)\n" | 935 | msgid "HTTP CRITICAL: Invalid Status (%s)\n" |
873 | msgstr "" | 936 | msgstr "" |
874 | 937 | ||
875 | #: plugins/check_http.c:654 | 938 | #: plugins/check_http.c:664 |
876 | #, c-format | 939 | #, c-format |
877 | msgid "HTTP CRITICAL: %s\n" | 940 | msgid "HTTP CRITICAL: %s\n" |
878 | msgstr "" | 941 | msgstr "" |
879 | 942 | ||
880 | #: plugins/check_http.c:658 | 943 | #: plugins/check_http.c:668 |
881 | #, c-format | 944 | #, c-format |
882 | msgid "HTTP WARNING: %s\n" | 945 | msgid "HTTP WARNING: %s\n" |
883 | msgstr "" | 946 | msgstr "" |
884 | 947 | ||
885 | #: plugins/check_http.c:666 | 948 | #: plugins/check_http.c:686 |
886 | msgid "UNKNOWN" | ||
887 | msgstr "" | ||
888 | |||
889 | #: plugins/check_http.c:668 plugins/check_http.c:918 plugins/check_procs.c:249 | ||
890 | msgid "OK" | ||
891 | msgstr "" | ||
892 | |||
893 | #: plugins/check_http.c:670 plugins/check_procs.c:251 | ||
894 | msgid "WARNING" | ||
895 | msgstr "" | ||
896 | |||
897 | #: plugins/check_http.c:672 plugins/check_procs.c:256 | ||
898 | msgid "CRITICAL" | ||
899 | msgstr "" | ||
900 | |||
901 | #: plugins/check_http.c:676 | ||
902 | #, c-format | 949 | #, c-format |
903 | msgid " - %s - %.3f second response time %s%s|%s %s\n" | 950 | msgid " - %s - %.3f second response time %s%s|%s %s\n" |
904 | msgstr "" | 951 | msgstr "" |
905 | 952 | ||
906 | #: plugins/check_http.c:688 | 953 | #: plugins/check_http.c:698 |
907 | #, c-format | 954 | #, c-format |
908 | msgid "HTTP problem: %s - %.3f second response time %s%s|%s %s\n" | 955 | msgid "HTTP problem: %s - %.3f second response time %s%s|%s %s\n" |
909 | msgstr "" | 956 | msgstr "" |
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 |
913 | msgid "HTTP OK %s - %.3f second response time %s%s|%s %s\n" | 960 | msgid "HTTP OK %s - %.3f second response time %s%s|%s %s\n" |
914 | msgstr "" | 961 | msgstr "" |
915 | 962 | ||
916 | #: plugins/check_http.c:709 | 963 | #: plugins/check_http.c:719 |
917 | #, c-format | 964 | #, c-format |
918 | msgid "CRITICAL - string not found%s|%s %s\n" | 965 | msgid "CRITICAL - string not found%s|%s %s\n" |
919 | msgstr "" | 966 | msgstr "" |
920 | 967 | ||
921 | #: plugins/check_http.c:727 | 968 | #: plugins/check_http.c:737 |
922 | #, c-format | 969 | #, c-format |
923 | msgid "CRITICAL - pattern not found%s|%s %s\n" | 970 | msgid "CRITICAL - pattern not found%s|%s %s\n" |
924 | msgstr "" | 971 | msgstr "" |
925 | 972 | ||
926 | #: plugins/check_http.c:734 | 973 | #: plugins/check_http.c:744 |
927 | #, c-format | 974 | #, c-format |
928 | msgid "CRITICAL - Execute Error: %s\n" | 975 | msgid "CRITICAL - Execute Error: %s\n" |
929 | msgstr "" | 976 | msgstr "" |
930 | 977 | ||
931 | #: plugins/check_http.c:744 | 978 | #: plugins/check_http.c:754 |
932 | #, c-format | 979 | #, c-format |
933 | msgid "HTTP WARNING: page size %d too small%s|%s\n" | 980 | msgid "HTTP WARNING: page size %d too small%s|%s\n" |
934 | msgstr "" | 981 | msgstr "" |
935 | 982 | ||
936 | #: plugins/check_http.c:749 | 983 | #: plugins/check_http.c:759 |
937 | #, c-format | 984 | #, c-format |
938 | msgid "HTTP OK %s - %d bytes in %.3f seconds %s%s|%s %s\n" | 985 | msgid "HTTP OK %s - %d bytes in %.3f seconds %s%s|%s %s\n" |
939 | msgstr "" | 986 | msgstr "" |
940 | 987 | ||
941 | #: plugins/check_http.c:785 | 988 | #: plugins/check_http.c:795 |
942 | msgid "ERROR: could not allocate addr\n" | 989 | msgid "ERROR: could not allocate addr\n" |
943 | msgstr "" | 990 | msgstr "" |
944 | 991 | ||
945 | #: plugins/check_http.c:789 plugins/check_http.c:809 | 992 | #: plugins/check_http.c:799 plugins/check_http.c:819 |
946 | msgid "ERROR: could not allocate url\n" | 993 | msgid "ERROR: could not allocate url\n" |
947 | msgstr "" | 994 | msgstr "" |
948 | 995 | ||
949 | #: plugins/check_http.c:799 | 996 | #: plugins/check_http.c:809 |
950 | #, c-format | 997 | #, c-format |
951 | msgid "UNKNOWN - Could not find redirect location - %s%s\n" | 998 | msgid "UNKNOWN - Could not find redirect location - %s%s\n" |
952 | msgstr "" | 999 | msgstr "" |
953 | 1000 | ||
954 | #: plugins/check_http.c:852 | 1001 | #: plugins/check_http.c:862 |
955 | #, c-format | 1002 | #, c-format |
956 | msgid "UNKNOWN - Could not parse redirect location - %s%s\n" | 1003 | msgid "UNKNOWN - Could not parse redirect location - %s%s\n" |
957 | msgstr "" | 1004 | msgstr "" |
958 | 1005 | ||
959 | #: plugins/check_http.c:862 | 1006 | #: plugins/check_http.c:872 |
960 | #, c-format | 1007 | #, c-format |
961 | msgid "WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n" | 1008 | msgid "WARNING - maximum redirection depth %d exceeded - %s://%s:%d%s%s\n" |
962 | msgstr "" | 1009 | msgstr "" |
963 | 1010 | ||
964 | #: plugins/check_http.c:870 | 1011 | #: plugins/check_http.c:880 |
965 | #, c-format | 1012 | #, c-format |
966 | msgid "WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n" | 1013 | msgid "WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n" |
967 | msgstr "" | 1014 | msgstr "" |
968 | 1015 | ||
969 | #: plugins/check_http.c:918 | 1016 | #: plugins/check_http.c:928 |
970 | #, c-format | 1017 | #, c-format |
971 | msgid "SSL seeding: %s\n" | 1018 | msgid "SSL seeding: %s\n" |
972 | msgstr "" | 1019 | msgstr "" |
973 | 1020 | ||
974 | #: plugins/check_http.c:918 | 1021 | #: plugins/check_http.c:928 |
975 | msgid "Failed" | 1022 | msgid "Failed" |
976 | msgstr "" | 1023 | msgstr "" |
977 | 1024 | ||
978 | #: plugins/check_http.c:925 | 1025 | #: plugins/check_http.c:935 |
979 | msgid "CRITICAL - Cannot create SSL context.\n" | 1026 | msgid "CRITICAL - Cannot create SSL context.\n" |
980 | msgstr "" | 1027 | msgstr "" |
981 | 1028 | ||
982 | #: plugins/check_http.c:949 | 1029 | #: plugins/check_http.c:959 |
983 | msgid "CRITICAL - Cannot initiate SSL handshake.\n" | 1030 | msgid "CRITICAL - Cannot initiate SSL handshake.\n" |
984 | msgstr "" | 1031 | msgstr "" |
985 | 1032 | ||
986 | #: plugins/check_http.c:977 plugins/check_http.c:989 | 1033 | #: plugins/check_http.c:987 plugins/check_http.c:999 |
987 | msgid "CRITICAL - Wrong time format in certificate.\n" | 1034 | msgid "CRITICAL - Wrong time format in certificate.\n" |
988 | msgstr "" | 1035 | msgstr "" |
989 | 1036 | ||
990 | #: plugins/check_http.c:1018 | 1037 | #: plugins/check_http.c:1028 |
991 | #, c-format | 1038 | #, c-format |
992 | msgid "WARNING - Certificate expires in %d day(s) (%s).\n" | 1039 | msgid "WARNING - Certificate expires in %d day(s) (%s).\n" |
993 | msgstr "" | 1040 | msgstr "" |
994 | 1041 | ||
995 | #: plugins/check_http.c:1022 | 1042 | #: plugins/check_http.c:1032 |
996 | #, c-format | 1043 | #, c-format |
997 | msgid "CRITICAL - Certificate expired on %s.\n" | 1044 | msgid "CRITICAL - Certificate expired on %s.\n" |
998 | msgstr "" | 1045 | msgstr "" |
999 | 1046 | ||
1000 | #: plugins/check_http.c:1027 | 1047 | #: plugins/check_http.c:1037 |
1001 | #, c-format | 1048 | #, c-format |
1002 | msgid "WARNING - Certificate expires today (%s).\n" | 1049 | msgid "WARNING - Certificate expires today (%s).\n" |
1003 | msgstr "" | 1050 | msgstr "" |
1004 | 1051 | ||
1005 | #: plugins/check_http.c:1031 | 1052 | #: plugins/check_http.c:1041 |
1006 | #, c-format | 1053 | #, c-format |
1007 | msgid "OK - Certificate will expire on %s.\n" | 1054 | msgid "OK - Certificate will expire on %s.\n" |
1008 | msgstr "" | 1055 | msgstr "" |
1009 | 1056 | ||
1010 | #: plugins/check_http.c:1106 | 1057 | #: plugins/check_http.c:1116 |
1011 | msgid "" | 1058 | msgid "" |
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" |
1016 | msgstr "" | 1063 | msgstr "" |
1017 | 1064 | ||
1018 | #: plugins/check_http.c:1114 | 1065 | #: plugins/check_http.c:1124 |
1019 | msgid "NOTE: One or both of -H and -I must be specified\n" | 1066 | msgid "NOTE: One or both of -H and -I must be specified\n" |
1020 | msgstr "" | 1067 | msgstr "" |
1021 | 1068 | ||
1022 | #: plugins/check_http.c:1118 | 1069 | #: plugins/check_http.c:1128 |
1023 | #, fuzzy, c-format | 1070 | #, fuzzy, c-format |
1024 | msgid "" | 1071 | msgid "" |
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 |
1044 | msgid "" | 1091 | msgid "" |
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" |
1050 | msgstr "" | 1097 | msgstr "" |
1051 | 1098 | ||
1052 | #: plugins/check_http.c:1137 | 1099 | #: plugins/check_http.c:1147 |
1053 | #, c-format | 1100 | #, c-format |
1054 | msgid "" | 1101 | msgid "" |
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" | ||
1065 | msgstr "" | 1114 | msgstr "" |
1066 | 1115 | ||
1067 | #: plugins/check_http.c:1149 | 1116 | #: plugins/check_http.c:1161 |
1068 | msgid "" | 1117 | msgid "" |
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" |
1075 | msgstr "" | 1124 | msgstr "" |
1076 | 1125 | ||
1077 | #: plugins/check_http.c:1158 | 1126 | #: plugins/check_http.c:1170 |
1078 | msgid "" | 1127 | msgid "" |
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" |
1087 | msgstr "" | 1136 | msgstr "" |
1088 | 1137 | ||
1089 | #: plugins/check_http.c:1174 | 1138 | #: plugins/check_http.c:1186 |
1090 | msgid "" | 1139 | msgid "" |
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" |
1099 | msgstr "" | 1148 | msgstr "" |
1100 | 1149 | ||
1101 | #: plugins/check_http.c:1183 | 1150 | #: plugins/check_http.c:1195 |
1102 | msgid "" | 1151 | msgid "" |
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" |
1107 | msgstr "" | 1156 | msgstr "" |
1108 | 1157 | ||
1109 | #: plugins/check_http.c:1187 | 1158 | #: plugins/check_http.c:1199 |
1110 | msgid "" | 1159 | msgid "" |
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" |
1120 | msgstr "" | 1169 | msgstr "" |
1121 | 1170 | ||
1122 | #: plugins/check_http.c:1194 | 1171 | #: plugins/check_http.c:1206 |
1123 | msgid "" | 1172 | msgid "" |
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" |
1133 | msgstr "" | 1182 | msgstr "" |
1134 | 1183 | ||
1135 | #: plugins/check_http.c:1212 | 1184 | #: plugins/check_http.c:1224 |
1136 | #, c-format | 1185 | #, c-format |
1137 | msgid "" | 1186 | msgid "" |
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 "" | |||
1412 | msgid "Unable to process MRTG log file\n" | 1461 | msgid "Unable to process MRTG log file\n" |
1413 | msgstr "" | 1462 | msgstr "" |
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 |
1417 | msgid "MRTG data has expired (%d minutes old)\n" | 1466 | msgid "MRTG data has expired (%d minutes old)\n" |
1418 | msgstr "" | 1467 | msgstr "" |
1419 | 1468 | ||
1420 | #: plugins/check_mrtg.c:143 | 1469 | #: plugins/check_mrtg.c:141 plugins/check_mrtgtraf.c:179 |
1421 | msgid "Ave" | 1470 | #: plugins/check_mrtgtraf.c:180 |
1471 | msgid "Avg" | ||
1422 | msgstr "" | 1472 | msgstr "" |
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 | ||
1427 | msgid "Max" | 1476 | msgid "Max" |
1428 | msgstr "" | 1477 | msgstr "" |
1429 | 1478 | ||
1430 | #: plugins/check_mrtg.c:207 plugins/check_mrtg.c:259 | 1479 | #: plugins/check_mrtg.c:211 plugins/check_mrtg.c:263 |
1431 | msgid "Invalid variable number\n" | 1480 | msgid "Invalid variable number\n" |
1432 | msgstr "" | 1481 | msgstr "" |
1433 | 1482 | ||
1434 | #: plugins/check_mrtg.c:242 | 1483 | #: plugins/check_mrtg.c:246 |
1435 | #, c-format | 1484 | #, c-format |
1436 | msgid "" | 1485 | msgid "" |
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" |
1439 | msgstr "" | 1488 | msgstr "" |
1440 | 1489 | ||
1441 | #: plugins/check_mrtg.c:286 | 1490 | #: plugins/check_mrtg.c:290 |
1442 | msgid "You must supply the variable number\n" | 1491 | msgid "You must supply the variable number\n" |
1443 | msgstr "" | 1492 | msgstr "" |
1444 | 1493 | ||
1445 | #: plugins/check_mrtg.c:310 | 1494 | #: plugins/check_mrtg.c:314 |
1446 | msgid "" | 1495 | msgid "" |
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" |
1449 | msgstr "" | 1498 | msgstr "" |
1450 | 1499 | ||
1451 | #: plugins/check_mrtg.c:318 | 1500 | #: plugins/check_mrtg.c:322 |
1452 | msgid "" | 1501 | msgid "" |
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" |
1465 | msgstr "" | 1514 | msgstr "" |
1466 | 1515 | ||
1467 | #: plugins/check_mrtg.c:332 | 1516 | #: plugins/check_mrtg.c:336 |
1468 | #, c-format | 1517 | #, c-format |
1469 | msgid "" | 1518 | msgid "" |
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" |
1475 | msgstr "" | 1524 | msgstr "" |
1476 | 1525 | ||
1477 | #: plugins/check_mrtg.c:339 | 1526 | #: plugins/check_mrtg.c:343 |
1478 | msgid "" | 1527 | msgid "" |
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" |
1484 | msgstr "" | 1533 | msgstr "" |
1485 | 1534 | ||
1486 | #: plugins/check_mrtg.c:345 | 1535 | #: plugins/check_mrtg.c:349 |
1487 | msgid "" | 1536 | msgid "" |
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" |
1496 | msgstr "" | 1545 | msgstr "" |
1497 | 1546 | ||
1498 | #: plugins/check_mrtg.c:352 | 1547 | #: plugins/check_mrtg.c:356 |
1499 | msgid "" | 1548 | msgid "" |
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" |
1508 | msgstr "" | 1557 | msgstr "" |
1509 | 1558 | ||
1510 | #: plugins/check_mrtg.c:372 | 1559 | #: plugins/check_mrtg.c:376 |
1511 | #, c-format | 1560 | #, c-format |
1512 | msgid "" | 1561 | msgid "" |
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" |
1515 | msgstr "" | 1564 | msgstr "" |
1516 | 1565 | ||
1517 | #: plugins/check_mrtgtraf.c:174 | 1566 | #: plugins/check_mrtgtraf.c:178 |
1518 | #, c-format | 1567 | #, c-format |
1519 | msgid "Traffic CRITICAL %s. In = %0.1f %s, %s. Out = %0.1f %s" | 1568 | msgid "%s. In = %0.1f %s, %s. Out = %0.1f %s|%s %s\n" |
1520 | msgstr "" | 1569 | msgstr "" |
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 | ||
1525 | msgid "Avg" | ||
1526 | msgstr "" | ||
1527 | |||
1528 | #: plugins/check_mrtgtraf.c:182 | ||
1529 | #, c-format | ||
1530 | msgid "Traffic WARNING %s. In = %0.1f %s, %s. Out = %0.1f %s" | ||
1531 | msgstr "" | ||
1532 | |||
1533 | #: plugins/check_mrtgtraf.c:188 | ||
1534 | #, c-format | 1572 | #, c-format |
1535 | msgid "Traffic OK - %s. In = %0.1f %s, %s. Out = %0.1f %s\n" | 1573 | msgid "Traffic %s - %s\n" |
1536 | msgstr "" | 1574 | msgstr "" |
1537 | 1575 | ||
1538 | #: plugins/check_mrtgtraf.c:193 | 1576 | #: plugins/check_mrtgtraf.c:330 |
1539 | #, c-format | ||
1540 | msgid "UNKNOWN %s\n" | ||
1541 | msgstr "" | ||
1542 | |||
1543 | #: plugins/check_mrtgtraf.c:332 | ||
1544 | msgid "" | 1577 | msgid "" |
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" |
1555 | msgstr "" | 1588 | msgstr "" |
1556 | 1589 | ||
1557 | #: plugins/check_mrtgtraf.c:344 | 1590 | #: plugins/check_mrtgtraf.c:342 |
1558 | msgid "" | 1591 | msgid "" |
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" |
1567 | msgstr "" | 1600 | msgstr "" |
1568 | 1601 | ||
1569 | #: plugins/check_mrtgtraf.c:352 | 1602 | #: plugins/check_mrtgtraf.c:350 |
1570 | msgid "" | 1603 | msgid "" |
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" |
1579 | msgstr "" | 1612 | msgstr "" |
1580 | 1613 | ||
1581 | #: plugins/check_mrtgtraf.c:370 | 1614 | #: plugins/check_mrtgtraf.c:368 |
1582 | #, c-format | 1615 | #, c-format |
1583 | msgid "" | 1616 | msgid "" |
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 "" | |||
1616 | msgid "Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n" | 1649 | msgid "Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n" |
1617 | msgstr "" | 1650 | msgstr "" |
1618 | 1651 | ||
1619 | #: plugins/check_nagios.c:78 | 1652 | #: plugins/check_nagios.c:81 |
1620 | msgid "Error: Cannot open status log for reading!\n" | 1653 | msgid "Error: Cannot open status log for reading!\n" |
1621 | msgstr "" | 1654 | msgstr "" |
1622 | 1655 | ||
1623 | #: plugins/check_nagios.c:116 | 1656 | #: plugins/check_nagios.c:138 |
1624 | #, c-format | 1657 | #, c-format |
1625 | msgid "Found process: %s\n" | 1658 | msgid "Found process: %s %s\n" |
1626 | msgstr "" | 1659 | msgstr "" |
1627 | 1660 | ||
1628 | #: plugins/check_nagios.c:136 | 1661 | #: plugins/check_nagios.c:159 |
1629 | msgid "Could not locate a running Nagios process!\n" | 1662 | msgid "Could not locate a running Nagios process!\n" |
1630 | msgstr "" | 1663 | msgstr "" |
1631 | 1664 | ||
1632 | #: plugins/check_nagios.c:147 | 1665 | #: plugins/check_nagios.c:170 |
1633 | #, c-format | 1666 | #, c-format |
1634 | msgid "Nagios %s: located %d process%s, status log updated %d second%s ago\n" | 1667 | msgid "Nagios %s: located %d process%s, status log updated %d second%s ago\n" |
1635 | msgstr "" | 1668 | msgstr "" |
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 |
1639 | msgid "" | 1672 | msgid "" |
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" |
1642 | msgstr "" | 1675 | msgstr "" |
1643 | 1676 | ||
1644 | #: plugins/check_nagios.c:200 | 1677 | #: plugins/check_nagios.c:223 |
1645 | #, c-format | 1678 | #, c-format |
1646 | msgid "" | 1679 | msgid "" |
1647 | "%s: Unknown argument: %c\n" | 1680 | "%s: Unknown argument: %c\n" |
1648 | "\n" | 1681 | "\n" |
1649 | msgstr "" | 1682 | msgstr "" |
1650 | 1683 | ||
1651 | #: plugins/check_nagios.c:232 | 1684 | #: plugins/check_nagios.c:255 |
1652 | #, c-format | 1685 | #, c-format |
1653 | msgid "" | 1686 | msgid "" |
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" |
1656 | msgstr "" | 1689 | msgstr "" |
1657 | 1690 | ||
1658 | #: plugins/check_nagios.c:236 | 1691 | #: plugins/check_nagios.c:259 |
1659 | #, c-format | 1692 | #, c-format |
1660 | msgid "" | 1693 | msgid "" |
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" |
1663 | msgstr "" | 1696 | msgstr "" |
1664 | 1697 | ||
1665 | #: plugins/check_nagios.c:254 | 1698 | #: plugins/check_nagios.c:277 |
1666 | msgid "" | 1699 | msgid "" |
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" |
1675 | msgstr "" | 1708 | msgstr "" |
1676 | 1709 | ||
1677 | #: plugins/check_nagios.c:265 | 1710 | #: plugins/check_nagios.c:288 |
1678 | msgid "" | 1711 | msgid "" |
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" |
1685 | msgstr "" | 1718 | msgstr "" |
1686 | 1719 | ||
1687 | #: plugins/check_nagios.c:273 | 1720 | #: plugins/check_nagios.c:296 |
1688 | msgid "" | 1721 | msgid "" |
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" |
1692 | msgstr "" | 1725 | msgstr "" |
1693 | 1726 | ||
1694 | #: plugins/check_nagios.c:286 | 1727 | #: plugins/check_nagios.c:309 |
1695 | #, c-format | 1728 | #, c-format |
1696 | msgid "" | 1729 | msgid "" |
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" |
1698 | msgstr "" | 1731 | msgstr "" |
1699 | 1732 | ||
1700 | #: plugins/check_nt.c:118 | 1733 | #: plugins/check_nt.c:127 |
1701 | #, c-format | 1734 | #, c-format |
1702 | msgid "Wrong client version - running: %s, required: %s" | 1735 | msgid "Wrong client version - running: %s, required: %s" |
1703 | msgstr "" | 1736 | msgstr "" |
1704 | 1737 | ||
1705 | #: plugins/check_nt.c:129 plugins/check_nt.c:182 | 1738 | #: plugins/check_nt.c:138 plugins/check_nt.c:198 |
1706 | msgid "missing -l parameters" | 1739 | msgid "missing -l parameters" |
1707 | msgstr "" | 1740 | msgstr "" |
1708 | 1741 | ||
1709 | #: plugins/check_nt.c:131 | 1742 | #: plugins/check_nt.c:140 |
1710 | msgid "wrong -l parameter." | 1743 | msgid "wrong -l parameter." |
1711 | msgstr "" | 1744 | msgstr "" |
1712 | 1745 | ||
1713 | #: plugins/check_nt.c:135 | 1746 | #: plugins/check_nt.c:144 |
1714 | msgid "CPU Load" | 1747 | msgid "CPU Load" |
1715 | msgstr "" | 1748 | msgstr "" |
1716 | 1749 | ||
1717 | #: plugins/check_nt.c:156 | 1750 | #: plugins/check_nt.c:145 |
1751 | msgid " " | ||
1752 | msgstr "" | ||
1753 | |||
1754 | #: plugins/check_nt.c:167 | ||
1718 | #, c-format | 1755 | #, c-format |
1719 | msgid " %lu%% (%lu min average)" | 1756 | msgid " %lu%% (%lu min average)" |
1720 | msgstr "" | 1757 | msgstr "" |
1721 | 1758 | ||
1722 | #: plugins/check_nt.c:163 | 1759 | #: plugins/check_nt.c:169 |
1760 | #, c-format | ||
1761 | msgid " '%lu min avg Load'=%lu%%;%lu;%lu;0;100" | ||
1762 | msgstr "" | ||
1763 | |||
1764 | #: plugins/check_nt.c:179 | ||
1723 | msgid "not enough values for -l parameters" | 1765 | msgid "not enough values for -l parameters" |
1724 | msgstr "" | 1766 | msgstr "" |
1725 | 1767 | ||
1726 | #: plugins/check_nt.c:175 | 1768 | #: plugins/check_nt.c:191 |
1727 | #, c-format | 1769 | #, c-format |
1728 | msgid "System Uptime : %u day(s) %u hour(s) %u minute(s)" | 1770 | msgid "System Uptime : %u day(s) %u hour(s) %u minute(s)" |
1729 | msgstr "" | 1771 | msgstr "" |
1730 | 1772 | ||
1731 | #: plugins/check_nt.c:184 | 1773 | #: plugins/check_nt.c:200 |
1732 | msgid "wrong -l argument" | 1774 | msgid "wrong -l argument" |
1733 | msgstr "" | 1775 | msgstr "" |
1734 | 1776 | ||
1735 | #: plugins/check_nt.c:193 | 1777 | #: plugins/check_nt.c:211 |
1736 | #, c-format | 1778 | #, c-format |
1737 | msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)" | 1779 | msgid "%s:\\ - total: %.2f Gb - used: %.2f Gb (%.0f%%) - free %.2f Gb (%.0f%%)" |
1738 | msgstr "" | 1780 | msgstr "" |
1739 | 1781 | ||
1740 | #: plugins/check_nt.c:208 | 1782 | #: plugins/check_nt.c:214 |
1783 | #, c-format | ||
1784 | msgid "'%s:\\ Used Space'=%.2fGb;%.2f;%.2f;0.00;%.2f" | ||
1785 | msgstr "" | ||
1786 | |||
1787 | #: plugins/check_nt.c:228 | ||
1741 | msgid "Free disk space : Invalid drive " | 1788 | msgid "Free disk space : Invalid drive " |
1742 | msgstr "" | 1789 | msgstr "" |
1743 | 1790 | ||
1744 | #: plugins/check_nt.c:218 | 1791 | #: plugins/check_nt.c:238 |
1745 | msgid "No service/process specified" | 1792 | msgid "No service/process specified" |
1746 | msgstr "" | 1793 | msgstr "" |
1747 | 1794 | ||
1748 | #: plugins/check_nt.c:222 | 1795 | #: plugins/check_nt.c:242 |
1749 | msgid "ShowAll" | 1796 | msgid "ShowAll" |
1750 | msgstr "" | 1797 | msgstr "" |
1751 | 1798 | ||
1752 | #: plugins/check_nt.c:222 | 1799 | #: plugins/check_nt.c:242 |
1753 | msgid "ShowFail" | 1800 | msgid "ShowFail" |
1754 | msgstr "" | 1801 | msgstr "" |
1755 | 1802 | ||
1756 | #: plugins/check_nt.c:237 | 1803 | #: plugins/check_nt.c:262 |
1757 | #, c-format | 1804 | #, c-format |
1758 | msgid "" | 1805 | msgid "" |
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%%)" |
1760 | msgstr "" | 1807 | msgstr "" |
1761 | 1808 | ||
1762 | #: plugins/check_nt.c:253 plugins/check_nt.c:289 | 1809 | #: plugins/check_nt.c:265 |
1810 | #, c-format | ||
1811 | msgid "'Memory usage'=%.2fMb;%.2f;%.2f;0.00;%.2f" | ||
1812 | msgstr "" | ||
1813 | |||
1814 | #: plugins/check_nt.c:301 plugins/check_nt.c:383 | ||
1763 | msgid "No counter specified" | 1815 | msgid "No counter specified" |
1764 | msgstr "" | 1816 | msgstr "" |
1765 | 1817 | ||
1766 | #: plugins/check_nt.c:319 | 1818 | #: plugins/check_nt.c:319 |
1819 | msgid "%" | ||
1820 | msgstr "" | ||
1821 | |||
1822 | #: plugins/check_nt.c:334 | ||
1823 | msgid "Minimum value contains non-numbers" | ||
1824 | msgstr "" | ||
1825 | |||
1826 | #: plugins/check_nt.c:338 | ||
1827 | msgid "Maximum value contains non-numbers" | ||
1828 | msgstr "" | ||
1829 | |||
1830 | #: plugins/check_nt.c:345 | ||
1831 | msgid "No unit counter specified" | ||
1832 | msgstr "" | ||
1833 | |||
1834 | #: plugins/check_nt.c:413 | ||
1767 | msgid "Please specify a variable to check" | 1835 | msgid "Please specify a variable to check" |
1768 | msgstr "" | 1836 | msgstr "" |
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 |
1773 | msgid "" | 1841 | msgid "" |
@@ -1775,11 +1843,11 @@ msgid "" | |||
1775 | "Type '%s -h' for additional help\n" | 1843 | "Type '%s -h' for additional help\n" |
1776 | msgstr "" | 1844 | msgstr "" |
1777 | 1845 | ||
1778 | #: plugins/check_nt.c:457 | 1846 | #: plugins/check_nt.c:553 |
1779 | msgid "None" | 1847 | msgid "None" |
1780 | msgstr "" | 1848 | msgstr "" |
1781 | 1849 | ||
1782 | #: plugins/check_nt.c:516 | 1850 | #: plugins/check_nt.c:612 |
1783 | msgid "" | 1851 | msgid "" |
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" |
1789 | msgstr "" | 1857 | msgstr "" |
1790 | 1858 | ||
1791 | #: plugins/check_nt.c:521 | 1859 | #: plugins/check_nt.c:617 |
1792 | #, c-format | 1860 | #, c-format |
1793 | msgid "" | 1861 | msgid "" |
1794 | "\n" | 1862 | "\n" |
@@ -1811,19 +1879,19 @@ msgid "" | |||
1811 | " Print version information\n" | 1879 | " Print version information\n" |
1812 | msgstr "" | 1880 | msgstr "" |
1813 | 1881 | ||
1814 | #: plugins/check_nt.c:539 | 1882 | #: plugins/check_nt.c:635 |
1815 | msgid "" | 1883 | msgid "" |
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" |
1818 | msgstr "" | 1886 | msgstr "" |
1819 | 1887 | ||
1820 | #: plugins/check_nt.c:542 | 1888 | #: plugins/check_nt.c:638 |
1821 | msgid "" | 1889 | msgid "" |
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" |
1824 | msgstr "" | 1892 | msgstr "" |
1825 | 1893 | ||
1826 | #: plugins/check_nt.c:545 | 1894 | #: plugins/check_nt.c:641 |
1827 | msgid "" | 1895 | msgid "" |
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" |
1835 | msgstr "" | 1903 | msgstr "" |
1836 | 1904 | ||
1837 | #: plugins/check_nt.c:552 | 1905 | #: plugins/check_nt.c:648 |
1838 | msgid "" | 1906 | msgid "" |
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" |
1841 | msgstr "" | 1909 | msgstr "" |
1842 | 1910 | ||
1843 | #: plugins/check_nt.c:555 | 1911 | #: plugins/check_nt.c:651 |
1844 | msgid "" | 1912 | msgid "" |
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" |
1848 | msgstr "" | 1916 | msgstr "" |
1849 | 1917 | ||
1850 | #: plugins/check_nt.c:559 | 1918 | #: plugins/check_nt.c:655 |
1851 | msgid "" | 1919 | msgid "" |
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" |
1854 | msgstr "" | 1922 | msgstr "" |
1855 | 1923 | ||
1856 | #: plugins/check_nt.c:562 | 1924 | #: plugins/check_nt.c:658 |
1857 | msgid "" | 1925 | msgid "" |
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" |
1863 | msgstr "" | 1931 | msgstr "" |
1864 | 1932 | ||
1865 | #: plugins/check_nt.c:568 | 1933 | #: plugins/check_nt.c:664 |
1866 | msgid "" | 1934 | msgid "" |
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" |
1869 | msgstr "" | 1937 | msgstr "" |
1870 | 1938 | ||
1871 | #: plugins/check_nt.c:571 | 1939 | #: plugins/check_nt.c:667 |
1872 | #, c-format | 1940 | #, c-format |
1873 | msgid "" | 1941 | msgid "" |
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" |
1882 | msgstr "" | 1950 | msgstr "" |
1883 | 1951 | ||
1884 | #: plugins/check_nt.c:580 | 1952 | #: plugins/check_nt.c:676 |
1885 | msgid "" | 1953 | msgid "" |
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" |
1891 | msgstr "" | 1959 | msgstr "" |
1892 | 1960 | ||
1893 | #: plugins/check_nt.c:591 | 1961 | #: plugins/check_nt.c:687 |
1894 | #, c-format | 1962 | #, c-format |
1895 | msgid "" | 1963 | msgid "" |
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" |
1898 | msgstr "" | 1966 | msgstr "" |
1899 | 1967 | ||
1900 | #: plugins/check_nwstat.c:143 | 1968 | #: plugins/check_nwstat.c:147 |
1901 | #, c-format | 1969 | #, c-format |
1902 | msgid "NetWare %s: " | 1970 | msgid "NetWare %s: " |
1903 | msgstr "" | 1971 | msgstr "" |
1904 | 1972 | ||
1905 | #: plugins/check_nwstat.c:174 | 1973 | #: plugins/check_nwstat.c:178 |
1906 | #, c-format | 1974 | #, c-format |
1907 | msgid "Up %s," | 1975 | msgid "Up %s," |
1908 | msgstr "" | 1976 | msgstr "" |
1909 | 1977 | ||
1910 | #: plugins/check_nwstat.c:182 | 1978 | #: plugins/check_nwstat.c:186 |
1911 | #, c-format | 1979 | #, c-format |
1912 | msgid "Load %s - %s %s-min load average = %lu%%" | 1980 | msgid "Load %s - %s %s-min load average = %lu%%" |
1913 | msgstr "" | 1981 | msgstr "" |
1914 | 1982 | ||
1915 | #: plugins/check_nwstat.c:203 | 1983 | #: plugins/check_nwstat.c:207 |
1916 | #, c-format | 1984 | #, c-format |
1917 | msgid "Conns %s - %lu current connections" | 1985 | msgid "Conns %s - %lu current connections" |
1918 | msgstr "" | 1986 | msgstr "" |
1919 | 1987 | ||
1920 | #: plugins/check_nwstat.c:222 | 1988 | #: plugins/check_nwstat.c:226 |
1921 | #, c-format | 1989 | #, c-format |
1922 | msgid "%s: Long term cache hits = %lu%%" | 1990 | msgid "%s: Long term cache hits = %lu%%" |
1923 | msgstr "" | 1991 | msgstr "" |
1924 | 1992 | ||
1925 | #: plugins/check_nwstat.c:241 | 1993 | #: plugins/check_nwstat.c:245 |
1926 | #, c-format | 1994 | #, c-format |
1927 | msgid "%s: Total cache buffers = %lu" | 1995 | msgid "%s: Total cache buffers = %lu" |
1928 | msgstr "" | 1996 | msgstr "" |
1929 | 1997 | ||
1930 | #: plugins/check_nwstat.c:260 | 1998 | #: plugins/check_nwstat.c:264 |
1931 | #, c-format | 1999 | #, c-format |
1932 | msgid "%s: Dirty cache buffers = %lu" | 2000 | msgid "%s: Dirty cache buffers = %lu" |
1933 | msgstr "" | 2001 | msgstr "" |
1934 | 2002 | ||
1935 | #: plugins/check_nwstat.c:279 | 2003 | #: plugins/check_nwstat.c:283 |
1936 | #, c-format | 2004 | #, c-format |
1937 | msgid "%s: LRU sitting time = %lu minutes" | 2005 | msgid "%s: LRU sitting time = %lu minutes" |
1938 | msgstr "" | 2006 | msgstr "" |
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 |
1944 | msgid "Error: Volume '%s' does not exist!" | 2012 | msgid "Error: Volume '%s' does not exist!" |
1945 | msgstr "" | 2013 | msgstr "" |
1946 | 2014 | ||
1947 | #: plugins/check_nwstat.c:302 | 2015 | #: plugins/check_nwstat.c:306 |
1948 | #, c-format | 2016 | #, c-format |
1949 | msgid "%s%lu KB free on volume %s" | 2017 | msgid "%s%lu KB free on volume %s" |
1950 | msgstr "" | 2018 | msgstr "" |
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 |
1954 | msgid "Only " | 2022 | msgid "Only " |
1955 | msgstr "" | 2023 | msgstr "" |
1956 | 2024 | ||
1957 | #: plugins/check_nwstat.c:338 | 2025 | #: plugins/check_nwstat.c:342 |
1958 | #, c-format | 2026 | #, c-format |
1959 | msgid "%lu MB (%lu%%) free on volume %s" | 2027 | msgid "%lu MB (%lu%%) free on volume %s" |
1960 | msgstr "" | 2028 | msgstr "" |
1961 | 2029 | ||
1962 | #: plugins/check_nwstat.c:357 | 2030 | #: plugins/check_nwstat.c:361 |
1963 | #, c-format | 2031 | #, c-format |
1964 | msgid "Directory Services Database is %s (DS version %s)" | 2032 | msgid "Directory Services Database is %s (DS version %s)" |
1965 | msgstr "" | 2033 | msgstr "" |
1966 | 2034 | ||
1967 | #: plugins/check_nwstat.c:371 | 2035 | #: plugins/check_nwstat.c:375 |
1968 | #, c-format | 2036 | #, c-format |
1969 | msgid "Logins are %s" | 2037 | msgid "Logins are %s" |
1970 | msgstr "" | 2038 | msgstr "" |
1971 | 2039 | ||
1972 | #: plugins/check_nwstat.c:371 | 2040 | #: plugins/check_nwstat.c:375 |
1973 | msgid "enabled" | 2041 | msgid "enabled" |
1974 | msgstr "" | 2042 | msgstr "" |
1975 | 2043 | ||
1976 | #: plugins/check_nwstat.c:371 | 2044 | #: plugins/check_nwstat.c:375 |
1977 | msgid "disabled" | 2045 | msgid "disabled" |
1978 | msgstr "" | 2046 | msgstr "" |
1979 | 2047 | ||
1980 | #: plugins/check_nwstat.c:404 | 2048 | #: plugins/check_nwstat.c:408 |
1981 | #, c-format | 2049 | #, c-format |
1982 | msgid "%lu of %lu (%lu%%) packet receive buffers used" | 2050 | msgid "%lu of %lu (%lu%%) packet receive buffers used" |
1983 | msgstr "" | 2051 | msgstr "" |
1984 | 2052 | ||
1985 | #: plugins/check_nwstat.c:425 | 2053 | #: plugins/check_nwstat.c:429 |
1986 | #, c-format | 2054 | #, c-format |
1987 | msgid "%lu entries in SAP table" | 2055 | msgid "%lu entries in SAP table" |
1988 | msgstr "" | 2056 | msgstr "" |
1989 | 2057 | ||
1990 | #: plugins/check_nwstat.c:427 | 2058 | #: plugins/check_nwstat.c:431 |
1991 | #, c-format | 2059 | #, c-format |
1992 | msgid "%lu entries in SAP table for SAP type %d" | 2060 | msgid "%lu entries in SAP table for SAP type %d" |
1993 | msgstr "" | 2061 | msgstr "" |
1994 | 2062 | ||
1995 | #: plugins/check_nwstat.c:446 | 2063 | #: plugins/check_nwstat.c:450 |
1996 | #, c-format | 2064 | #, c-format |
1997 | msgid "%s%lu KB purgeable on volume %s" | 2065 | msgid "%s%lu KB purgeable on volume %s" |
1998 | msgstr "" | 2066 | msgstr "" |
1999 | 2067 | ||
2000 | #: plugins/check_nwstat.c:479 | 2068 | #: plugins/check_nwstat.c:483 |
2001 | #, c-format | 2069 | #, c-format |
2002 | msgid "%lu MB (%lu%%) purgeable on volume %s" | 2070 | msgid "%lu MB (%lu%%) purgeable on volume %s" |
2003 | msgstr "" | 2071 | msgstr "" |
2004 | 2072 | ||
2005 | #: plugins/check_nwstat.c:499 | 2073 | #: plugins/check_nwstat.c:503 |
2006 | #, c-format | 2074 | #, c-format |
2007 | msgid "%s%lu KB not yet purgeable on volume %s" | 2075 | msgid "%s%lu KB not yet purgeable on volume %s" |
2008 | msgstr "" | 2076 | msgstr "" |
2009 | 2077 | ||
2010 | #: plugins/check_nwstat.c:532 | 2078 | #: plugins/check_nwstat.c:536 |
2011 | #, c-format | 2079 | #, c-format |
2012 | msgid "%lu MB (%lu%%) not yet purgeable on volume %s" | 2080 | msgid "%lu MB (%lu%%) not yet purgeable on volume %s" |
2013 | msgstr "" | 2081 | msgstr "" |
2014 | 2082 | ||
2015 | #: plugins/check_nwstat.c:550 | 2083 | #: plugins/check_nwstat.c:554 |
2016 | #, c-format | 2084 | #, c-format |
2017 | msgid "%lu open files" | 2085 | msgid "%lu open files" |
2018 | msgstr "" | 2086 | msgstr "" |
2019 | 2087 | ||
2020 | #: plugins/check_nwstat.c:567 | 2088 | #: plugins/check_nwstat.c:571 |
2021 | #, c-format | 2089 | #, c-format |
2022 | msgid "%lu abended threads" | 2090 | msgid "%lu abended threads" |
2023 | msgstr "" | 2091 | msgstr "" |
2024 | 2092 | ||
2025 | #: plugins/check_nwstat.c:592 | 2093 | #: plugins/check_nwstat.c:596 |
2026 | #, c-format | 2094 | #, c-format |
2027 | msgid "%lu current service processes (%lu max)" | 2095 | msgid "%lu current service processes (%lu max)" |
2028 | msgstr "" | 2096 | msgstr "" |
2029 | 2097 | ||
2030 | #: plugins/check_nwstat.c:608 | 2098 | #: plugins/check_nwstat.c:612 |
2031 | msgid "Critical: Time not in sync with network!" | 2099 | msgid "Critical: Time not in sync with network!" |
2032 | msgstr "" | 2100 | msgstr "" |
2033 | 2101 | ||
2034 | #: plugins/check_nwstat.c:611 | 2102 | #: plugins/check_nwstat.c:615 |
2035 | msgid "OK! Time in sync with network!" | 2103 | msgid "OK! Time in sync with network!" |
2036 | msgstr "" | 2104 | msgstr "" |
2037 | 2105 | ||
2038 | #: plugins/check_nwstat.c:627 | 2106 | #: plugins/check_nwstat.c:631 |
2039 | #, c-format | 2107 | #, c-format |
2040 | msgid "LRU sitting time = %lu seconds" | 2108 | msgid "LRU sitting time = %lu seconds" |
2041 | msgstr "" | 2109 | msgstr "" |
2042 | 2110 | ||
2043 | #: plugins/check_nwstat.c:643 | 2111 | #: plugins/check_nwstat.c:647 |
2044 | #, c-format | 2112 | #, c-format |
2045 | msgid "dirty cache buffers = %lu%% of the total" | 2113 | msgid "dirty cache buffers = %lu%% of the total" |
2046 | msgstr "" | 2114 | msgstr "" |
2047 | 2115 | ||
2048 | #: plugins/check_nwstat.c:658 | 2116 | #: plugins/check_nwstat.c:662 |
2049 | #, c-format | 2117 | #, c-format |
2050 | msgid "total cache buffers = %lu%% of the original" | 2118 | msgid "total cache buffers = %lu%% of the original" |
2051 | msgstr "" | 2119 | msgstr "" |
2052 | 2120 | ||
2053 | #: plugins/check_nwstat.c:668 | 2121 | #: plugins/check_nwstat.c:672 |
2054 | #, c-format | 2122 | #, c-format |
2055 | msgid "NDS Version %s" | 2123 | msgid "NDS Version %s" |
2056 | msgstr "" | 2124 | msgstr "" |
2057 | 2125 | ||
2058 | #: plugins/check_nwstat.c:677 | 2126 | #: plugins/check_nwstat.c:681 |
2059 | #, c-format | 2127 | #, c-format |
2060 | msgid "Up %s" | 2128 | msgid "Up %s" |
2061 | msgstr "" | 2129 | msgstr "" |
2062 | 2130 | ||
2063 | #: plugins/check_nwstat.c:687 | 2131 | #: plugins/check_nwstat.c:691 |
2064 | #, c-format | 2132 | #, c-format |
2065 | msgid "Module %s version %s is loaded" | 2133 | msgid "Module %s version %s is loaded" |
2066 | msgstr "" | 2134 | msgstr "" |
2067 | 2135 | ||
2068 | #: plugins/check_nwstat.c:690 | 2136 | #: plugins/check_nwstat.c:694 |
2069 | #, c-format | 2137 | #, c-format |
2070 | msgid "Module %s is not loaded" | 2138 | msgid "Module %s is not loaded" |
2071 | msgstr "" | 2139 | msgstr "" |
2072 | 2140 | ||
2073 | #: plugins/check_nwstat.c:695 plugins/check_overcr.c:270 | 2141 | #: plugins/check_nwstat.c:699 plugins/check_overcr.c:270 |
2074 | msgid "Nothing to check!\n" | 2142 | msgid "Nothing to check!\n" |
2075 | msgstr "" | 2143 | msgstr "" |
2076 | 2144 | ||
2077 | #: plugins/check_nwstat.c:906 | 2145 | #: plugins/check_nwstat.c:912 |
2078 | #, c-format | 2146 | #, c-format |
2079 | msgid "" | 2147 | msgid "" |
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" |
2083 | msgstr "" | 2151 | msgstr "" |
2084 | 2152 | ||
2085 | #: plugins/check_nwstat.c:917 | 2153 | #: plugins/check_nwstat.c:923 |
2086 | msgid "" | 2154 | msgid "" |
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" |
2095 | msgstr "" | 2163 | msgstr "" |
2096 | 2164 | ||
2097 | #: plugins/check_nwstat.c:927 | 2165 | #: plugins/check_nwstat.c:933 |
2098 | msgid "" | 2166 | msgid "" |
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" |
2104 | msgstr "" | 2172 | msgstr "" |
2105 | 2173 | ||
2106 | #: plugins/check_nwstat.c:934 | 2174 | #: plugins/check_nwstat.c:940 |
2107 | msgid "" | 2175 | msgid "" |
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" |
2115 | msgstr "" | 2183 | msgstr "" |
2116 | 2184 | ||
2117 | #: plugins/check_nwstat.c:943 | 2185 | #: plugins/check_nwstat.c:949 |
2118 | msgid "" | 2186 | msgid "" |
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" |
2127 | msgstr "" | 2195 | msgstr "" |
2128 | 2196 | ||
2129 | #: plugins/check_nwstat.c:953 | 2197 | #: plugins/check_nwstat.c:959 |
2130 | msgid "" | 2198 | msgid "" |
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" |
2136 | msgstr "" | 2204 | msgstr "" |
2137 | 2205 | ||
2138 | #: plugins/check_nwstat.c:960 | 2206 | #: plugins/check_nwstat.c:966 |
2139 | msgid "" | 2207 | msgid "" |
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" |
2146 | msgstr "" | 2214 | msgstr "" |
2147 | 2215 | ||
2148 | #: plugins/check_nwstat.c:970 | 2216 | #: plugins/check_nwstat.c:976 |
2149 | msgid "" | 2217 | msgid "" |
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" |
2158 | msgstr "" | 2226 | msgstr "" |
2159 | 2227 | ||
2160 | #: plugins/check_nwstat.c:987 | 2228 | #: plugins/check_nwstat.c:993 |
2161 | #, c-format | 2229 | #, c-format |
2162 | msgid "" | 2230 | msgid "" |
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 "" | |||
2274 | msgid "PGSQL: CRITICAL - no connection to '%s' (%s).\n" | 2342 | msgid "PGSQL: CRITICAL - no connection to '%s' (%s).\n" |
2275 | msgstr "" | 2343 | msgstr "" |
2276 | 2344 | ||
2277 | #: plugins/check_pgsql.c:161 | 2345 | #: plugins/check_pgsql.c:169 |
2278 | #, c-format | 2346 | #, c-format |
2279 | msgid "PGSQL: CRITICAL - database %s (%d sec.)\n" | 2347 | msgid "PGSQL: %s - database %s (%d sec.)|%s\n" |
2280 | msgstr "" | 2348 | msgstr "" |
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 | ||
2284 | msgid "PGSQL: WARNING - database %s (%d sec.)\n" | ||
2285 | msgstr "" | ||
2286 | |||
2287 | #: plugins/check_pgsql.c:172 | ||
2288 | #, c-format | ||
2289 | msgid "PGSQL: ok - database %s (%d sec.)\n" | ||
2290 | msgstr "" | ||
2291 | |||
2292 | #: plugins/check_pgsql.c:220 plugins/check_snmp.c:449 plugins/negate.c:183 | ||
2293 | msgid "Timeout Interval must be an integer" | 2351 | msgid "Timeout Interval must be an integer" |
2294 | msgstr "" | 2352 | msgstr "" |
2295 | 2353 | ||
2296 | #: plugins/check_pgsql.c:226 plugins/check_pgsql.c:232 | 2354 | #: plugins/check_pgsql.c:225 plugins/check_pgsql.c:231 |
2297 | msgid "Invalid critical threshold" | 2355 | msgid "Invalid critical threshold" |
2298 | msgstr "" | 2356 | msgstr "" |
2299 | 2357 | ||
2300 | #: plugins/check_pgsql.c:238 | 2358 | #: plugins/check_pgsql.c:237 |
2301 | msgid "You gave an invalid host name" | 2359 | msgid "You gave an invalid host name" |
2302 | msgstr "" | 2360 | msgstr "" |
2303 | 2361 | ||
2304 | #: plugins/check_pgsql.c:244 | 2362 | #: plugins/check_pgsql.c:243 |
2305 | msgid "Port must be an integer" | 2363 | msgid "Port must be an integer" |
2306 | msgstr "" | 2364 | msgstr "" |
2307 | 2365 | ||
2308 | #: plugins/check_pgsql.c:250 | 2366 | #: plugins/check_pgsql.c:249 |
2309 | msgid "Database name is not valid" | 2367 | msgid "Database name is not valid" |
2310 | msgstr "" | 2368 | msgstr "" |
2311 | 2369 | ||
2312 | #: plugins/check_pgsql.c:256 | 2370 | #: plugins/check_pgsql.c:255 |
2313 | msgid "user name is not valid" | 2371 | msgid "user name is not valid" |
2314 | msgstr "" | 2372 | msgstr "" |
2315 | 2373 | ||
2316 | #: plugins/check_pgsql.c:390 | 2374 | #: plugins/check_pgsql.c:389 |
2317 | msgid "" | 2375 | msgid "" |
2318 | "Test whether a PostgreSQL DBMS is accepting connections.\n" | 2376 | "Test whether a PostgreSQL DBMS is accepting connections.\n" |
2319 | "\n" | 2377 | "\n" |
2320 | msgstr "" | 2378 | msgstr "" |
2321 | 2379 | ||
2322 | #: plugins/check_ping.c:80 | 2380 | #: plugins/check_ping.c:82 |
2323 | msgid "Could not parse arguments" | 2381 | msgid "Could not parse arguments" |
2324 | msgstr "" | 2382 | msgstr "" |
2325 | 2383 | ||
2326 | #: plugins/check_ping.c:123 | 2384 | #: plugins/check_ping.c:124 |
2327 | msgid "Error: Could not interpret output from ping command\n" | 2385 | msgid "Error: Could not interpret output from ping command\n" |
2328 | msgstr "" | 2386 | msgstr "" |
2329 | 2387 | ||
2330 | #: plugins/check_ping.c:139 | 2388 | #: plugins/check_ping.c:140 |
2331 | #, c-format | 2389 | #, c-format |
2332 | msgid "PING %s - %sPacket loss = %d%%" | 2390 | msgid "PING %s - %sPacket loss = %d%%" |
2333 | msgstr "" | 2391 | msgstr "" |
2334 | 2392 | ||
2335 | #: plugins/check_ping.c:142 | 2393 | #: plugins/check_ping.c:143 |
2336 | #, c-format | 2394 | #, c-format |
2337 | msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms" | 2395 | msgid "PING %s - %sPacket loss = %d%%, RTA = %2.2f ms" |
2338 | msgstr "" | 2396 | msgstr "" |
2339 | 2397 | ||
2340 | #: plugins/check_ping.c:233 | 2398 | #: plugins/check_ping.c:235 |
2341 | msgid "Could not realloc() addresses\n" | 2399 | msgid "Could not realloc() addresses\n" |
2342 | msgstr "" | 2400 | msgstr "" |
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 |
2346 | msgid "<max_packets> (%s) must be a non-negative number\n" | 2404 | msgid "<max_packets> (%s) must be a non-negative number\n" |
2347 | msgstr "" | 2405 | msgstr "" |
2348 | 2406 | ||
2349 | #: plugins/check_ping.c:271 | 2407 | #: plugins/check_ping.c:273 |
2350 | #, c-format | 2408 | #, c-format |
2351 | msgid "" | 2409 | msgid "" |
2352 | "Invalid host name/address: %s\n" | 2410 | "Invalid host name/address: %s\n" |
2353 | "\n" | 2411 | "\n" |
2354 | msgstr "" | 2412 | msgstr "" |
2355 | 2413 | ||
2356 | #: plugins/check_ping.c:282 | 2414 | #: plugins/check_ping.c:285 |
2357 | #, c-format | 2415 | #, c-format |
2358 | msgid "<wpl> (%s) must be an integer percentage\n" | 2416 | msgid "<wpl> (%s) must be an integer percentage\n" |
2359 | msgstr "" | 2417 | msgstr "" |
2360 | 2418 | ||
2361 | #: plugins/check_ping.c:293 | 2419 | #: plugins/check_ping.c:296 |
2362 | #, c-format | 2420 | #, c-format |
2363 | msgid "<cpl> (%s) must be an integer percentage\n" | 2421 | msgid "<cpl> (%s) must be an integer percentage\n" |
2364 | msgstr "" | 2422 | msgstr "" |
2365 | 2423 | ||
2366 | #: plugins/check_ping.c:304 | 2424 | #: plugins/check_ping.c:307 |
2367 | #, c-format | 2425 | #, c-format |
2368 | msgid "<wrta> (%s) must be a non-negative number\n" | 2426 | msgid "<wrta> (%s) must be a non-negative number\n" |
2369 | msgstr "" | 2427 | msgstr "" |
2370 | 2428 | ||
2371 | #: plugins/check_ping.c:315 | 2429 | #: plugins/check_ping.c:318 |
2372 | #, c-format | 2430 | #, c-format |
2373 | msgid "<crta> (%s) must be a non-negative number\n" | 2431 | msgid "<crta> (%s) must be a non-negative number\n" |
2374 | msgstr "" | 2432 | msgstr "" |
2375 | 2433 | ||
2376 | #: plugins/check_ping.c:346 | 2434 | #: plugins/check_ping.c:349 |
2377 | #, c-format | 2435 | #, c-format |
2378 | msgid "" | 2436 | msgid "" |
2379 | "%s: Warning threshold must be integer or percentage!\n" | 2437 | "%s: Warning threshold must be integer or percentage!\n" |
2380 | "\n" | 2438 | "\n" |
2381 | msgstr "" | 2439 | msgstr "" |
2382 | 2440 | ||
2383 | #: plugins/check_ping.c:357 | 2441 | #: plugins/check_ping.c:360 |
2384 | msgid "<wrta> was not set\n" | 2442 | msgid "<wrta> was not set\n" |
2385 | msgstr "" | 2443 | msgstr "" |
2386 | 2444 | ||
2387 | #: plugins/check_ping.c:361 | 2445 | #: plugins/check_ping.c:364 |
2388 | msgid "<crta> was not set\n" | 2446 | msgid "<crta> was not set\n" |
2389 | msgstr "" | 2447 | msgstr "" |
2390 | 2448 | ||
2391 | #: plugins/check_ping.c:365 | 2449 | #: plugins/check_ping.c:368 |
2392 | msgid "<wpl> was not set\n" | 2450 | msgid "<wpl> was not set\n" |
2393 | msgstr "" | 2451 | msgstr "" |
2394 | 2452 | ||
2395 | #: plugins/check_ping.c:369 | 2453 | #: plugins/check_ping.c:372 |
2396 | msgid "<cpl> was not set\n" | 2454 | msgid "<cpl> was not set\n" |
2397 | msgstr "" | 2455 | msgstr "" |
2398 | 2456 | ||
2399 | #: plugins/check_ping.c:373 | 2457 | #: plugins/check_ping.c:376 |
2400 | #, c-format | 2458 | #, c-format |
2401 | msgid "<wrta> (%f) cannot be larger than <crta> (%f)\n" | 2459 | msgid "<wrta> (%f) cannot be larger than <crta> (%f)\n" |
2402 | msgstr "" | 2460 | msgstr "" |
2403 | 2461 | ||
2404 | #: plugins/check_ping.c:377 | 2462 | #: plugins/check_ping.c:380 |
2405 | #, c-format | 2463 | #, c-format |
2406 | msgid "<wpl> (%d) cannot be larger than <cpl> (%d)\n" | 2464 | msgid "<wpl> (%d) cannot be larger than <cpl> (%d)\n" |
2407 | msgstr "" | 2465 | msgstr "" |
2408 | 2466 | ||
2409 | #: plugins/check_ping.c:390 | 2467 | #: plugins/check_ping.c:393 |
2410 | msgid "Invalid host name/address" | 2468 | msgid "Invalid host name/address" |
2411 | msgstr "" | 2469 | msgstr "" |
2412 | 2470 | ||
2413 | #: plugins/check_ping.c:408 | 2471 | #: plugins/check_ping.c:411 |
2414 | #, c-format | 2472 | #, c-format |
2415 | msgid "Cannot open pipe: %s" | 2473 | msgid "Cannot open pipe: %s" |
2416 | msgstr "" | 2474 | msgstr "" |
2417 | 2475 | ||
2418 | #: plugins/check_ping.c:412 | 2476 | #: plugins/check_ping.c:415 |
2419 | #, c-format | 2477 | #, c-format |
2420 | msgid "Cannot open stderr for %s\n" | 2478 | msgid "Cannot open stderr for %s\n" |
2421 | msgstr "" | 2479 | msgstr "" |
2422 | 2480 | ||
2423 | #: plugins/check_ping.c:468 | 2481 | #: plugins/check_ping.c:471 |
2424 | #, c-format | 2482 | #, c-format |
2425 | msgid "PING CRITICAL - Network unreachable (%s)" | 2483 | msgid "PING CRITICAL - Network unreachable (%s)" |
2426 | msgstr "" | 2484 | msgstr "" |
2427 | 2485 | ||
2428 | #: plugins/check_ping.c:470 | 2486 | #: plugins/check_ping.c:473 |
2429 | #, c-format | 2487 | #, c-format |
2430 | msgid "PING CRITICAL - Host Unreachable (%s)" | 2488 | msgid "PING CRITICAL - Host Unreachable (%s)" |
2431 | msgstr "" | 2489 | msgstr "" |
2432 | 2490 | ||
2433 | #: plugins/check_ping.c:472 | 2491 | #: plugins/check_ping.c:475 |
2434 | #, c-format | 2492 | #, c-format |
2435 | msgid "PING CRITICAL - Host not found (%s)" | 2493 | msgid "PING CRITICAL - Host not found (%s)" |
2436 | msgstr "" | 2494 | msgstr "" |
2437 | 2495 | ||
2438 | #: plugins/check_ping.c:479 | 2496 | #: plugins/check_ping.c:482 |
2439 | msgid "unable to realloc warn_text" | 2497 | msgid "unable to realloc warn_text" |
2440 | msgstr "" | 2498 | msgstr "" |
2441 | 2499 | ||
2442 | #: plugins/check_ping.c:505 plugins/check_procs.c:586 | 2500 | #: plugins/check_ping.c:508 plugins/check_procs.c:582 |
2443 | msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>" | 2501 | msgid "Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>" |
2444 | msgstr "" | 2502 | msgstr "" |
2445 | 2503 | ||
2446 | #: plugins/check_ping.c:508 | 2504 | #: plugins/check_ping.c:511 |
2447 | msgid "" | 2505 | msgid "" |
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" |
2450 | msgstr "" | 2508 | msgstr "" |
2451 | 2509 | ||
2452 | #: plugins/check_ping.c:516 | 2510 | #: plugins/check_ping.c:519 |
2453 | #, c-format | 2511 | #, c-format |
2454 | msgid "" | 2512 | msgid "" |
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" |
2465 | msgstr "" | 2523 | msgstr "" |
2466 | 2524 | ||
2467 | #: plugins/check_ping.c:531 | 2525 | #: plugins/check_ping.c:534 |
2468 | #, c-format | 2526 | #, c-format |
2469 | msgid "" | 2527 | msgid "" |
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" |
2474 | msgstr "" | 2532 | msgstr "" |
2475 | 2533 | ||
2476 | #: plugins/check_ping.c:536 | 2534 | #: plugins/check_ping.c:539 |
2477 | msgid "" | 2535 | msgid "" |
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" |
2486 | msgstr "" | 2544 | msgstr "" |
2487 | 2545 | ||
2488 | #: plugins/check_procs.c:116 | 2546 | #: plugins/check_procs.c:120 |
2489 | msgid "Unable to parse command line\n" | 2547 | msgid "Unable to parse command line\n" |
2490 | msgstr "" | 2548 | msgstr "" |
2491 | 2549 | ||
2492 | #: plugins/check_procs.c:119 | 2550 | #: plugins/check_procs.c:123 |
2493 | #, c-format | 2551 | #, c-format |
2494 | msgid "CMD: %s\n" | 2552 | msgid "CMD: %s\n" |
2495 | msgstr "" | 2553 | msgstr "" |
2496 | 2554 | ||
2497 | #: plugins/check_procs.c:215 | 2555 | #: plugins/check_procs.c:229 |
2498 | #, c-format | 2556 | #, c-format |
2499 | msgid "Not parseable: %s" | 2557 | msgid "Not parseable: %s" |
2500 | msgstr "" | 2558 | msgstr "" |
2501 | 2559 | ||
2502 | #: plugins/check_procs.c:222 | 2560 | #: plugins/check_procs.c:236 |
2503 | #, c-format | 2561 | #, c-format |
2504 | msgid "STDERR: %s" | 2562 | msgid "STDERR: %s" |
2505 | msgstr "" | 2563 | msgstr "" |
2506 | 2564 | ||
2507 | #: plugins/check_procs.c:224 | 2565 | #: plugins/check_procs.c:238 |
2508 | msgid "System call sent warnings to stderr\n" | 2566 | msgid "System call sent warnings to stderr\n" |
2509 | msgstr "" | 2567 | msgstr "" |
2510 | 2568 | ||
2511 | #: plugins/check_procs.c:231 | 2569 | #: plugins/check_procs.c:245 |
2512 | msgid "System call returned nonzero status\n" | 2570 | msgid "System call returned nonzero status\n" |
2513 | msgstr "" | 2571 | msgstr "" |
2514 | 2572 | ||
2515 | #: plugins/check_procs.c:236 plugins/check_users.c:96 | 2573 | #: plugins/check_procs.c:250 plugins/check_users.c:99 |
2516 | msgid "Unable to read output\n" | 2574 | msgid "Unable to read output\n" |
2517 | msgstr "" | 2575 | msgstr "" |
2518 | 2576 | ||
2519 | #: plugins/check_procs.c:253 | 2577 | #: plugins/check_procs.c:267 |
2520 | #, c-format | 2578 | #, c-format |
2521 | msgid "%d warn out of " | 2579 | msgid "%d warn out of " |
2522 | msgstr "" | 2580 | msgstr "" |
2523 | 2581 | ||
2524 | #: plugins/check_procs.c:258 | 2582 | #: plugins/check_procs.c:272 |
2525 | #, c-format | 2583 | #, c-format |
2526 | msgid "%d crit, %d warn out of " | 2584 | msgid "%d crit, %d warn out of " |
2527 | msgstr "" | 2585 | msgstr "" |
2528 | 2586 | ||
2529 | #: plugins/check_procs.c:261 | 2587 | #: plugins/check_procs.c:275 |
2530 | #, c-format | 2588 | #, c-format |
2531 | msgid "%d process" | 2589 | msgid "%d process" |
2532 | msgid_plural "%d processes" | 2590 | msgid_plural "%d processes" |
2533 | msgstr[0] "" | 2591 | msgstr[0] "" |
2534 | msgstr[1] "" | 2592 | msgstr[1] "" |
2535 | 2593 | ||
2536 | #: plugins/check_procs.c:264 | 2594 | #: plugins/check_procs.c:278 |
2537 | #, c-format | 2595 | #, c-format |
2538 | msgid " with %s" | 2596 | msgid " with %s" |
2539 | msgstr "" | 2597 | msgstr "" |
2540 | 2598 | ||
2541 | #: plugins/check_procs.c:328 plugins/check_ssh.c:117 | 2599 | #: plugins/check_procs.c:342 plugins/check_ssh.c:117 |
2542 | msgid "" | 2600 | msgid "" |
2543 | "Timeout Interval must be an integer!\n" | 2601 | "Timeout Interval must be an integer!\n" |
2544 | "\n" | 2602 | "\n" |
2545 | msgstr "" | 2603 | msgstr "" |
2546 | 2604 | ||
2547 | #: plugins/check_procs.c:342 | 2605 | #: plugins/check_procs.c:356 |
2548 | msgid "" | 2606 | msgid "" |
2549 | "Critical Process Count must be an integer!\n" | 2607 | "Critical Process Count must be an integer!\n" |
2550 | "\n" | 2608 | "\n" |
2551 | msgstr "" | 2609 | msgstr "" |
2552 | 2610 | ||
2553 | #: plugins/check_procs.c:354 | 2611 | #: plugins/check_procs.c:368 |
2554 | #, c-format | ||
2555 | msgid "" | 2612 | msgid "" |
2556 | "%s: Warning Process Count must be an integer!\n" | 2613 | "Warning Process Count must be an integer!\n" |
2557 | "\n" | 2614 | "\n" |
2558 | msgstr "" | 2615 | msgstr "" |
2559 | 2616 | ||
2560 | #: plugins/check_procs.c:362 | 2617 | #: plugins/check_procs.c:376 |
2561 | #, c-format | 2618 | #, c-format |
2562 | msgid "" | 2619 | msgid "" |
2563 | "%s: Parent Process ID must be an integer!\n" | 2620 | "%s: Parent Process ID must be an integer!\n" |
2564 | "\n" | 2621 | "\n" |
2565 | msgstr "" | 2622 | msgstr "" |
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 |
2569 | msgid "%s%sSTATE = %s" | 2626 | msgid "%s%sSTATE = %s" |
2570 | msgstr "" | 2627 | msgstr "" |
2571 | 2628 | ||
2572 | #: plugins/check_procs.c:380 | 2629 | #: plugins/check_procs.c:391 |
2573 | #, c-format | 2630 | #, c-format |
2574 | msgid "UID %d was not found\n" | 2631 | msgid "UID %s was not found\n" |
2575 | msgstr "" | 2632 | msgstr "" |
2576 | 2633 | ||
2577 | #: plugins/check_procs.c:389 | 2634 | #: plugins/check_procs.c:397 |
2578 | #, c-format | 2635 | #, c-format |
2579 | msgid "User name %s was not found\n" | 2636 | msgid "User name %s was not found\n" |
2580 | msgstr "" | 2637 | msgstr "" |
2581 | 2638 | ||
2582 | #: plugins/check_procs.c:397 | 2639 | #: plugins/check_procs.c:402 |
2583 | #, c-format | 2640 | #, c-format |
2584 | msgid "%s%sUID = %d (%s)" | 2641 | msgid "%s%sUID = %d (%s)" |
2585 | msgstr "" | 2642 | msgstr "" |
2586 | 2643 | ||
2587 | #: plugins/check_procs.c:406 | 2644 | #: plugins/check_procs.c:411 |
2588 | #, c-format | 2645 | #, c-format |
2589 | msgid "%s%scommand name '%s'" | 2646 | msgid "%s%scommand name '%s'" |
2590 | msgstr "" | 2647 | msgstr "" |
2591 | 2648 | ||
2592 | #: plugins/check_procs.c:415 | 2649 | #: plugins/check_procs.c:420 |
2593 | #, c-format | 2650 | #, c-format |
2594 | msgid "%s%sargs '%s'" | 2651 | msgid "%s%sargs '%s'" |
2595 | msgstr "" | 2652 | msgstr "" |
2596 | 2653 | ||
2597 | #: plugins/check_procs.c:420 | 2654 | #: plugins/check_procs.c:425 |
2598 | #, c-format | 2655 | #, c-format |
2599 | msgid "%s%sRSS >= %d" | 2656 | msgid "%s%sRSS >= %d" |
2600 | msgstr "" | 2657 | msgstr "" |
2601 | 2658 | ||
2602 | #: plugins/check_procs.c:424 | 2659 | #: plugins/check_procs.c:429 |
2603 | #, c-format | 2660 | #, c-format |
2604 | msgid "" | 2661 | msgid "" |
2605 | "%s: RSS must be an integer!\n" | 2662 | "%s: RSS must be an integer!\n" |
2606 | "\n" | 2663 | "\n" |
2607 | msgstr "" | 2664 | msgstr "" |
2608 | 2665 | ||
2609 | #: plugins/check_procs.c:430 | 2666 | #: plugins/check_procs.c:432 |
2610 | #, c-format | 2667 | #, c-format |
2611 | msgid "%s%sVSZ >= %d" | 2668 | msgid "%s%sVSZ >= %d" |
2612 | msgstr "" | 2669 | msgstr "" |
2613 | 2670 | ||
2614 | #: plugins/check_procs.c:434 | 2671 | #: plugins/check_procs.c:436 |
2615 | #, c-format | 2672 | #, c-format |
2616 | msgid "" | 2673 | msgid "" |
2617 | "%s: VSZ must be an integer!\n" | 2674 | "%s: VSZ must be an integer!\n" |
2618 | "\n" | 2675 | "\n" |
2619 | msgstr "" | 2676 | msgstr "" |
2620 | 2677 | ||
2621 | #: plugins/check_procs.c:441 | 2678 | #: plugins/check_procs.c:440 |
2622 | #, c-format | 2679 | #, c-format |
2623 | msgid "%s%sPCPU >= %.2f" | 2680 | msgid "%s%sPCPU >= %.2f" |
2624 | msgstr "" | 2681 | msgstr "" |
2625 | 2682 | ||
2626 | #: plugins/check_procs.c:445 | 2683 | #: plugins/check_procs.c:444 |
2627 | #, c-format | 2684 | #, c-format |
2628 | msgid "" | 2685 | msgid "" |
2629 | "%s: PCPU must be a float!\n" | 2686 | "%s: PCPU must be a float!\n" |
2630 | "\n" | 2687 | "\n" |
2631 | msgstr "" | 2688 | msgstr "" |
2632 | 2689 | ||
2633 | #: plugins/check_procs.c:467 | 2690 | #: plugins/check_procs.c:463 |
2634 | #, c-format | 2691 | #, c-format |
2635 | msgid "" | 2692 | msgid "" |
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" |
2638 | msgstr "" | 2695 | msgstr "" |
2639 | 2696 | ||
2640 | #: plugins/check_procs.c:504 | 2697 | #: plugins/check_procs.c:500 |
2641 | #, c-format | 2698 | #, c-format |
2642 | msgid "wmax (%d) cannot be greater than cmax (%d)\n" | 2699 | msgid "wmax (%d) cannot be greater than cmax (%d)\n" |
2643 | msgstr "" | 2700 | msgstr "" |
2644 | 2701 | ||
2645 | #: plugins/check_procs.c:508 | 2702 | #: plugins/check_procs.c:504 |
2646 | #, c-format | 2703 | #, c-format |
2647 | msgid "wmin (%d) cannot be less than cmin (%d)\n" | 2704 | msgid "wmin (%d) cannot be less than cmin (%d)\n" |
2648 | msgstr "" | 2705 | msgstr "" |
2649 | 2706 | ||
2650 | #: plugins/check_procs.c:589 | 2707 | #: plugins/check_procs.c:585 |
2651 | msgid "" | 2708 | msgid "" |
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" |
2659 | msgstr "" | 2716 | msgstr "" |
2660 | 2717 | ||
2661 | #: plugins/check_procs.c:596 | 2718 | #: plugins/check_procs.c:592 |
2662 | msgid "" | 2719 | msgid "" |
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" |
2669 | msgstr "" | 2726 | msgstr "" |
2670 | 2727 | ||
2671 | #: plugins/check_procs.c:603 | 2728 | #: plugins/check_procs.c:599 |
2672 | msgid "" | 2729 | msgid "" |
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" |
2683 | msgstr "" | 2740 | msgstr "" |
2684 | 2741 | ||
2685 | #: plugins/check_procs.c:614 | 2742 | #: plugins/check_procs.c:610 |
2686 | msgid "" | 2743 | msgid "" |
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" |
2699 | msgstr "" | 2756 | msgstr "" |
2700 | 2757 | ||
2701 | #: plugins/check_procs.c:627 | 2758 | #: plugins/check_procs.c:623 |
2702 | msgid "" | 2759 | msgid "" |
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" |
2711 | msgstr "" | 2768 | msgstr "" |
2712 | 2769 | ||
2713 | #: plugins/check_procs.c:637 | 2770 | #: plugins/check_procs.c:633 |
2714 | msgid "" | 2771 | msgid "" |
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" |
2720 | msgstr "" | 2777 | msgstr "" |
2721 | 2778 | ||
2722 | #: plugins/check_procs.c:642 | 2779 | #: plugins/check_procs.c:638 |
2723 | msgid "" | 2780 | msgid "" |
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" |
2730 | msgstr "" | 2787 | msgstr "" |
2731 | 2788 | ||
2732 | #: plugins/check_procs.c:649 | 2789 | #: plugins/check_procs.c:645 |
2733 | msgid "" | 2790 | msgid "" |
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" |
2746 | msgstr "" | 2805 | msgstr "" |
2747 | 2806 | ||
2748 | #: plugins/check_radius.c:116 | 2807 | #: plugins/check_radius.c:117 |
2749 | msgid "Config file error" | 2808 | msgid "Config file error" |
2750 | msgstr "" | 2809 | msgstr "" |
2751 | 2810 | ||
2752 | #: plugins/check_radius.c:123 | 2811 | #: plugins/check_radius.c:125 |
2753 | msgid "Out of Memory?" | 2812 | msgid "Out of Memory?" |
2754 | msgstr "" | 2813 | msgstr "" |
2755 | 2814 | ||
2756 | #: plugins/check_radius.c:144 | 2815 | #: plugins/check_radius.c:146 |
2757 | msgid "Timeout" | 2816 | msgid "Timeout" |
2758 | msgstr "" | 2817 | msgstr "" |
2759 | 2818 | ||
2760 | #: plugins/check_radius.c:146 | 2819 | #: plugins/check_radius.c:148 |
2761 | msgid "Auth Error" | 2820 | msgid "Auth Error" |
2762 | msgstr "" | 2821 | msgstr "" |
2763 | 2822 | ||
2764 | #: plugins/check_radius.c:148 | 2823 | #: plugins/check_radius.c:150 |
2765 | msgid "Auth Failed" | 2824 | msgid "Auth Failed" |
2766 | msgstr "" | 2825 | msgstr "" |
2767 | 2826 | ||
2768 | #: plugins/check_radius.c:152 | 2827 | #: plugins/check_radius.c:154 |
2769 | msgid "Auth OK" | 2828 | msgid "Auth OK" |
2770 | msgstr "" | 2829 | msgstr "" |
2771 | 2830 | ||
2772 | #: plugins/check_radius.c:190 plugins/check_radius.c:261 | 2831 | #: plugins/check_radius.c:193 plugins/check_radius.c:267 |
2773 | msgid "Timeout interval must be a positive integer" | 2832 | msgid "Timeout interval must be a positive integer" |
2774 | msgstr "" | 2833 | msgstr "" |
2775 | 2834 | ||
2776 | #: plugins/check_radius.c:194 plugins/check_radius.c:255 | 2835 | #: plugins/check_radius.c:197 plugins/check_radius.c:261 |
2777 | msgid "Number of retries must be a positive integer" | 2836 | msgid "Number of retries must be a positive integer" |
2778 | msgstr "" | 2837 | msgstr "" |
2779 | 2838 | ||
2780 | #: plugins/check_radius.c:199 plugins/check_radius.c:237 | 2839 | #: plugins/check_radius.c:202 plugins/check_radius.c:240 |
2781 | msgid "Server port must be a positive integer" | 2840 | msgid "Server port must be a positive integer" |
2782 | msgstr "" | 2841 | msgstr "" |
2783 | 2842 | ||
2784 | #: plugins/check_radius.c:281 | 2843 | #: plugins/check_radius.c:287 |
2785 | msgid "Copyright (c) 1999 Robert August Vincent II\n" | 2844 | msgid "Copyright (c) 1999 Robert August Vincent II\n" |
2786 | msgstr "" | 2845 | msgstr "" |
2787 | 2846 | ||
2788 | #: plugins/check_radius.c:284 | 2847 | #: plugins/check_radius.c:290 |
2789 | msgid "" | 2848 | msgid "" |
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" |
2792 | msgstr "" | 2851 | msgstr "" |
2793 | 2852 | ||
2794 | #: plugins/check_radius.c:292 | 2853 | #: plugins/check_radius.c:298 |
2795 | msgid "" | 2854 | msgid "" |
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" |
2806 | msgstr "" | 2867 | msgstr "" |
2807 | 2868 | ||
2808 | #: plugins/check_radius.c:306 | 2869 | #: plugins/check_radius.c:314 |
2809 | msgid "" | 2870 | msgid "" |
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" |
2817 | msgstr "" | 2878 | msgstr "" |
2818 | 2879 | ||
2819 | #: plugins/check_radius.c:313 | 2880 | #: plugins/check_radius.c:321 |
2820 | msgid "" | 2881 | msgid "" |
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 "" | |||
2854 | msgid "REAL %s - %d second response time\n" | 2915 | msgid "REAL %s - %d second response time\n" |
2855 | msgstr "" | 2916 | msgstr "" |
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 |
2858 | msgid "Server port must be a positive integer\n" | 2919 | msgid "Server port must be a positive integer\n" |
2859 | msgstr "" | 2920 | msgstr "" |
2860 | 2921 | ||
2861 | #: plugins/check_real.c:328 plugins/check_smtp.c:273 | 2922 | #: plugins/check_real.c:328 plugins/check_smtp.c:345 |
2862 | msgid "Warning time must be a nonnegative integer\n" | 2923 | msgid "Warning time must be a nonnegative integer\n" |
2863 | msgstr "" | 2924 | msgstr "" |
2864 | 2925 | ||
2865 | #: plugins/check_real.c:337 plugins/check_smtp.c:264 | 2926 | #: plugins/check_real.c:337 plugins/check_smtp.c:336 |
2866 | msgid "Critical time must be a nonnegative integer\n" | 2927 | msgid "Critical time must be a nonnegative integer\n" |
2867 | msgstr "" | 2928 | msgstr "" |
2868 | 2929 | ||
2869 | #: plugins/check_real.c:348 plugins/check_smtp.c:284 | 2930 | #: plugins/check_real.c:348 plugins/check_smtp.c:356 |
2870 | msgid "Time interval must be a nonnegative integer\n" | 2931 | msgid "Time interval must be a nonnegative integer\n" |
2871 | msgstr "" | 2932 | msgstr "" |
2872 | 2933 | ||
@@ -2903,48 +2964,55 @@ msgid "" | |||
2903 | "values." | 2964 | "values." |
2904 | msgstr "" | 2965 | msgstr "" |
2905 | 2966 | ||
2906 | #: plugins/check_smtp.c:108 | 2967 | #: plugins/check_smtp.c:126 |
2907 | msgid "recv() failed\n" | 2968 | msgid "recv() failed\n" |
2908 | msgstr "" | 2969 | msgstr "" |
2909 | 2970 | ||
2910 | #: plugins/check_smtp.c:117 | 2971 | #: plugins/check_smtp.c:137 |
2911 | msgid "Invalid SMTP response received from host\n" | 2972 | msgid "Invalid SMTP response received from host\n" |
2912 | msgstr "" | 2973 | msgstr "" |
2913 | 2974 | ||
2914 | #: plugins/check_smtp.c:119 | 2975 | #: plugins/check_smtp.c:139 |
2915 | #, c-format | 2976 | #, c-format |
2916 | msgid "Invalid SMTP response received from host on port %d\n" | 2977 | msgid "Invalid SMTP response received from host on port %d\n" |
2917 | msgstr "" | 2978 | msgstr "" |
2918 | 2979 | ||
2919 | #: plugins/check_smtp.c:149 | 2980 | #: plugins/check_smtp.c:183 plugins/check_snmp.c:512 |
2981 | msgid "Could Not Compile Regular Expression" | ||
2982 | msgstr "" | ||
2983 | |||
2984 | #: plugins/check_smtp.c:192 plugins/check_smtp.c:202 | ||
2920 | #, c-format | 2985 | #, c-format |
2921 | msgid "" | 2986 | msgid "SMTP %s - Invalid response '%s' to command '%s'\n" |
2922 | "DUMMYCMD: %s\n" | ||
2923 | "%s\n" | ||
2924 | msgstr "" | 2987 | msgstr "" |
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 |
2928 | msgid "SMTP %s - %.3f sec. response time, %s|time=%ldus\n" | 2991 | msgid "Execute Error: %s\n" |
2929 | msgstr "" | 2992 | msgstr "" |
2930 | 2993 | ||
2931 | #: plugins/check_smtp.c:175 | 2994 | #: plugins/check_smtp.c:227 |
2932 | #, c-format | 2995 | #, c-format |
2933 | msgid "SMTP %s - %.3f second response time|time=%ldus\n" | 2996 | msgid "SMTP %s - %.3f sec. response time%s%s|%s\n" |
2934 | msgstr "" | 2997 | msgstr "" |
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 | ||
3001 | msgid "Could not realloc() units [%d]\n" | ||
3002 | msgstr "" | ||
3003 | |||
3004 | #: plugins/check_smtp.c:428 | ||
2937 | msgid "Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n" | 3005 | msgid "Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n" |
2938 | msgstr "" | 3006 | msgstr "" |
2939 | 3007 | ||
2940 | #: plugins/check_smtp.c:359 | 3008 | #: plugins/check_smtp.c:431 |
2941 | #, fuzzy | 3009 | #, fuzzy |
2942 | msgid "" | 3010 | msgid "" |
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" |
2945 | msgstr "Le plugin tests a %s connection with l'host specified\n" | 3013 | msgstr "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 |
2949 | msgid "" | 3017 | msgid "" |
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" | ||
2959 | msgstr "" | 3028 | msgstr "" |
2960 | 3029 | ||
2961 | #: plugins/check_smtp.c:387 | 3030 | #: plugins/check_smtp.c:461 |
2962 | msgid "" | 3031 | msgid "" |
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" |
2968 | msgstr "" | 3037 | msgstr "" |
2969 | 3038 | ||
2970 | #: plugins/check_snmp.c:278 | 3039 | #: plugins/check_snmp.c:285 plugins/check_snmp.c:518 |
2971 | #, c-format | ||
2972 | msgid "Execute Error: %s\n" | ||
2973 | msgstr "" | ||
2974 | |||
2975 | #: plugins/check_snmp.c:285 plugins/check_snmp.c:524 | ||
2976 | #, c-format | 3040 | #, c-format |
2977 | msgid "%s UNKNOWN: call for regex which was not a compiled option" | 3041 | msgid "%s UNKNOWN: call for regex which was not a compiled option" |
2978 | msgstr "" | 3042 | msgstr "" |
@@ -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 |
2982 | msgid "" | 3046 | msgid "" |
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" |
2985 | msgstr "" | 3049 | msgstr "" |
2986 | 3050 | ||
@@ -2989,52 +3053,43 @@ msgstr "" | |||
2989 | msgid "Invalid critical threshold: %s\n" | 3053 | msgid "Invalid critical threshold: %s\n" |
2990 | msgstr "" | 3054 | msgstr "" |
2991 | 3055 | ||
2992 | #: plugins/check_snmp.c:471 | 3056 | #: plugins/check_snmp.c:468 |
2993 | #, c-format | 3057 | #, c-format |
2994 | msgid "Invalid warning threshold: %s\n" | 3058 | msgid "Invalid warning threshold: %s\n" |
2995 | msgstr "" | 3059 | msgstr "" |
2996 | 3060 | ||
2997 | #: plugins/check_snmp.c:518 | 3061 | #: plugins/check_snmp.c:538 |
2998 | msgid "Could Not Compile Regular Expression" | ||
2999 | msgstr "" | ||
3000 | |||
3001 | #: plugins/check_snmp.c:544 | ||
3002 | #, c-format | 3062 | #, c-format |
3003 | msgid "Could not realloc() labels[%d]" | 3063 | msgid "Could not realloc() labels[%d]" |
3004 | msgstr "" | 3064 | msgstr "" |
3005 | 3065 | ||
3006 | #: plugins/check_snmp.c:557 | 3066 | #: plugins/check_snmp.c:550 |
3007 | msgid "Could not realloc() labels\n" | 3067 | msgid "Could not realloc() labels\n" |
3008 | msgstr "" | 3068 | msgstr "" |
3009 | 3069 | ||
3010 | #: plugins/check_snmp.c:575 | 3070 | #: plugins/check_snmp.c:580 |
3011 | #, c-format | ||
3012 | msgid "Could not realloc() units [%d]\n" | ||
3013 | msgstr "" | ||
3014 | |||
3015 | #: plugins/check_snmp.c:588 | ||
3016 | msgid "Could not realloc() units\n" | 3071 | msgid "Could not realloc() units\n" |
3017 | msgstr "" | 3072 | msgstr "" |
3018 | 3073 | ||
3019 | #: plugins/check_snmp.c:661 | 3074 | #: plugins/check_snmp.c:653 |
3020 | #, c-format | 3075 | #, c-format |
3021 | msgid "" | 3076 | msgid "" |
3022 | "Missing secname (%s) or authpassword (%s) ! \n" | 3077 | "Missing secname (%s) or authpassword (%s) ! \n" |
3023 | ")" | 3078 | ")" |
3024 | msgstr "" | 3079 | msgstr "" |
3025 | 3080 | ||
3026 | #: plugins/check_snmp.c:679 | 3081 | #: plugins/check_snmp.c:671 |
3027 | #, c-format | 3082 | #, c-format |
3028 | msgid "Invalid SNMP version: %s\n" | 3083 | msgid "Invalid SNMP version: %s\n" |
3029 | msgstr "" | 3084 | msgstr "" |
3030 | 3085 | ||
3031 | #: plugins/check_snmp.c:874 | 3086 | #: plugins/check_snmp.c:864 |
3032 | msgid "" | 3087 | msgid "" |
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" |
3035 | msgstr "" | 3090 | msgstr "" |
3036 | 3091 | ||
3037 | #: plugins/check_snmp.c:884 | 3092 | #: plugins/check_snmp.c:874 |
3038 | msgid "" | 3093 | msgid "" |
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" |
3045 | msgstr "" | 3100 | msgstr "" |
3046 | 3101 | ||
3047 | #: plugins/check_snmp.c:893 | 3102 | #: plugins/check_snmp.c:883 |
3048 | #, c-format | 3103 | #, c-format |
3049 | msgid "" | 3104 | msgid "" |
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" |
3059 | msgstr "" | 3114 | msgstr "" |
3060 | 3115 | ||
3061 | #: plugins/check_snmp.c:905 | 3116 | #: plugins/check_snmp.c:895 |
3062 | #, c-format | 3117 | #, c-format |
3063 | msgid "" | 3118 | msgid "" |
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" |
3072 | msgstr "" | 3127 | msgstr "" |
3073 | 3128 | ||
3074 | #: plugins/check_snmp.c:915 | 3129 | #: plugins/check_snmp.c:905 |
3075 | msgid "" | 3130 | msgid "" |
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" |
3080 | msgstr "" | 3135 | msgstr "" |
3081 | 3136 | ||
3082 | #: plugins/check_snmp.c:922 | 3137 | #: plugins/check_snmp.c:912 |
3083 | msgid "" | 3138 | msgid "" |
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" |
3094 | msgstr "" | 3149 | msgstr "" |
3095 | 3150 | ||
3096 | #: plugins/check_snmp.c:933 | 3151 | #: plugins/check_snmp.c:923 |
3097 | msgid "" | 3152 | msgid "" |
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" |
3102 | msgstr "" | 3157 | msgstr "" |
3103 | 3158 | ||
3104 | #: plugins/check_snmp.c:943 | 3159 | #: plugins/check_snmp.c:933 |
3105 | msgid "" | 3160 | msgid "" |
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" |
3112 | msgstr "" | 3167 | msgstr "" |
3113 | 3168 | ||
3114 | #: plugins/check_snmp.c:948 | 3169 | #: plugins/check_snmp.c:938 |
3115 | msgid "" | 3170 | msgid "" |
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" |
3119 | msgstr "" | 3174 | msgstr "" |
3120 | 3175 | ||
3121 | #: plugins/check_snmp.c:952 | 3176 | #: plugins/check_snmp.c:942 |
3122 | msgid "" | 3177 | msgid "" |
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" |
3128 | msgstr "" | 3183 | msgstr "" |
3129 | 3184 | ||
3130 | #: plugins/check_snmp.c:958 | 3185 | #: plugins/check_snmp.c:948 |
3131 | msgid "" | 3186 | msgid "" |
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" |
3135 | msgstr "" | 3190 | msgstr "" |
3136 | 3191 | ||
3137 | #: plugins/check_snmp.c:962 | 3192 | #: plugins/check_snmp.c:952 |
3138 | msgid "" | 3193 | msgid "" |
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" |
3148 | msgstr "" | 3203 | msgstr "" |
3149 | 3204 | ||
3150 | #: plugins/check_snmp.c:976 | 3205 | #: plugins/check_snmp.c:966 |
3151 | #, c-format | 3206 | #, c-format |
3152 | msgid "" | 3207 | msgid "" |
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 "" | |||
3183 | msgid "Usage: %s [-46] [-t <timeout>] [-p <port>] <host>\n" | 3238 | msgid "Usage: %s [-46] [-t <timeout>] [-p <port>] <host>\n" |
3184 | msgstr "" | 3239 | msgstr "" |
3185 | 3240 | ||
3186 | #: plugins/check_swap.c:125 | 3241 | #: plugins/check_swap.c:145 |
3187 | #, c-format | 3242 | #, c-format |
3188 | msgid "Command: %s\n" | 3243 | msgid "Command: %s\n" |
3189 | msgstr "" | 3244 | msgstr "" |
3190 | 3245 | ||
3191 | #: plugins/check_swap.c:127 | 3246 | #: plugins/check_swap.c:147 |
3192 | #, c-format | 3247 | #, c-format |
3193 | msgid "Format: %s\n" | 3248 | msgid "Format: %s\n" |
3194 | msgstr "" | 3249 | msgstr "" |
3195 | 3250 | ||
3196 | #: plugins/check_swap.c:163 | 3251 | #: plugins/check_swap.c:183 |
3197 | #, c-format | 3252 | #, c-format |
3198 | msgid "total=%d, used=%d, free=%d\n" | 3253 | msgid "total=%d, used=%d, free=%d\n" |
3199 | msgstr "" | 3254 | msgstr "" |
3200 | 3255 | ||
3201 | #: plugins/check_swap.c:186 | 3256 | #: plugins/check_swap.c:197 |
3202 | #, c-format | 3257 | #, c-format |
3203 | msgid "total=%d, free=%d\n" | 3258 | msgid "total=%d, free=%d\n" |
3204 | msgstr "" | 3259 | msgstr "" |
3205 | 3260 | ||
3206 | #: plugins/check_swap.c:222 | 3261 | #: plugins/check_swap.c:314 |
3207 | #, c-format | 3262 | #, c-format |
3208 | msgid " %d%% free (%lu MB out of %lu MB)%s" | 3263 | msgid " %d%% free (%llu MB out of %llu MB)" |
3209 | msgstr "" | 3264 | msgstr "" |
3210 | 3265 | ||
3211 | #: plugins/check_swap.c:365 | 3266 | #: plugins/check_swap.c:464 |
3212 | msgid "Warning percentage should be more than critical percentage\n" | 3267 | msgid "Warning percentage should be more than critical percentage\n" |
3213 | msgstr "" | 3268 | msgstr "" |
3214 | 3269 | ||
3215 | #: plugins/check_swap.c:369 | 3270 | #: plugins/check_swap.c:468 |
3216 | msgid "Warning free space should be more than critical free space\n" | 3271 | msgid "Warning free space should be more than critical free space\n" |
3217 | msgstr "" | 3272 | msgstr "" |
3218 | 3273 | ||
3219 | #: plugins/check_swap.c:386 | 3274 | #: plugins/check_swap.c:485 |
3220 | msgid "" | 3275 | msgid "" |
3221 | "Check swap space on local server.\n" | 3276 | "Check swap space on local server.\n" |
3222 | "\n" | 3277 | "\n" |
3223 | msgstr "" | 3278 | msgstr "" |
3224 | 3279 | ||
3225 | #: plugins/check_swap.c:392 | 3280 | #: plugins/check_swap.c:491 |
3226 | #, c-format | 3281 | #, c-format |
3227 | msgid "" | 3282 | msgid "" |
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" | ||
3243 | msgstr "" | 3298 | msgstr "" |
3244 | 3299 | ||
3245 | #: plugins/check_swap.c:404 | 3300 | #: plugins/check_swap.c:505 |
3246 | msgid "" | 3301 | msgid "" |
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" |
3251 | msgstr "" | 3306 | msgstr "" |
3252 | 3307 | ||
3253 | #: plugins/check_swap.c:408 | 3308 | #: plugins/check_swap.c:509 |
3254 | msgid "" | 3309 | msgid "" |
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" |
3257 | msgstr "" | 3312 | msgstr "" |
3258 | 3313 | ||
3259 | #: plugins/check_swap.c:420 | 3314 | #: plugins/check_swap.c:521 |
3260 | #, c-format | 3315 | #, c-format |
3261 | msgid "" | 3316 | msgid "" |
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" |
3267 | msgstr "" | 3322 | msgstr "" |
@@ -3279,61 +3334,61 @@ msgstr "" | |||
3279 | msgid "%s %s%s - %.3f second response time on port %d" | 3334 | msgid "%s %s%s - %.3f second response time on port %d" |
3280 | msgstr "" | 3335 | msgstr "" |
3281 | 3336 | ||
3282 | #: plugins/check_tcp.c:426 | 3337 | #: plugins/check_tcp.c:430 |
3283 | msgid "invalid host name or address" | 3338 | msgid "invalid host name or address" |
3284 | msgstr "" | 3339 | msgstr "" |
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 |
3288 | msgid "Critical threshold must be a nonnegative integer\n" | 3343 | msgid "Critical threshold must be a nonnegative integer\n" |
3289 | msgstr "" | 3344 | msgstr "" |
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 |
3294 | msgid "Warning threshold must be a nonnegative integer\n" | 3349 | msgid "Warning threshold must be a nonnegative integer\n" |
3295 | msgstr "" | 3350 | msgstr "" |
3296 | 3351 | ||
3297 | #: plugins/check_tcp.c:453 | 3352 | #: plugins/check_tcp.c:457 |
3298 | msgid "Timeout interval must be a positive integer\n" | 3353 | msgid "Timeout interval must be a positive integer\n" |
3299 | msgstr "" | 3354 | msgstr "" |
3300 | 3355 | ||
3301 | #: plugins/check_tcp.c:476 | 3356 | #: plugins/check_tcp.c:480 |
3302 | msgid "Maxbytes must be a positive integer\n" | 3357 | msgid "Maxbytes must be a positive integer\n" |
3303 | msgstr "" | 3358 | msgstr "" |
3304 | 3359 | ||
3305 | #: plugins/check_tcp.c:490 | 3360 | #: plugins/check_tcp.c:494 |
3306 | msgid "Refuse mut be one of ok, warn, crit\n" | 3361 | msgid "Refuse mut be one of ok, warn, crit\n" |
3307 | msgstr "" | 3362 | msgstr "" |
3308 | 3363 | ||
3309 | #: plugins/check_tcp.c:496 | 3364 | #: plugins/check_tcp.c:500 |
3310 | msgid "Delay must be a positive integer\n" | 3365 | msgid "Delay must be a positive integer\n" |
3311 | msgstr "" | 3366 | msgstr "" |
3312 | 3367 | ||
3313 | #: plugins/check_tcp.c:501 | 3368 | #: plugins/check_tcp.c:505 |
3314 | msgid "SSL support not available. Install OpenSSL and recompile." | 3369 | msgid "SSL support not available. Install OpenSSL and recompile." |
3315 | msgstr "" | 3370 | msgstr "" |
3316 | 3371 | ||
3317 | #: plugins/check_tcp.c:509 | 3372 | #: plugins/check_tcp.c:513 |
3318 | msgid "You must provide a server address\n" | 3373 | msgid "You must provide a server address\n" |
3319 | msgstr "" | 3374 | msgstr "" |
3320 | 3375 | ||
3321 | #: plugins/check_tcp.c:527 | 3376 | #: plugins/check_tcp.c:531 |
3322 | msgid "ERROR: Cannot create SSL context.\n" | 3377 | msgid "ERROR: Cannot create SSL context.\n" |
3323 | msgstr "" | 3378 | msgstr "" |
3324 | 3379 | ||
3325 | #: plugins/check_tcp.c:553 | 3380 | #: plugins/check_tcp.c:557 |
3326 | msgid "ERROR: Cannot initiate SSL handshake.\n" | 3381 | msgid "ERROR: Cannot initiate SSL handshake.\n" |
3327 | msgstr "" | 3382 | msgstr "" |
3328 | 3383 | ||
3329 | #: plugins/check_tcp.c:599 | 3384 | #: plugins/check_tcp.c:603 |
3330 | #, fuzzy, c-format | 3385 | #, fuzzy, c-format |
3331 | msgid "" | 3386 | msgid "" |
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" |
3334 | msgstr "Le plugin tests a %s connection with l'host specified\n" | 3389 | msgstr "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 |
3337 | msgid "" | 3392 | msgid "" |
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 |
3354 | msgid "" | 3409 | msgid "" |
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 |
3375 | msgid "" | 3430 | msgid "" |
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 |
3387 | msgid "TIME UNKNOWN - could not connect to server %s, port %d\n" | 3442 | msgid "TIME UNKNOWN - could not connect to server %s, port %d\n" |
3388 | msgstr "" | 3443 | msgstr "" |
3389 | 3444 | ||
3390 | #: plugins/check_time.c:100 | 3445 | #: plugins/check_time.c:101 |
3391 | #, c-format | 3446 | #, c-format |
3392 | msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n" | 3447 | msgid "TIME UNKNOWN - could not send UDP request to server %s, port %d\n" |
3393 | msgstr "" | 3448 | msgstr "" |
3394 | 3449 | ||
3395 | #: plugins/check_time.c:124 | 3450 | #: plugins/check_time.c:125 |
3396 | #, c-format | 3451 | #, c-format |
3397 | msgid "TIME UNKNOWN - no data on recv() from server %s, port %d\n" | 3452 | msgid "TIME UNKNOWN - no data on recv() from server %s, port %d\n" |
3398 | msgstr "" | 3453 | msgstr "" |
3399 | 3454 | ||
3400 | #: plugins/check_time.c:136 | 3455 | #: plugins/check_time.c:138 |
3401 | #, c-format | 3456 | #, c-format |
3402 | msgid "TIME %s - %d second response time\n" | 3457 | msgid "TIME %s - %d second response time|%s\n" |
3403 | msgstr "" | 3458 | msgstr "" |
3404 | 3459 | ||
3405 | #: plugins/check_time.c:150 | 3460 | #: plugins/check_time.c:156 |
3406 | #, c-format | 3461 | #, c-format |
3407 | msgid "TIME %s - %lu second time difference\n" | 3462 | msgid "TIME %s - %lu second time difference|%s %s\n" |
3408 | msgstr "" | 3463 | msgstr "" |
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 |
3412 | msgid "Invalid host name/address\n" | 3467 | msgid "Invalid host name/address\n" |
3413 | msgstr "" | 3468 | msgstr "" |
3414 | 3469 | ||
3415 | #: plugins/check_time.c:229 | 3470 | #: plugins/check_time.c:243 |
3416 | msgid "Warning thresholds must be a nonnegative integer\n" | 3471 | msgid "Warning thresholds must be a nonnegative integer\n" |
3417 | msgstr "" | 3472 | msgstr "" |
3418 | 3473 | ||
3419 | #: plugins/check_time.c:248 | 3474 | #: plugins/check_time.c:262 |
3420 | msgid "Critical thresholds must be a nonnegative integer\n" | 3475 | msgid "Critical thresholds must be a nonnegative integer\n" |
3421 | msgstr "" | 3476 | msgstr "" |
3422 | 3477 | ||
3423 | #: plugins/check_time.c:271 plugins/check_udp.c:186 | 3478 | #: plugins/check_time.c:285 plugins/check_udp.c:186 |
3424 | msgid "Server port must be a nonnegative integer\n" | 3479 | msgid "Server port must be a nonnegative integer\n" |
3425 | msgstr "" | 3480 | msgstr "" |
3426 | 3481 | ||
3427 | #: plugins/check_time.c:277 plugins/check_udp.c:180 | 3482 | #: plugins/check_time.c:291 plugins/check_udp.c:180 |
3428 | msgid "Timeout interval must be a nonnegative integer\n" | 3483 | msgid "Timeout interval must be a nonnegative integer\n" |
3429 | msgstr "" | 3484 | msgstr "" |
3430 | 3485 | ||
3431 | #: plugins/check_time.c:294 plugins/check_udp.c:207 | 3486 | #: plugins/check_time.c:308 plugins/check_udp.c:207 |
3432 | msgid "Host name was not supplied\n" | 3487 | msgid "Host name was not supplied\n" |
3433 | msgstr "" | 3488 | msgstr "" |
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 |
3436 | msgid "Copyright (c) 1999 Ethan Galstad\n" | 3491 | msgid "Copyright (c) 1999 Ethan Galstad\n" |
3437 | msgstr "" | 3492 | msgstr "" |
3438 | 3493 | ||
3439 | #: plugins/check_time.c:317 | 3494 | #: plugins/check_time.c:331 |
3440 | #, fuzzy | 3495 | #, fuzzy |
3441 | msgid "" | 3496 | msgid "" |
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" |
3444 | msgstr "Le plugin tests a %s connection with l'host specified\n" | 3499 | msgstr "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 |
3447 | msgid "" | 3502 | msgid "" |
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" |
3458 | msgstr "" | 3513 | msgstr "" |
3459 | 3514 | ||
3460 | #: plugins/check_time.c:349 | 3515 | #: plugins/check_time.c:363 |
3461 | #, c-format | 3516 | #, c-format |
3462 | msgid "" | 3517 | msgid "" |
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" |
3515 | msgstr "" | 3570 | msgstr "" |
3516 | 3571 | ||
3517 | #: plugins/check_ups.c:546 | 3572 | #: plugins/check_ups.c:573 |
3518 | msgid "Copyright (c) 2000 Tom Shields" | 3573 | msgid "Copyright (c) 2000 Tom Shields" |
3519 | msgstr "" | 3574 | msgstr "" |
3520 | 3575 | ||
3521 | #: plugins/check_ups.c:549 | 3576 | #: plugins/check_ups.c:576 |
3522 | msgid "" | 3577 | msgid "" |
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" |
3527 | msgstr "" | 3582 | msgstr "" |
3528 | 3583 | ||
3529 | #: plugins/check_ups.c:559 | 3584 | #: plugins/check_ups.c:586 |
3530 | msgid "" | 3585 | msgid "" |
3531 | " -u, --ups=STRING\n" | 3586 | " -u, --ups=STRING\n" |
3532 | " Name of UPS\n" | 3587 | " Name of UPS\n" |
3533 | msgstr "" | 3588 | msgstr "" |
3534 | 3589 | ||
3535 | #: plugins/check_ups.c:569 | 3590 | #: plugins/check_ups.c:596 |
3536 | msgid "" | 3591 | msgid "" |
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" |
3546 | msgstr "" | 3601 | msgstr "" |
3547 | 3602 | ||
3548 | #: plugins/check_ups.c:576 | 3603 | #: plugins/check_ups.c:603 |
3549 | msgid "" | 3604 | msgid "" |
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" |
3558 | msgstr "" | 3613 | msgstr "" |
3559 | 3614 | ||
3560 | #: plugins/check_ups.c:582 | 3615 | #: plugins/check_ups.c:609 |
3561 | msgid "" | 3616 | msgid "" |
3562 | "Notes:\n" | 3617 | "Notes:\n" |
3563 | "\n" | 3618 | "\n" |
@@ -3568,31 +3623,31 @@ msgid "" | |||
3568 | "\n" | 3623 | "\n" |
3569 | msgstr "" | 3624 | msgstr "" |
3570 | 3625 | ||
3571 | #: plugins/check_ups.c:597 | 3626 | #: plugins/check_ups.c:624 |
3572 | #, c-format | 3627 | #, c-format |
3573 | msgid "" | 3628 | msgid "" |
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" |
3576 | msgstr "" | 3631 | msgstr "" |
3577 | 3632 | ||
3578 | #: plugins/check_users.c:73 | 3633 | #: plugins/check_users.c:76 |
3579 | #, c-format | 3634 | #, c-format |
3580 | msgid "# users=%d" | 3635 | msgid "# users=%d" |
3581 | msgstr "" | 3636 | msgstr "" |
3582 | 3637 | ||
3583 | #: plugins/check_users.c:98 | 3638 | #: plugins/check_users.c:106 |
3584 | #, c-format | 3639 | #, c-format |
3585 | msgid "USERS %s - %d users currently logged in\n" | 3640 | msgid "USERS %s - %d users currently logged in |%s\n" |
3586 | msgstr "" | 3641 | msgstr "" |
3587 | 3642 | ||
3588 | #: plugins/check_users.c:189 | 3643 | #: plugins/check_users.c:198 |
3589 | msgid "" | 3644 | msgid "" |
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" |
3593 | msgstr "" | 3648 | msgstr "" |
3594 | 3649 | ||
3595 | #: plugins/check_users.c:197 | 3650 | #: plugins/check_users.c:206 |
3596 | msgid "" | 3651 | msgid "" |
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 |
3639 | msgid "" | 3694 | msgid "" |
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" |
3642 | msgstr "" | 3697 | msgstr "" |
3643 | 3698 | ||