diff options
-rw-r--r-- | configure.ac | 19 | ||||
-rw-r--r-- | plugins/Makefile.am | 2 | ||||
-rw-r--r-- | plugins/check_users.c | 37 | ||||
-rw-r--r-- | po/de.po | 30 | ||||
-rw-r--r-- | po/fr.po | 38 | ||||
-rw-r--r-- | po/monitoring-plugins.pot | 30 |
6 files changed, 94 insertions, 62 deletions
diff --git a/configure.ac b/configure.ac index 069cc625..a294b00f 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -328,6 +328,25 @@ AS_IF([test "x$with_ldap" != "xno"], [ | |||
328 | LIBS="$_SAVEDLIBS" | 328 | LIBS="$_SAVEDLIBS" |
329 | ]) | 329 | ]) |
330 | 330 | ||
331 | |||
332 | AC_ARG_WITH([systemd], [AS_HELP_STRING([--without-systemd], [Skips systemd support])]) | ||
333 | |||
334 | dnl Check for libsystemd | ||
335 | AS_IF([test "x$with_systemd" != "xno"], [ | ||
336 | _SAVEDLIBS="$LIBS" | ||
337 | AC_CHECK_LIB(systemd,sd_get_sessions,,,-lsystemd) | ||
338 | if test "$ac_cv_lib_systemd_sd_get_sessions" = "yes"; then | ||
339 | SYSTEMDLIBS="-lsystemd" | ||
340 | SYSTEMDINCLUDE="" | ||
341 | AC_SUBST(SYSTEMDLIBS) | ||
342 | AC_SUBST(SYSTEMDINCLUDE) | ||
343 | else | ||
344 | AC_MSG_WARN([Skipping systemd support]) | ||
345 | fi | ||
346 | LIBS="$_SAVEDLIBS" | ||
347 | ]) | ||
348 | |||
349 | |||
331 | dnl Check for headers used by check_ide_smart | 350 | dnl Check for headers used by check_ide_smart |
332 | case $host in | 351 | case $host in |
333 | *linux*) | 352 | *linux*) |
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index ab59eb73..49086b7a 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am | |||
@@ -112,7 +112,7 @@ check_tcp_LDADD = $(SSLOBJS) | |||
112 | check_time_LDADD = $(NETLIBS) | 112 | check_time_LDADD = $(NETLIBS) |
113 | check_ntp_time_LDADD = $(NETLIBS) $(MATHLIBS) | 113 | check_ntp_time_LDADD = $(NETLIBS) $(MATHLIBS) |
114 | check_ups_LDADD = $(NETLIBS) | 114 | check_ups_LDADD = $(NETLIBS) |
115 | check_users_LDADD = $(BASEOBJS) $(WTSAPI32LIBS) | 115 | check_users_LDADD = $(BASEOBJS) $(WTSAPI32LIBS) $(SYSTEMDLIBS) |
116 | check_by_ssh_LDADD = $(NETLIBS) | 116 | check_by_ssh_LDADD = $(NETLIBS) |
117 | check_ide_smart_LDADD = $(BASEOBJS) | 117 | check_ide_smart_LDADD = $(BASEOBJS) |
118 | negate_LDADD = $(BASEOBJS) | 118 | negate_LDADD = $(BASEOBJS) |
diff --git a/plugins/check_users.c b/plugins/check_users.c index f6f4b362..2a9ee986 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c | |||
@@ -1,33 +1,33 @@ | |||
1 | /***************************************************************************** | 1 | /***************************************************************************** |
2 | * | 2 | * |
3 | * Monitoring check_users plugin | 3 | * Monitoring check_users plugin |
4 | * | 4 | * |
5 | * License: GPL | 5 | * License: GPL |
6 | * Copyright (c) 2000-2012 Monitoring Plugins Development Team | 6 | * Copyright (c) 2000-2012 Monitoring Plugins Development Team |
7 | * | 7 | * |
8 | * Description: | 8 | * Description: |
9 | * | 9 | * |
10 | * This file contains the check_users plugin | 10 | * This file contains the check_users plugin |
11 | * | 11 | * |
12 | * This plugin checks the number of users currently logged in on the local | 12 | * This plugin checks the number of users currently logged in on the local |
13 | * system and generates an error if the number exceeds the thresholds | 13 | * system and generates an error if the number exceeds the thresholds |
14 | * specified. | 14 | * specified. |
15 | * | 15 | * |
16 | * | 16 | * |
17 | * This program is free software: you can redistribute it and/or modify | 17 | * This program is free software: you can redistribute it and/or modify |
18 | * it under the terms of the GNU General Public License as published by | 18 | * it under the terms of the GNU General Public License as published by |
19 | * the Free Software Foundation, either version 3 of the License, or | 19 | * the Free Software Foundation, either version 3 of the License, or |
20 | * (at your option) any later version. | 20 | * (at your option) any later version. |
21 | * | 21 | * |
22 | * This program is distributed in the hope that it will be useful, | 22 | * This program is distributed in the hope that it will be useful, |
23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
25 | * GNU General Public License for more details. | 25 | * GNU General Public License for more details. |
26 | * | 26 | * |
27 | * You should have received a copy of the GNU General Public License | 27 | * You should have received a copy of the GNU General Public License |
28 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 28 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
29 | * | 29 | * |
30 | * | 30 | * |
31 | *****************************************************************************/ | 31 | *****************************************************************************/ |
32 | 32 | ||
33 | const char *progname = "check_users"; | 33 | const char *progname = "check_users"; |
@@ -48,6 +48,11 @@ const char *email = "devel@monitoring-plugins.org"; | |||
48 | # include "popen.h" | 48 | # include "popen.h" |
49 | #endif | 49 | #endif |
50 | 50 | ||
51 | #ifdef HAVE_LIBSYSTEMD | ||
52 | #include <systemd/sd-daemon.h> | ||
53 | #include <systemd/sd-login.h> | ||
54 | #endif | ||
55 | |||
51 | #define possibly_set(a,b) ((a) == 0 ? (b) : 0) | 56 | #define possibly_set(a,b) ((a) == 0 ? (b) : 0) |
52 | 57 | ||
53 | int process_arguments (int, char **); | 58 | int process_arguments (int, char **); |
@@ -85,6 +90,11 @@ main (int argc, char **argv) | |||
85 | 90 | ||
86 | users = 0; | 91 | users = 0; |
87 | 92 | ||
93 | #ifdef HAVE_LIBSYSTEMD | ||
94 | if (sd_booted () > 0) | ||
95 | users = sd_get_sessions (NULL); | ||
96 | else { | ||
97 | #endif | ||
88 | #if HAVE_WTSAPI32_H | 98 | #if HAVE_WTSAPI32_H |
89 | if (!WTSEnumerateSessions(WTS_CURRENT_SERVER_HANDLE, | 99 | if (!WTSEnumerateSessions(WTS_CURRENT_SERVER_HANDLE, |
90 | 0, 1, &wtsinfo, &wtscount)) { | 100 | 0, 1, &wtsinfo, &wtscount)) { |
@@ -156,6 +166,9 @@ main (int argc, char **argv) | |||
156 | if (spclose (child_process)) | 166 | if (spclose (child_process)) |
157 | result = possibly_set (result, STATE_UNKNOWN); | 167 | result = possibly_set (result, STATE_UNKNOWN); |
158 | #endif | 168 | #endif |
169 | #ifdef HAVE_LIBSYSTEMD | ||
170 | } | ||
171 | #endif | ||
159 | 172 | ||
160 | /* check the user count against warning and critical thresholds */ | 173 | /* check the user count against warning and critical thresholds */ |
161 | result = get_status((double)users, thlds); | 174 | result = get_status((double)users, thlds); |
@@ -163,7 +176,7 @@ main (int argc, char **argv) | |||
163 | if (result == STATE_UNKNOWN) | 176 | if (result == STATE_UNKNOWN) |
164 | printf ("%s\n", _("Unable to read output")); | 177 | printf ("%s\n", _("Unable to read output")); |
165 | else { | 178 | else { |
166 | printf (_("USERS %s - %d users currently logged in |%s\n"), | 179 | printf (_("USERS %s - %d users currently logged in |%s\n"), |
167 | state_text(result), users, | 180 | state_text(result), users, |
168 | sperfdata_int("users", users, "", warning_range, | 181 | sperfdata_int("users", users, "", warning_range, |
169 | critical_range, TRUE, 0, FALSE, 0)); | 182 | critical_range, TRUE, 0, FALSE, 0)); |
@@ -9,7 +9,7 @@ msgid "" | |||
9 | msgstr "" | 9 | msgstr "" |
10 | "Project-Id-Version: nagiosplug\n" | 10 | "Project-Id-Version: nagiosplug\n" |
11 | "Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n" | 11 | "Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n" |
12 | "POT-Creation-Date: 2023-08-28 11:16+0200\n" | 12 | "POT-Creation-Date: 2023-08-28 14:50+0200\n" |
13 | "PO-Revision-Date: 2004-12-23 17:46+0100\n" | 13 | "PO-Revision-Date: 2004-12-23 17:46+0100\n" |
14 | "Last-Translator: <>\n" | 14 | "Last-Translator: <>\n" |
15 | "Language-Team: English <en@li.org>\n" | 15 | "Language-Team: English <en@li.org>\n" |
@@ -31,7 +31,7 @@ msgstr "" | |||
31 | #: plugins/check_radius.c:176 plugins/check_real.c:80 plugins/check_smtp.c:146 | 31 | #: plugins/check_radius.c:176 plugins/check_real.c:80 plugins/check_smtp.c:146 |
32 | #: plugins/check_snmp.c:250 plugins/check_ssh.c:74 plugins/check_swap.c:115 | 32 | #: plugins/check_snmp.c:250 plugins/check_ssh.c:74 plugins/check_swap.c:115 |
33 | #: plugins/check_tcp.c:222 plugins/check_time.c:78 plugins/check_ups.c:122 | 33 | #: plugins/check_tcp.c:222 plugins/check_time.c:78 plugins/check_ups.c:122 |
34 | #: plugins/check_users.c:84 plugins/negate.c:210 plugins-root/check_dhcp.c:270 | 34 | #: plugins/check_users.c:89 plugins/negate.c:210 plugins-root/check_dhcp.c:270 |
35 | msgid "Could not parse arguments" | 35 | msgid "Could not parse arguments" |
36 | msgstr "Argumente konnten nicht ausgewertet werden" | 36 | msgstr "Argumente konnten nicht ausgewertet werden" |
37 | 37 | ||
@@ -255,7 +255,7 @@ msgstr "" | |||
255 | #: plugins/check_radius.c:400 plugins/check_real.c:452 plugins/check_smtp.c:891 | 255 | #: plugins/check_radius.c:400 plugins/check_real.c:452 plugins/check_smtp.c:891 |
256 | #: plugins/check_snmp.c:1368 plugins/check_ssh.c:325 plugins/check_swap.c:607 | 256 | #: plugins/check_snmp.c:1368 plugins/check_ssh.c:325 plugins/check_swap.c:607 |
257 | #: plugins/check_tcp.c:710 plugins/check_time.c:371 plugins/check_ups.c:663 | 257 | #: plugins/check_tcp.c:710 plugins/check_time.c:371 plugins/check_ups.c:663 |
258 | #: plugins/check_users.c:262 plugins/check_ide_smart.c:606 plugins/negate.c:273 | 258 | #: plugins/check_users.c:275 plugins/check_ide_smart.c:606 plugins/negate.c:273 |
259 | #: plugins/urlize.c:196 plugins-root/check_dhcp.c:1390 | 259 | #: plugins/urlize.c:196 plugins-root/check_dhcp.c:1390 |
260 | #: plugins-root/check_icmp.c:1633 | 260 | #: plugins-root/check_icmp.c:1633 |
261 | msgid "Usage:" | 261 | msgid "Usage:" |
@@ -892,13 +892,13 @@ msgid "of the <state> argument with optional text" | |||
892 | msgstr "" | 892 | msgstr "" |
893 | 893 | ||
894 | #: plugins/check_fping.c:127 plugins/check_hpjd.c:134 plugins/check_ping.c:444 | 894 | #: plugins/check_fping.c:127 plugins/check_hpjd.c:134 plugins/check_ping.c:444 |
895 | #: plugins/check_swap.c:193 plugins/check_users.c:130 plugins/urlize.c:109 | 895 | #: plugins/check_swap.c:193 plugins/check_users.c:140 plugins/urlize.c:109 |
896 | #, c-format | 896 | #, c-format |
897 | msgid "Could not open pipe: %s\n" | 897 | msgid "Could not open pipe: %s\n" |
898 | msgstr "Pipe: %s konnte nicht geöffnet werden\n" | 898 | msgstr "Pipe: %s konnte nicht geöffnet werden\n" |
899 | 899 | ||
900 | #: plugins/check_fping.c:133 plugins/check_hpjd.c:140 plugins/check_load.c:159 | 900 | #: plugins/check_fping.c:133 plugins/check_hpjd.c:140 plugins/check_load.c:159 |
901 | #: plugins/check_swap.c:199 plugins/check_users.c:136 plugins/urlize.c:115 | 901 | #: plugins/check_swap.c:199 plugins/check_users.c:146 plugins/urlize.c:115 |
902 | #, c-format | 902 | #, c-format |
903 | msgid "Could not open stderr for %s\n" | 903 | msgid "Could not open stderr for %s\n" |
904 | msgstr "Konnte stderr nicht öffnen für: %s\n" | 904 | msgstr "Konnte stderr nicht öffnen für: %s\n" |
@@ -3688,12 +3688,12 @@ msgid " %s - database %s (%f sec.)|%s\n" | |||
3688 | msgstr "" | 3688 | msgstr "" |
3689 | 3689 | ||
3690 | #: plugins/check_pgsql.c:320 plugins/check_time.c:277 plugins/check_time.c:289 | 3690 | #: plugins/check_pgsql.c:320 plugins/check_time.c:277 plugins/check_time.c:289 |
3691 | #: plugins/check_users.c:228 | 3691 | #: plugins/check_users.c:241 |
3692 | msgid "Critical threshold must be a positive integer" | 3692 | msgid "Critical threshold must be a positive integer" |
3693 | msgstr "Critical threshold muss ein positiver Integer sein" | 3693 | msgstr "Critical threshold muss ein positiver Integer sein" |
3694 | 3694 | ||
3695 | #: plugins/check_pgsql.c:326 plugins/check_time.c:258 plugins/check_time.c:282 | 3695 | #: plugins/check_pgsql.c:326 plugins/check_time.c:258 plugins/check_time.c:282 |
3696 | #: plugins/check_users.c:226 | 3696 | #: plugins/check_users.c:239 |
3697 | msgid "Warning threshold must be a positive integer" | 3697 | msgid "Warning threshold must be a positive integer" |
3698 | msgstr "Warning threshold muss ein positiver Integer sein" | 3698 | msgstr "Warning threshold muss ein positiver Integer sein" |
3699 | 3699 | ||
@@ -5672,26 +5672,26 @@ msgstr "" | |||
5672 | msgid "http://www.networkupstools.org" | 5672 | msgid "http://www.networkupstools.org" |
5673 | msgstr "" | 5673 | msgstr "" |
5674 | 5674 | ||
5675 | #: plugins/check_users.c:91 | 5675 | #: plugins/check_users.c:101 |
5676 | #, fuzzy, c-format | 5676 | #, fuzzy, c-format |
5677 | msgid "Could not enumerate RD sessions: %d\n" | 5677 | msgid "Could not enumerate RD sessions: %d\n" |
5678 | msgstr "Konnte·url·nicht·zuweisen\n" | 5678 | msgstr "Konnte·url·nicht·zuweisen\n" |
5679 | 5679 | ||
5680 | #: plugins/check_users.c:146 | 5680 | #: plugins/check_users.c:156 |
5681 | #, c-format | 5681 | #, c-format |
5682 | msgid "# users=%d" | 5682 | msgid "# users=%d" |
5683 | msgstr "" | 5683 | msgstr "" |
5684 | 5684 | ||
5685 | #: plugins/check_users.c:164 | 5685 | #: plugins/check_users.c:177 |
5686 | msgid "Unable to read output" | 5686 | msgid "Unable to read output" |
5687 | msgstr "" | 5687 | msgstr "" |
5688 | 5688 | ||
5689 | #: plugins/check_users.c:166 | 5689 | #: plugins/check_users.c:179 |
5690 | #, c-format | 5690 | #, c-format |
5691 | msgid "USERS %s - %d users currently logged in |%s\n" | 5691 | msgid "USERS %s - %d users currently logged in |%s\n" |
5692 | msgstr "" | 5692 | msgstr "" |
5693 | 5693 | ||
5694 | #: plugins/check_users.c:241 | 5694 | #: plugins/check_users.c:254 |
5695 | #, fuzzy | 5695 | #, fuzzy |
5696 | msgid "This plugin checks the number of users currently logged in on the local" | 5696 | msgid "This plugin checks the number of users currently logged in on the local" |
5697 | msgstr "" | 5697 | msgstr "" |
@@ -5700,16 +5700,16 @@ msgstr "" | |||
5700 | "unterschritten wird.\n" | 5700 | "unterschritten wird.\n" |
5701 | "\n" | 5701 | "\n" |
5702 | 5702 | ||
5703 | #: plugins/check_users.c:242 | 5703 | #: plugins/check_users.c:255 |
5704 | msgid "" | 5704 | msgid "" |
5705 | "system and generates an error if the number exceeds the thresholds specified." | 5705 | "system and generates an error if the number exceeds the thresholds specified." |
5706 | msgstr "" | 5706 | msgstr "" |
5707 | 5707 | ||
5708 | #: plugins/check_users.c:252 | 5708 | #: plugins/check_users.c:265 |
5709 | msgid "Set WARNING status if more than INTEGER users are logged in" | 5709 | msgid "Set WARNING status if more than INTEGER users are logged in" |
5710 | msgstr "" | 5710 | msgstr "" |
5711 | 5711 | ||
5712 | #: plugins/check_users.c:254 | 5712 | #: plugins/check_users.c:267 |
5713 | msgid "Set CRITICAL status if more than INTEGER users are logged in" | 5713 | msgid "Set CRITICAL status if more than INTEGER users are logged in" |
5714 | msgstr "" | 5714 | msgstr "" |
5715 | 5715 | ||
@@ -10,7 +10,7 @@ msgid "" | |||
10 | msgstr "" | 10 | msgstr "" |
11 | "Project-Id-Version: fr\n" | 11 | "Project-Id-Version: fr\n" |
12 | "Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n" | 12 | "Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n" |
13 | "POT-Creation-Date: 2023-08-28 11:16+0200\n" | 13 | "POT-Creation-Date: 2023-08-28 14:50+0200\n" |
14 | "PO-Revision-Date: 2010-04-21 23:38-0400\n" | 14 | "PO-Revision-Date: 2010-04-21 23:38-0400\n" |
15 | "Last-Translator: Thomas Guyot-Sionnest <dermoth@aei.ca>\n" | 15 | "Last-Translator: Thomas Guyot-Sionnest <dermoth@aei.ca>\n" |
16 | "Language-Team: Nagios Plugin Development Mailing List <nagiosplug-" | 16 | "Language-Team: Nagios Plugin Development Mailing List <nagiosplug-" |
@@ -34,7 +34,7 @@ msgstr "" | |||
34 | #: plugins/check_radius.c:176 plugins/check_real.c:80 plugins/check_smtp.c:146 | 34 | #: plugins/check_radius.c:176 plugins/check_real.c:80 plugins/check_smtp.c:146 |
35 | #: plugins/check_snmp.c:250 plugins/check_ssh.c:74 plugins/check_swap.c:115 | 35 | #: plugins/check_snmp.c:250 plugins/check_ssh.c:74 plugins/check_swap.c:115 |
36 | #: plugins/check_tcp.c:222 plugins/check_time.c:78 plugins/check_ups.c:122 | 36 | #: plugins/check_tcp.c:222 plugins/check_time.c:78 plugins/check_ups.c:122 |
37 | #: plugins/check_users.c:84 plugins/negate.c:210 plugins-root/check_dhcp.c:270 | 37 | #: plugins/check_users.c:89 plugins/negate.c:210 plugins-root/check_dhcp.c:270 |
38 | msgid "Could not parse arguments" | 38 | msgid "Could not parse arguments" |
39 | msgstr "Impossible de décomposer les arguments" | 39 | msgstr "Impossible de décomposer les arguments" |
40 | 40 | ||
@@ -261,7 +261,7 @@ msgstr "Exemples:" | |||
261 | #: plugins/check_radius.c:400 plugins/check_real.c:452 plugins/check_smtp.c:891 | 261 | #: plugins/check_radius.c:400 plugins/check_real.c:452 plugins/check_smtp.c:891 |
262 | #: plugins/check_snmp.c:1368 plugins/check_ssh.c:325 plugins/check_swap.c:607 | 262 | #: plugins/check_snmp.c:1368 plugins/check_ssh.c:325 plugins/check_swap.c:607 |
263 | #: plugins/check_tcp.c:710 plugins/check_time.c:371 plugins/check_ups.c:663 | 263 | #: plugins/check_tcp.c:710 plugins/check_time.c:371 plugins/check_ups.c:663 |
264 | #: plugins/check_users.c:262 plugins/check_ide_smart.c:606 plugins/negate.c:273 | 264 | #: plugins/check_users.c:275 plugins/check_ide_smart.c:606 plugins/negate.c:273 |
265 | #: plugins/urlize.c:196 plugins-root/check_dhcp.c:1390 | 265 | #: plugins/urlize.c:196 plugins-root/check_dhcp.c:1390 |
266 | #: plugins-root/check_icmp.c:1633 | 266 | #: plugins-root/check_icmp.c:1633 |
267 | msgid "Usage:" | 267 | msgid "Usage:" |
@@ -929,13 +929,13 @@ msgid "of the <state> argument with optional text" | |||
929 | msgstr "du paramètre <state> avec un texte optionnel" | 929 | msgstr "du paramètre <state> avec un texte optionnel" |
930 | 930 | ||
931 | #: plugins/check_fping.c:127 plugins/check_hpjd.c:134 plugins/check_ping.c:444 | 931 | #: plugins/check_fping.c:127 plugins/check_hpjd.c:134 plugins/check_ping.c:444 |
932 | #: plugins/check_swap.c:193 plugins/check_users.c:130 plugins/urlize.c:109 | 932 | #: plugins/check_swap.c:193 plugins/check_users.c:140 plugins/urlize.c:109 |
933 | #, c-format | 933 | #, c-format |
934 | msgid "Could not open pipe: %s\n" | 934 | msgid "Could not open pipe: %s\n" |
935 | msgstr "Impossible d'ouvrir le pipe: %s\n" | 935 | msgstr "Impossible d'ouvrir le pipe: %s\n" |
936 | 936 | ||
937 | #: plugins/check_fping.c:133 plugins/check_hpjd.c:140 plugins/check_load.c:159 | 937 | #: plugins/check_fping.c:133 plugins/check_hpjd.c:140 plugins/check_load.c:159 |
938 | #: plugins/check_swap.c:199 plugins/check_users.c:136 plugins/urlize.c:115 | 938 | #: plugins/check_swap.c:199 plugins/check_users.c:146 plugins/urlize.c:115 |
939 | #, c-format | 939 | #, c-format |
940 | msgid "Could not open stderr for %s\n" | 940 | msgid "Could not open stderr for %s\n" |
941 | msgstr "Impossible d'ouvrir la sortie d'erreur standard pour %s\n" | 941 | msgstr "Impossible d'ouvrir la sortie d'erreur standard pour %s\n" |
@@ -1495,8 +1495,8 @@ msgstr "" | |||
1495 | #, fuzzy, c-format | 1495 | #, fuzzy, c-format |
1496 | msgid "HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n" | 1496 | msgid "HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n" |
1497 | msgstr "" | 1497 | msgstr "" |
1498 | "HTTP AVERTISSEMENT - la redirection crée une boucle infinie - %s://%s:" | 1498 | "HTTP AVERTISSEMENT - la redirection crée une boucle infinie - %s://%s:%d%s" |
1499 | "%d%s%s\n" | 1499 | "%s\n" |
1500 | 1500 | ||
1501 | #: plugins/check_http.c:1630 | 1501 | #: plugins/check_http.c:1630 |
1502 | #, c-format | 1502 | #, c-format |
@@ -3084,8 +3084,8 @@ msgstr "" | |||
3084 | #: plugins/check_ntp_peer.c:716 | 3084 | #: plugins/check_ntp_peer.c:716 |
3085 | msgid "Critical threshold for number of usable time sources (\"truechimers\")" | 3085 | msgid "Critical threshold for number of usable time sources (\"truechimers\")" |
3086 | msgstr "" | 3086 | msgstr "" |
3087 | "Seuil critique pour le nombre de sources de temps utilisable " | 3087 | "Seuil critique pour le nombre de sources de temps utilisable (\"truechimers" |
3088 | "(\"truechimers\")" | 3088 | "\")" |
3089 | 3089 | ||
3090 | #: plugins/check_ntp_peer.c:721 | 3090 | #: plugins/check_ntp_peer.c:721 |
3091 | msgid "This plugin checks an NTP server independent of any commandline" | 3091 | msgid "This plugin checks an NTP server independent of any commandline" |
@@ -3751,12 +3751,12 @@ msgid " %s - database %s (%f sec.)|%s\n" | |||
3751 | msgstr " %s - base de données %s (%d sec.)|%s\n" | 3751 | msgstr " %s - base de données %s (%d sec.)|%s\n" |
3752 | 3752 | ||
3753 | #: plugins/check_pgsql.c:320 plugins/check_time.c:277 plugins/check_time.c:289 | 3753 | #: plugins/check_pgsql.c:320 plugins/check_time.c:277 plugins/check_time.c:289 |
3754 | #: plugins/check_users.c:228 | 3754 | #: plugins/check_users.c:241 |
3755 | msgid "Critical threshold must be a positive integer" | 3755 | msgid "Critical threshold must be a positive integer" |
3756 | msgstr "Le seuil critique doit être un entier positif" | 3756 | msgstr "Le seuil critique doit être un entier positif" |
3757 | 3757 | ||
3758 | #: plugins/check_pgsql.c:326 plugins/check_time.c:258 plugins/check_time.c:282 | 3758 | #: plugins/check_pgsql.c:326 plugins/check_time.c:258 plugins/check_time.c:282 |
3759 | #: plugins/check_users.c:226 | 3759 | #: plugins/check_users.c:239 |
3760 | msgid "Warning threshold must be a positive integer" | 3760 | msgid "Warning threshold must be a positive integer" |
3761 | msgstr "Le seuil d'avertissement doit être un entier positif" | 3761 | msgstr "Le seuil d'avertissement doit être un entier positif" |
3762 | 3762 | ||
@@ -5778,43 +5778,43 @@ msgstr "" | |||
5778 | msgid "http://www.networkupstools.org" | 5778 | msgid "http://www.networkupstools.org" |
5779 | msgstr "" | 5779 | msgstr "" |
5780 | 5780 | ||
5781 | #: plugins/check_users.c:91 | 5781 | #: plugins/check_users.c:101 |
5782 | #, fuzzy, c-format | 5782 | #, fuzzy, c-format |
5783 | msgid "Could not enumerate RD sessions: %d\n" | 5783 | msgid "Could not enumerate RD sessions: %d\n" |
5784 | msgstr "Impossible d'utiliser le protocole version %d\n" | 5784 | msgstr "Impossible d'utiliser le protocole version %d\n" |
5785 | 5785 | ||
5786 | #: plugins/check_users.c:146 | 5786 | #: plugins/check_users.c:156 |
5787 | #, c-format | 5787 | #, c-format |
5788 | msgid "# users=%d" | 5788 | msgid "# users=%d" |
5789 | msgstr "# utilisateurs=%d" | 5789 | msgstr "# utilisateurs=%d" |
5790 | 5790 | ||
5791 | #: plugins/check_users.c:164 | 5791 | #: plugins/check_users.c:177 |
5792 | msgid "Unable to read output" | 5792 | msgid "Unable to read output" |
5793 | msgstr "Impossible de lire les données en entrée" | 5793 | msgstr "Impossible de lire les données en entrée" |
5794 | 5794 | ||
5795 | #: plugins/check_users.c:166 | 5795 | #: plugins/check_users.c:179 |
5796 | #, c-format | 5796 | #, c-format |
5797 | msgid "USERS %s - %d users currently logged in |%s\n" | 5797 | msgid "USERS %s - %d users currently logged in |%s\n" |
5798 | msgstr "UTILISATEURS %s - %d utilisateurs actuellement connectés sur |%s\n" | 5798 | msgstr "UTILISATEURS %s - %d utilisateurs actuellement connectés sur |%s\n" |
5799 | 5799 | ||
5800 | #: plugins/check_users.c:241 | 5800 | #: plugins/check_users.c:254 |
5801 | msgid "This plugin checks the number of users currently logged in on the local" | 5801 | msgid "This plugin checks the number of users currently logged in on the local" |
5802 | msgstr "" | 5802 | msgstr "" |
5803 | "Ce plugin vérifie le nombre d'utilisateurs actuellement connecté sur le " | 5803 | "Ce plugin vérifie le nombre d'utilisateurs actuellement connecté sur le " |
5804 | "système local" | 5804 | "système local" |
5805 | 5805 | ||
5806 | #: plugins/check_users.c:242 | 5806 | #: plugins/check_users.c:255 |
5807 | msgid "" | 5807 | msgid "" |
5808 | "system and generates an error if the number exceeds the thresholds specified." | 5808 | "system and generates an error if the number exceeds the thresholds specified." |
5809 | msgstr "et génère une erreur si le nombre excède le seuil spécifié." | 5809 | msgstr "et génère une erreur si le nombre excède le seuil spécifié." |
5810 | 5810 | ||
5811 | #: plugins/check_users.c:252 | 5811 | #: plugins/check_users.c:265 |
5812 | msgid "Set WARNING status if more than INTEGER users are logged in" | 5812 | msgid "Set WARNING status if more than INTEGER users are logged in" |
5813 | msgstr "" | 5813 | msgstr "" |
5814 | "Sortir avec un résultat AVERTISSEMENT si plus de INTEGER utilisateurs sont " | 5814 | "Sortir avec un résultat AVERTISSEMENT si plus de INTEGER utilisateurs sont " |
5815 | "connectés" | 5815 | "connectés" |
5816 | 5816 | ||
5817 | #: plugins/check_users.c:254 | 5817 | #: plugins/check_users.c:267 |
5818 | msgid "Set CRITICAL status if more than INTEGER users are logged in" | 5818 | msgid "Set CRITICAL status if more than INTEGER users are logged in" |
5819 | msgstr "" | 5819 | msgstr "" |
5820 | "Sortir avec un résultat CRITIQUE si plus de INTEGER utilisateurs sont " | 5820 | "Sortir avec un résultat CRITIQUE si plus de INTEGER utilisateurs sont " |
diff --git a/po/monitoring-plugins.pot b/po/monitoring-plugins.pot index 03788f15..df2ad296 100644 --- a/po/monitoring-plugins.pot +++ b/po/monitoring-plugins.pot | |||
@@ -8,7 +8,7 @@ msgid "" | |||
8 | msgstr "" | 8 | msgstr "" |
9 | "Project-Id-Version: PACKAGE VERSION\n" | 9 | "Project-Id-Version: PACKAGE VERSION\n" |
10 | "Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n" | 10 | "Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n" |
11 | "POT-Creation-Date: 2023-08-28 11:16+0200\n" | 11 | "POT-Creation-Date: 2023-08-28 14:50+0200\n" |
12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
14 | "Language-Team: LANGUAGE <LL@li.org>\n" | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
@@ -30,7 +30,7 @@ msgstr "" | |||
30 | #: plugins/check_radius.c:176 plugins/check_real.c:80 plugins/check_smtp.c:146 | 30 | #: plugins/check_radius.c:176 plugins/check_real.c:80 plugins/check_smtp.c:146 |
31 | #: plugins/check_snmp.c:250 plugins/check_ssh.c:74 plugins/check_swap.c:115 | 31 | #: plugins/check_snmp.c:250 plugins/check_ssh.c:74 plugins/check_swap.c:115 |
32 | #: plugins/check_tcp.c:222 plugins/check_time.c:78 plugins/check_ups.c:122 | 32 | #: plugins/check_tcp.c:222 plugins/check_time.c:78 plugins/check_ups.c:122 |
33 | #: plugins/check_users.c:84 plugins/negate.c:210 plugins-root/check_dhcp.c:270 | 33 | #: plugins/check_users.c:89 plugins/negate.c:210 plugins-root/check_dhcp.c:270 |
34 | msgid "Could not parse arguments" | 34 | msgid "Could not parse arguments" |
35 | msgstr "" | 35 | msgstr "" |
36 | 36 | ||
@@ -246,7 +246,7 @@ msgstr "" | |||
246 | #: plugins/check_radius.c:400 plugins/check_real.c:452 plugins/check_smtp.c:891 | 246 | #: plugins/check_radius.c:400 plugins/check_real.c:452 plugins/check_smtp.c:891 |
247 | #: plugins/check_snmp.c:1368 plugins/check_ssh.c:325 plugins/check_swap.c:607 | 247 | #: plugins/check_snmp.c:1368 plugins/check_ssh.c:325 plugins/check_swap.c:607 |
248 | #: plugins/check_tcp.c:710 plugins/check_time.c:371 plugins/check_ups.c:663 | 248 | #: plugins/check_tcp.c:710 plugins/check_time.c:371 plugins/check_ups.c:663 |
249 | #: plugins/check_users.c:262 plugins/check_ide_smart.c:606 plugins/negate.c:273 | 249 | #: plugins/check_users.c:275 plugins/check_ide_smart.c:606 plugins/negate.c:273 |
250 | #: plugins/urlize.c:196 plugins-root/check_dhcp.c:1390 | 250 | #: plugins/urlize.c:196 plugins-root/check_dhcp.c:1390 |
251 | #: plugins-root/check_icmp.c:1633 | 251 | #: plugins-root/check_icmp.c:1633 |
252 | msgid "Usage:" | 252 | msgid "Usage:" |
@@ -870,13 +870,13 @@ msgid "of the <state> argument with optional text" | |||
870 | msgstr "" | 870 | msgstr "" |
871 | 871 | ||
872 | #: plugins/check_fping.c:127 plugins/check_hpjd.c:134 plugins/check_ping.c:444 | 872 | #: plugins/check_fping.c:127 plugins/check_hpjd.c:134 plugins/check_ping.c:444 |
873 | #: plugins/check_swap.c:193 plugins/check_users.c:130 plugins/urlize.c:109 | 873 | #: plugins/check_swap.c:193 plugins/check_users.c:140 plugins/urlize.c:109 |
874 | #, c-format | 874 | #, c-format |
875 | msgid "Could not open pipe: %s\n" | 875 | msgid "Could not open pipe: %s\n" |
876 | msgstr "" | 876 | msgstr "" |
877 | 877 | ||
878 | #: plugins/check_fping.c:133 plugins/check_hpjd.c:140 plugins/check_load.c:159 | 878 | #: plugins/check_fping.c:133 plugins/check_hpjd.c:140 plugins/check_load.c:159 |
879 | #: plugins/check_swap.c:199 plugins/check_users.c:136 plugins/urlize.c:115 | 879 | #: plugins/check_swap.c:199 plugins/check_users.c:146 plugins/urlize.c:115 |
880 | #, c-format | 880 | #, c-format |
881 | msgid "Could not open stderr for %s\n" | 881 | msgid "Could not open stderr for %s\n" |
882 | msgstr "" | 882 | msgstr "" |
@@ -3592,12 +3592,12 @@ msgid " %s - database %s (%f sec.)|%s\n" | |||
3592 | msgstr "" | 3592 | msgstr "" |
3593 | 3593 | ||
3594 | #: plugins/check_pgsql.c:320 plugins/check_time.c:277 plugins/check_time.c:289 | 3594 | #: plugins/check_pgsql.c:320 plugins/check_time.c:277 plugins/check_time.c:289 |
3595 | #: plugins/check_users.c:228 | 3595 | #: plugins/check_users.c:241 |
3596 | msgid "Critical threshold must be a positive integer" | 3596 | msgid "Critical threshold must be a positive integer" |
3597 | msgstr "" | 3597 | msgstr "" |
3598 | 3598 | ||
3599 | #: plugins/check_pgsql.c:326 plugins/check_time.c:258 plugins/check_time.c:282 | 3599 | #: plugins/check_pgsql.c:326 plugins/check_time.c:258 plugins/check_time.c:282 |
3600 | #: plugins/check_users.c:226 | 3600 | #: plugins/check_users.c:239 |
3601 | msgid "Warning threshold must be a positive integer" | 3601 | msgid "Warning threshold must be a positive integer" |
3602 | msgstr "" | 3602 | msgstr "" |
3603 | 3603 | ||
@@ -5517,39 +5517,39 @@ msgstr "" | |||
5517 | msgid "http://www.networkupstools.org" | 5517 | msgid "http://www.networkupstools.org" |
5518 | msgstr "" | 5518 | msgstr "" |
5519 | 5519 | ||
5520 | #: plugins/check_users.c:91 | 5520 | #: plugins/check_users.c:101 |
5521 | #, c-format | 5521 | #, c-format |
5522 | msgid "Could not enumerate RD sessions: %d\n" | 5522 | msgid "Could not enumerate RD sessions: %d\n" |
5523 | msgstr "" | 5523 | msgstr "" |
5524 | 5524 | ||
5525 | #: plugins/check_users.c:146 | 5525 | #: plugins/check_users.c:156 |
5526 | #, c-format | 5526 | #, c-format |
5527 | msgid "# users=%d" | 5527 | msgid "# users=%d" |
5528 | msgstr "" | 5528 | msgstr "" |
5529 | 5529 | ||
5530 | #: plugins/check_users.c:164 | 5530 | #: plugins/check_users.c:177 |
5531 | msgid "Unable to read output" | 5531 | msgid "Unable to read output" |
5532 | msgstr "" | 5532 | msgstr "" |
5533 | 5533 | ||
5534 | #: plugins/check_users.c:166 | 5534 | #: plugins/check_users.c:179 |
5535 | #, c-format | 5535 | #, c-format |
5536 | msgid "USERS %s - %d users currently logged in |%s\n" | 5536 | msgid "USERS %s - %d users currently logged in |%s\n" |
5537 | msgstr "" | 5537 | msgstr "" |
5538 | 5538 | ||
5539 | #: plugins/check_users.c:241 | 5539 | #: plugins/check_users.c:254 |
5540 | msgid "This plugin checks the number of users currently logged in on the local" | 5540 | msgid "This plugin checks the number of users currently logged in on the local" |
5541 | msgstr "" | 5541 | msgstr "" |
5542 | 5542 | ||
5543 | #: plugins/check_users.c:242 | 5543 | #: plugins/check_users.c:255 |
5544 | msgid "" | 5544 | msgid "" |
5545 | "system and generates an error if the number exceeds the thresholds specified." | 5545 | "system and generates an error if the number exceeds the thresholds specified." |
5546 | msgstr "" | 5546 | msgstr "" |
5547 | 5547 | ||
5548 | #: plugins/check_users.c:252 | 5548 | #: plugins/check_users.c:265 |
5549 | msgid "Set WARNING status if more than INTEGER users are logged in" | 5549 | msgid "Set WARNING status if more than INTEGER users are logged in" |
5550 | msgstr "" | 5550 | msgstr "" |
5551 | 5551 | ||
5552 | #: plugins/check_users.c:254 | 5552 | #: plugins/check_users.c:267 |
5553 | msgid "Set CRITICAL status if more than INTEGER users are logged in" | 5553 | msgid "Set CRITICAL status if more than INTEGER users are logged in" |
5554 | msgstr "" | 5554 | msgstr "" |
5555 | 5555 | ||