summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@suse.com>2023-06-16 07:28:21 (GMT)
committerThorsten Kukuk <5908016+thkukuk@users.noreply.github.com>2023-08-28 12:55:56 (GMT)
commit801784ae89224d004dc79af95545acbdf547ce64 (patch)
treea168eac393325f52698cc2bc59bfccece86524c1
parent43131b73d69e77a3faee69814dac1bbc88162887 (diff)
downloadmonitoring-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.ac19
-rw-r--r--plugins/Makefile.am2
-rw-r--r--plugins/check_users.c37
-rw-r--r--po/de.po30
-rw-r--r--po/fr.po38
-rw-r--r--po/monitoring-plugins.pot30
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
332AC_ARG_WITH([systemd], [AS_HELP_STRING([--without-systemd], [Skips systemd support])])
333
334dnl Check for libsystemd
335AS_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
331dnl Check for headers used by check_ide_smart 350dnl Check for headers used by check_ide_smart
332case $host in 351case $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)
112check_time_LDADD = $(NETLIBS) 112check_time_LDADD = $(NETLIBS)
113check_ntp_time_LDADD = $(NETLIBS) $(MATHLIBS) 113check_ntp_time_LDADD = $(NETLIBS) $(MATHLIBS)
114check_ups_LDADD = $(NETLIBS) 114check_ups_LDADD = $(NETLIBS)
115check_users_LDADD = $(BASEOBJS) $(WTSAPI32LIBS) 115check_users_LDADD = $(BASEOBJS) $(WTSAPI32LIBS) $(SYSTEMDLIBS)
116check_by_ssh_LDADD = $(NETLIBS) 116check_by_ssh_LDADD = $(NETLIBS)
117check_ide_smart_LDADD = $(BASEOBJS) 117check_ide_smart_LDADD = $(BASEOBJS)
118negate_LDADD = $(BASEOBJS) 118negate_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
33const char *progname = "check_users"; 33const 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
53int process_arguments (int, char **); 58int 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));
diff --git a/po/de.po b/po/de.po
index eb0f8df..1989dbd 100644
--- a/po/de.po
+++ b/po/de.po
@@ -9,7 +9,7 @@ msgid ""
9msgstr "" 9msgstr ""
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
35msgid "Could not parse arguments" 35msgid "Could not parse arguments"
36msgstr "Argumente konnten nicht ausgewertet werden" 36msgstr "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
261msgid "Usage:" 261msgid "Usage:"
@@ -892,13 +892,13 @@ msgid "of the <state> argument with optional text"
892msgstr "" 892msgstr ""
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
897msgid "Could not open pipe: %s\n" 897msgid "Could not open pipe: %s\n"
898msgstr "Pipe: %s konnte nicht geöffnet werden\n" 898msgstr "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
903msgid "Could not open stderr for %s\n" 903msgid "Could not open stderr for %s\n"
904msgstr "Konnte stderr nicht öffnen für: %s\n" 904msgstr "Konnte stderr nicht öffnen für: %s\n"
@@ -3688,12 +3688,12 @@ msgid " %s - database %s (%f sec.)|%s\n"
3688msgstr "" 3688msgstr ""
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
3692msgid "Critical threshold must be a positive integer" 3692msgid "Critical threshold must be a positive integer"
3693msgstr "Critical threshold muss ein positiver Integer sein" 3693msgstr "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
3697msgid "Warning threshold must be a positive integer" 3697msgid "Warning threshold must be a positive integer"
3698msgstr "Warning threshold muss ein positiver Integer sein" 3698msgstr "Warning threshold muss ein positiver Integer sein"
3699 3699
@@ -5668,26 +5668,26 @@ msgstr ""
5668msgid "http://www.networkupstools.org" 5668msgid "http://www.networkupstools.org"
5669msgstr "" 5669msgstr ""
5670 5670
5671#: plugins/check_users.c:91 5671#: plugins/check_users.c:101
5672#, fuzzy, c-format 5672#, fuzzy, c-format
5673msgid "Could not enumerate RD sessions: %d\n" 5673msgid "Could not enumerate RD sessions: %d\n"
5674msgstr "Konnte·url·nicht·zuweisen\n" 5674msgstr "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
5678msgid "# users=%d" 5678msgid "# users=%d"
5679msgstr "" 5679msgstr ""
5680 5680
5681#: plugins/check_users.c:164 5681#: plugins/check_users.c:177
5682msgid "Unable to read output" 5682msgid "Unable to read output"
5683msgstr "" 5683msgstr ""
5684 5684
5685#: plugins/check_users.c:166 5685#: plugins/check_users.c:179
5686#, c-format 5686#, c-format
5687msgid "USERS %s - %d users currently logged in |%s\n" 5687msgid "USERS %s - %d users currently logged in |%s\n"
5688msgstr "" 5688msgstr ""
5689 5689
5690#: plugins/check_users.c:241 5690#: plugins/check_users.c:254
5691#, fuzzy 5691#, fuzzy
5692msgid "This plugin checks the number of users currently logged in on the local" 5692msgid "This plugin checks the number of users currently logged in on the local"
5693msgstr "" 5693msgstr ""
@@ -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
5700msgid "" 5700msgid ""
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."
5702msgstr "" 5702msgstr ""
5703 5703
5704#: plugins/check_users.c:252 5704#: plugins/check_users.c:265
5705msgid "Set WARNING status if more than INTEGER users are logged in" 5705msgid "Set WARNING status if more than INTEGER users are logged in"
5706msgstr "" 5706msgstr ""
5707 5707
5708#: plugins/check_users.c:254 5708#: plugins/check_users.c:267
5709msgid "Set CRITICAL status if more than INTEGER users are logged in" 5709msgid "Set CRITICAL status if more than INTEGER users are logged in"
5710msgstr "" 5710msgstr ""
5711 5711
diff --git a/po/fr.po b/po/fr.po
index a20c93c..e4dffac 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -10,7 +10,7 @@ msgid ""
10msgstr "" 10msgstr ""
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
38msgid "Could not parse arguments" 38msgid "Could not parse arguments"
39msgstr "Impossible de décomposer les arguments" 39msgstr "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
267msgid "Usage:" 267msgid "Usage:"
@@ -929,13 +929,13 @@ msgid "of the <state> argument with optional text"
929msgstr "du paramètre <state> avec un texte optionnel" 929msgstr "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
934msgid "Could not open pipe: %s\n" 934msgid "Could not open pipe: %s\n"
935msgstr "Impossible d'ouvrir le pipe: %s\n" 935msgstr "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
940msgid "Could not open stderr for %s\n" 940msgid "Could not open stderr for %s\n"
941msgstr "Impossible d'ouvrir la sortie d'erreur standard pour %s\n" 941msgstr "Impossible d'ouvrir la sortie d'erreur standard pour %s\n"
@@ -1495,8 +1495,8 @@ msgstr ""
1495#, fuzzy, c-format 1495#, fuzzy, c-format
1496msgid "HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n" 1496msgid "HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n"
1497msgstr "" 1497msgstr ""
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
3085msgid "Critical threshold for number of usable time sources (\"truechimers\")" 3085msgid "Critical threshold for number of usable time sources (\"truechimers\")"
3086msgstr "" 3086msgstr ""
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
3091msgid "This plugin checks an NTP server independent of any commandline" 3091msgid "This plugin checks an NTP server independent of any commandline"
@@ -3751,12 +3751,12 @@ msgid " %s - database %s (%f sec.)|%s\n"
3751msgstr " %s - base de données %s (%d sec.)|%s\n" 3751msgstr " %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
3755msgid "Critical threshold must be a positive integer" 3755msgid "Critical threshold must be a positive integer"
3756msgstr "Le seuil critique doit être un entier positif" 3756msgstr "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
3760msgid "Warning threshold must be a positive integer" 3760msgid "Warning threshold must be a positive integer"
3761msgstr "Le seuil d'avertissement doit être un entier positif" 3761msgstr "Le seuil d'avertissement doit être un entier positif"
3762 3762
@@ -5774,43 +5774,43 @@ msgstr ""
5774msgid "http://www.networkupstools.org" 5774msgid "http://www.networkupstools.org"
5775msgstr "" 5775msgstr ""
5776 5776
5777#: plugins/check_users.c:91 5777#: plugins/check_users.c:101
5778#, fuzzy, c-format 5778#, fuzzy, c-format
5779msgid "Could not enumerate RD sessions: %d\n" 5779msgid "Could not enumerate RD sessions: %d\n"
5780msgstr "Impossible d'utiliser le protocole version %d\n" 5780msgstr "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
5784msgid "# users=%d" 5784msgid "# users=%d"
5785msgstr "# utilisateurs=%d" 5785msgstr "# utilisateurs=%d"
5786 5786
5787#: plugins/check_users.c:164 5787#: plugins/check_users.c:177
5788msgid "Unable to read output" 5788msgid "Unable to read output"
5789msgstr "Impossible de lire les données en entrée" 5789msgstr "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
5793msgid "USERS %s - %d users currently logged in |%s\n" 5793msgid "USERS %s - %d users currently logged in |%s\n"
5794msgstr "UTILISATEURS %s - %d utilisateurs actuellement connectés sur |%s\n" 5794msgstr "UTILISATEURS %s - %d utilisateurs actuellement connectés sur |%s\n"
5795 5795
5796#: plugins/check_users.c:241 5796#: plugins/check_users.c:254
5797msgid "This plugin checks the number of users currently logged in on the local" 5797msgid "This plugin checks the number of users currently logged in on the local"
5798msgstr "" 5798msgstr ""
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
5803msgid "" 5803msgid ""
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."
5805msgstr "et génère une erreur si le nombre excède le seuil spécifié." 5805msgstr "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
5808msgid "Set WARNING status if more than INTEGER users are logged in" 5808msgid "Set WARNING status if more than INTEGER users are logged in"
5809msgstr "" 5809msgstr ""
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
5814msgid "Set CRITICAL status if more than INTEGER users are logged in" 5814msgid "Set CRITICAL status if more than INTEGER users are logged in"
5815msgstr "" 5815msgstr ""
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 ""
8msgstr "" 8msgstr ""
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
34msgid "Could not parse arguments" 34msgid "Could not parse arguments"
35msgstr "" 35msgstr ""
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
252msgid "Usage:" 252msgid "Usage:"
@@ -870,13 +870,13 @@ msgid "of the <state> argument with optional text"
870msgstr "" 870msgstr ""
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
875msgid "Could not open pipe: %s\n" 875msgid "Could not open pipe: %s\n"
876msgstr "" 876msgstr ""
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
881msgid "Could not open stderr for %s\n" 881msgid "Could not open stderr for %s\n"
882msgstr "" 882msgstr ""
@@ -3592,12 +3592,12 @@ msgid " %s - database %s (%f sec.)|%s\n"
3592msgstr "" 3592msgstr ""
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
3596msgid "Critical threshold must be a positive integer" 3596msgid "Critical threshold must be a positive integer"
3597msgstr "" 3597msgstr ""
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
3601msgid "Warning threshold must be a positive integer" 3601msgid "Warning threshold must be a positive integer"
3602msgstr "" 3602msgstr ""
3603 3603
@@ -5513,39 +5513,39 @@ msgstr ""
5513msgid "http://www.networkupstools.org" 5513msgid "http://www.networkupstools.org"
5514msgstr "" 5514msgstr ""
5515 5515
5516#: plugins/check_users.c:91 5516#: plugins/check_users.c:101
5517#, c-format 5517#, c-format
5518msgid "Could not enumerate RD sessions: %d\n" 5518msgid "Could not enumerate RD sessions: %d\n"
5519msgstr "" 5519msgstr ""
5520 5520
5521#: plugins/check_users.c:146 5521#: plugins/check_users.c:156
5522#, c-format 5522#, c-format
5523msgid "# users=%d" 5523msgid "# users=%d"
5524msgstr "" 5524msgstr ""
5525 5525
5526#: plugins/check_users.c:164 5526#: plugins/check_users.c:177
5527msgid "Unable to read output" 5527msgid "Unable to read output"
5528msgstr "" 5528msgstr ""
5529 5529
5530#: plugins/check_users.c:166 5530#: plugins/check_users.c:179
5531#, c-format 5531#, c-format
5532msgid "USERS %s - %d users currently logged in |%s\n" 5532msgid "USERS %s - %d users currently logged in |%s\n"
5533msgstr "" 5533msgstr ""
5534 5534
5535#: plugins/check_users.c:241 5535#: plugins/check_users.c:254
5536msgid "This plugin checks the number of users currently logged in on the local" 5536msgid "This plugin checks the number of users currently logged in on the local"
5537msgstr "" 5537msgstr ""
5538 5538
5539#: plugins/check_users.c:242 5539#: plugins/check_users.c:255
5540msgid "" 5540msgid ""
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."
5542msgstr "" 5542msgstr ""
5543 5543
5544#: plugins/check_users.c:252 5544#: plugins/check_users.c:265
5545msgid "Set WARNING status if more than INTEGER users are logged in" 5545msgid "Set WARNING status if more than INTEGER users are logged in"
5546msgstr "" 5546msgstr ""
5547 5547
5548#: plugins/check_users.c:254 5548#: plugins/check_users.c:267
5549msgid "Set CRITICAL status if more than INTEGER users are logged in" 5549msgid "Set CRITICAL status if more than INTEGER users are logged in"
5550msgstr "" 5550msgstr ""
5551 5551