diff options
author | Thorsten Kukuk <kukuk@suse.com> | 2023-06-16 07:28:21 (GMT) |
---|---|---|
committer | Thorsten Kukuk <5908016+thkukuk@users.noreply.github.com> | 2023-08-28 12:55:56 (GMT) |
commit | 801784ae89224d004dc79af95545acbdf547ce64 (patch) | |
tree | a168eac393325f52698cc2bc59bfccece86524c1 | |
parent | 43131b73d69e77a3faee69814dac1bbc88162887 (diff) | |
download | monitoring-plugins-801784ae89224d004dc79af95545acbdf547ce64.tar.gz |
check_users: prefer systemd-logind over utmprefs/pull/1888/head
Prefer systemd-logind over utmp to get the number of logged in users.
utmp is not reliable for this (e.g. some terminals create utmp entries,
other not) and utmp is not Y2038 safe with glibc on Linux.
-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 069cc62..a294b00 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 ab59eb7..49086b7 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 f6f4b36..2a9ee98 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-07-11 16:07+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:248 plugins/check_ssh.c:74 plugins/check_swap.c:115 | 32 | #: plugins/check_snmp.c:248 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:1347 plugins/check_ssh.c:325 plugins/check_swap.c:607 | 256 | #: plugins/check_snmp.c:1347 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 | ||
@@ -5668,26 +5668,26 @@ msgstr "" | |||
5668 | msgid "http://www.networkupstools.org" | 5668 | msgid "http://www.networkupstools.org" |
5669 | msgstr "" | 5669 | msgstr "" |
5670 | 5670 | ||
5671 | #: plugins/check_users.c:91 | 5671 | #: plugins/check_users.c:101 |
5672 | #, fuzzy, c-format | 5672 | #, fuzzy, c-format |
5673 | msgid "Could not enumerate RD sessions: %d\n" | 5673 | msgid "Could not enumerate RD sessions: %d\n" |
5674 | msgstr "Konnte·url·nicht·zuweisen\n" | 5674 | msgstr "Konnte·url·nicht·zuweisen\n" |
5675 | 5675 | ||
5676 | #: plugins/check_users.c:146 | 5676 | #: plugins/check_users.c:156 |
5677 | #, c-format | 5677 | #, c-format |
5678 | msgid "# users=%d" | 5678 | msgid "# users=%d" |
5679 | msgstr "" | 5679 | msgstr "" |
5680 | 5680 | ||
5681 | #: plugins/check_users.c:164 | 5681 | #: plugins/check_users.c:177 |
5682 | msgid "Unable to read output" | 5682 | msgid "Unable to read output" |
5683 | msgstr "" | 5683 | msgstr "" |
5684 | 5684 | ||
5685 | #: plugins/check_users.c:166 | 5685 | #: plugins/check_users.c:179 |
5686 | #, c-format | 5686 | #, c-format |
5687 | msgid "USERS %s - %d users currently logged in |%s\n" | 5687 | msgid "USERS %s - %d users currently logged in |%s\n" |
5688 | msgstr "" | 5688 | msgstr "" |
5689 | 5689 | ||
5690 | #: plugins/check_users.c:241 | 5690 | #: plugins/check_users.c:254 |
5691 | #, fuzzy | 5691 | #, fuzzy |
5692 | msgid "This plugin checks the number of users currently logged in on the local" | 5692 | msgid "This plugin checks the number of users currently logged in on the local" |
5693 | msgstr "" | 5693 | msgstr "" |
@@ -5696,16 +5696,16 @@ msgstr "" | |||
5696 | "unterschritten wird.\n" | 5696 | "unterschritten wird.\n" |
5697 | "\n" | 5697 | "\n" |
5698 | 5698 | ||
5699 | #: plugins/check_users.c:242 | 5699 | #: plugins/check_users.c:255 |
5700 | msgid "" | 5700 | msgid "" |
5701 | "system and generates an error if the number exceeds the thresholds specified." | 5701 | "system and generates an error if the number exceeds the thresholds specified." |
5702 | msgstr "" | 5702 | msgstr "" |
5703 | 5703 | ||
5704 | #: plugins/check_users.c:252 | 5704 | #: plugins/check_users.c:265 |
5705 | msgid "Set WARNING status if more than INTEGER users are logged in" | 5705 | msgid "Set WARNING status if more than INTEGER users are logged in" |
5706 | msgstr "" | 5706 | msgstr "" |
5707 | 5707 | ||
5708 | #: plugins/check_users.c:254 | 5708 | #: plugins/check_users.c:267 |
5709 | msgid "Set CRITICAL status if more than INTEGER users are logged in" | 5709 | msgid "Set CRITICAL status if more than INTEGER users are logged in" |
5710 | msgstr "" | 5710 | msgstr "" |
5711 | 5711 | ||
@@ -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-07-11 16:07+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:248 plugins/check_ssh.c:74 plugins/check_swap.c:115 | 35 | #: plugins/check_snmp.c:248 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:1347 plugins/check_ssh.c:325 plugins/check_swap.c:607 | 262 | #: plugins/check_snmp.c:1347 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 | ||
@@ -5774,43 +5774,43 @@ msgstr "" | |||
5774 | msgid "http://www.networkupstools.org" | 5774 | msgid "http://www.networkupstools.org" |
5775 | msgstr "" | 5775 | msgstr "" |
5776 | 5776 | ||
5777 | #: plugins/check_users.c:91 | 5777 | #: plugins/check_users.c:101 |
5778 | #, fuzzy, c-format | 5778 | #, fuzzy, c-format |
5779 | msgid "Could not enumerate RD sessions: %d\n" | 5779 | msgid "Could not enumerate RD sessions: %d\n" |
5780 | msgstr "Impossible d'utiliser le protocole version %d\n" | 5780 | msgstr "Impossible d'utiliser le protocole version %d\n" |
5781 | 5781 | ||
5782 | #: plugins/check_users.c:146 | 5782 | #: plugins/check_users.c:156 |
5783 | #, c-format | 5783 | #, c-format |
5784 | msgid "# users=%d" | 5784 | msgid "# users=%d" |
5785 | msgstr "# utilisateurs=%d" | 5785 | msgstr "# utilisateurs=%d" |
5786 | 5786 | ||
5787 | #: plugins/check_users.c:164 | 5787 | #: plugins/check_users.c:177 |
5788 | msgid "Unable to read output" | 5788 | msgid "Unable to read output" |
5789 | msgstr "Impossible de lire les données en entrée" | 5789 | msgstr "Impossible de lire les données en entrée" |
5790 | 5790 | ||
5791 | #: plugins/check_users.c:166 | 5791 | #: plugins/check_users.c:179 |
5792 | #, c-format | 5792 | #, c-format |
5793 | msgid "USERS %s - %d users currently logged in |%s\n" | 5793 | msgid "USERS %s - %d users currently logged in |%s\n" |
5794 | msgstr "UTILISATEURS %s - %d utilisateurs actuellement connectés sur |%s\n" | 5794 | msgstr "UTILISATEURS %s - %d utilisateurs actuellement connectés sur |%s\n" |
5795 | 5795 | ||
5796 | #: plugins/check_users.c:241 | 5796 | #: plugins/check_users.c:254 |
5797 | msgid "This plugin checks the number of users currently logged in on the local" | 5797 | msgid "This plugin checks the number of users currently logged in on the local" |
5798 | msgstr "" | 5798 | msgstr "" |
5799 | "Ce plugin vérifie le nombre d'utilisateurs actuellement connecté sur le " | 5799 | "Ce plugin vérifie le nombre d'utilisateurs actuellement connecté sur le " |
5800 | "système local" | 5800 | "système local" |
5801 | 5801 | ||
5802 | #: plugins/check_users.c:242 | 5802 | #: plugins/check_users.c:255 |
5803 | msgid "" | 5803 | msgid "" |
5804 | "system and generates an error if the number exceeds the thresholds specified." | 5804 | "system and generates an error if the number exceeds the thresholds specified." |
5805 | msgstr "et génère une erreur si le nombre excède le seuil spécifié." | 5805 | msgstr "et génère une erreur si le nombre excède le seuil spécifié." |
5806 | 5806 | ||
5807 | #: plugins/check_users.c:252 | 5807 | #: plugins/check_users.c:265 |
5808 | msgid "Set WARNING status if more than INTEGER users are logged in" | 5808 | msgid "Set WARNING status if more than INTEGER users are logged in" |
5809 | msgstr "" | 5809 | msgstr "" |
5810 | "Sortir avec un résultat AVERTISSEMENT si plus de INTEGER utilisateurs sont " | 5810 | "Sortir avec un résultat AVERTISSEMENT si plus de INTEGER utilisateurs sont " |
5811 | "connectés" | 5811 | "connectés" |
5812 | 5812 | ||
5813 | #: plugins/check_users.c:254 | 5813 | #: plugins/check_users.c:267 |
5814 | msgid "Set CRITICAL status if more than INTEGER users are logged in" | 5814 | msgid "Set CRITICAL status if more than INTEGER users are logged in" |
5815 | msgstr "" | 5815 | msgstr "" |
5816 | "Sortir avec un résultat CRITIQUE si plus de INTEGER utilisateurs sont " | 5816 | "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 4f6b241..012967d 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-07-11 16:07+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:248 plugins/check_ssh.c:74 plugins/check_swap.c:115 | 31 | #: plugins/check_snmp.c:248 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:1347 plugins/check_ssh.c:325 plugins/check_swap.c:607 | 247 | #: plugins/check_snmp.c:1347 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 | ||
@@ -5513,39 +5513,39 @@ msgstr "" | |||
5513 | msgid "http://www.networkupstools.org" | 5513 | msgid "http://www.networkupstools.org" |
5514 | msgstr "" | 5514 | msgstr "" |
5515 | 5515 | ||
5516 | #: plugins/check_users.c:91 | 5516 | #: plugins/check_users.c:101 |
5517 | #, c-format | 5517 | #, c-format |
5518 | msgid "Could not enumerate RD sessions: %d\n" | 5518 | msgid "Could not enumerate RD sessions: %d\n" |
5519 | msgstr "" | 5519 | msgstr "" |
5520 | 5520 | ||
5521 | #: plugins/check_users.c:146 | 5521 | #: plugins/check_users.c:156 |
5522 | #, c-format | 5522 | #, c-format |
5523 | msgid "# users=%d" | 5523 | msgid "# users=%d" |
5524 | msgstr "" | 5524 | msgstr "" |
5525 | 5525 | ||
5526 | #: plugins/check_users.c:164 | 5526 | #: plugins/check_users.c:177 |
5527 | msgid "Unable to read output" | 5527 | msgid "Unable to read output" |
5528 | msgstr "" | 5528 | msgstr "" |
5529 | 5529 | ||
5530 | #: plugins/check_users.c:166 | 5530 | #: plugins/check_users.c:179 |
5531 | #, c-format | 5531 | #, c-format |
5532 | msgid "USERS %s - %d users currently logged in |%s\n" | 5532 | msgid "USERS %s - %d users currently logged in |%s\n" |
5533 | msgstr "" | 5533 | msgstr "" |
5534 | 5534 | ||
5535 | #: plugins/check_users.c:241 | 5535 | #: plugins/check_users.c:254 |
5536 | msgid "This plugin checks the number of users currently logged in on the local" | 5536 | msgid "This plugin checks the number of users currently logged in on the local" |
5537 | msgstr "" | 5537 | msgstr "" |
5538 | 5538 | ||
5539 | #: plugins/check_users.c:242 | 5539 | #: plugins/check_users.c:255 |
5540 | msgid "" | 5540 | msgid "" |
5541 | "system and generates an error if the number exceeds the thresholds specified." | 5541 | "system and generates an error if the number exceeds the thresholds specified." |
5542 | msgstr "" | 5542 | msgstr "" |
5543 | 5543 | ||
5544 | #: plugins/check_users.c:252 | 5544 | #: plugins/check_users.c:265 |
5545 | msgid "Set WARNING status if more than INTEGER users are logged in" | 5545 | msgid "Set WARNING status if more than INTEGER users are logged in" |
5546 | msgstr "" | 5546 | msgstr "" |
5547 | 5547 | ||
5548 | #: plugins/check_users.c:254 | 5548 | #: plugins/check_users.c:267 |
5549 | msgid "Set CRITICAL status if more than INTEGER users are logged in" | 5549 | msgid "Set CRITICAL status if more than INTEGER users are logged in" |
5550 | msgstr "" | 5550 | msgstr "" |
5551 | 5551 | ||