summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <lorenz.kaestle@netways.de>2023-08-28 15:16:30 +0200
committerLorenz Kästle <lorenz.kaestle@netways.de>2023-08-28 15:16:30 +0200
commit55c0e1738e3397b007ed189f216f8b431da96943 (patch)
treec033f29162569445495e379cc47e9a632d203b8e
parent70d0457562d58c16acd2a3514c9e4cc3f07ec923 (diff)
parentb90b09e1472426993d1c88949a8b30da3f2f900e (diff)
downloadmonitoring-plugins-55c0e17.tar.gz
Merge remote-tracking branch 'upstream/master' into fix/repair_test_pipeline
-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 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
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 ab59eb73..49086b7a 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 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
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 9aff4bed..c343455a 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-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
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: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
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
@@ -5672,26 +5672,26 @@ msgstr ""
5672msgid "http://www.networkupstools.org" 5672msgid "http://www.networkupstools.org"
5673msgstr "" 5673msgstr ""
5674 5674
5675#: plugins/check_users.c:91 5675#: plugins/check_users.c:101
5676#, fuzzy, c-format 5676#, fuzzy, c-format
5677msgid "Could not enumerate RD sessions: %d\n" 5677msgid "Could not enumerate RD sessions: %d\n"
5678msgstr "Konnte·url·nicht·zuweisen\n" 5678msgstr "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
5682msgid "# users=%d" 5682msgid "# users=%d"
5683msgstr "" 5683msgstr ""
5684 5684
5685#: plugins/check_users.c:164 5685#: plugins/check_users.c:177
5686msgid "Unable to read output" 5686msgid "Unable to read output"
5687msgstr "" 5687msgstr ""
5688 5688
5689#: plugins/check_users.c:166 5689#: plugins/check_users.c:179
5690#, c-format 5690#, c-format
5691msgid "USERS %s - %d users currently logged in |%s\n" 5691msgid "USERS %s - %d users currently logged in |%s\n"
5692msgstr "" 5692msgstr ""
5693 5693
5694#: plugins/check_users.c:241 5694#: plugins/check_users.c:254
5695#, fuzzy 5695#, fuzzy
5696msgid "This plugin checks the number of users currently logged in on the local" 5696msgid "This plugin checks the number of users currently logged in on the local"
5697msgstr "" 5697msgstr ""
@@ -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
5704msgid "" 5704msgid ""
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."
5706msgstr "" 5706msgstr ""
5707 5707
5708#: plugins/check_users.c:252 5708#: plugins/check_users.c:265
5709msgid "Set WARNING status if more than INTEGER users are logged in" 5709msgid "Set WARNING status if more than INTEGER users are logged in"
5710msgstr "" 5710msgstr ""
5711 5711
5712#: plugins/check_users.c:254 5712#: plugins/check_users.c:267
5713msgid "Set CRITICAL status if more than INTEGER users are logged in" 5713msgid "Set CRITICAL status if more than INTEGER users are logged in"
5714msgstr "" 5714msgstr ""
5715 5715
diff --git a/po/fr.po b/po/fr.po
index b05a23fb..1244e778 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-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
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: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
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
@@ -5778,43 +5778,43 @@ msgstr ""
5778msgid "http://www.networkupstools.org" 5778msgid "http://www.networkupstools.org"
5779msgstr "" 5779msgstr ""
5780 5780
5781#: plugins/check_users.c:91 5781#: plugins/check_users.c:101
5782#, fuzzy, c-format 5782#, fuzzy, c-format
5783msgid "Could not enumerate RD sessions: %d\n" 5783msgid "Could not enumerate RD sessions: %d\n"
5784msgstr "Impossible d'utiliser le protocole version %d\n" 5784msgstr "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
5788msgid "# users=%d" 5788msgid "# users=%d"
5789msgstr "# utilisateurs=%d" 5789msgstr "# utilisateurs=%d"
5790 5790
5791#: plugins/check_users.c:164 5791#: plugins/check_users.c:177
5792msgid "Unable to read output" 5792msgid "Unable to read output"
5793msgstr "Impossible de lire les données en entrée" 5793msgstr "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
5797msgid "USERS %s - %d users currently logged in |%s\n" 5797msgid "USERS %s - %d users currently logged in |%s\n"
5798msgstr "UTILISATEURS %s - %d utilisateurs actuellement connectés sur |%s\n" 5798msgstr "UTILISATEURS %s - %d utilisateurs actuellement connectés sur |%s\n"
5799 5799
5800#: plugins/check_users.c:241 5800#: plugins/check_users.c:254
5801msgid "This plugin checks the number of users currently logged in on the local" 5801msgid "This plugin checks the number of users currently logged in on the local"
5802msgstr "" 5802msgstr ""
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
5807msgid "" 5807msgid ""
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."
5809msgstr "et génère une erreur si le nombre excède le seuil spécifié." 5809msgstr "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
5812msgid "Set WARNING status if more than INTEGER users are logged in" 5812msgid "Set WARNING status if more than INTEGER users are logged in"
5813msgstr "" 5813msgstr ""
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
5818msgid "Set CRITICAL status if more than INTEGER users are logged in" 5818msgid "Set CRITICAL status if more than INTEGER users are logged in"
5819msgstr "" 5819msgstr ""
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 ""
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-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
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: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
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
@@ -5517,39 +5517,39 @@ msgstr ""
5517msgid "http://www.networkupstools.org" 5517msgid "http://www.networkupstools.org"
5518msgstr "" 5518msgstr ""
5519 5519
5520#: plugins/check_users.c:91 5520#: plugins/check_users.c:101
5521#, c-format 5521#, c-format
5522msgid "Could not enumerate RD sessions: %d\n" 5522msgid "Could not enumerate RD sessions: %d\n"
5523msgstr "" 5523msgstr ""
5524 5524
5525#: plugins/check_users.c:146 5525#: plugins/check_users.c:156
5526#, c-format 5526#, c-format
5527msgid "# users=%d" 5527msgid "# users=%d"
5528msgstr "" 5528msgstr ""
5529 5529
5530#: plugins/check_users.c:164 5530#: plugins/check_users.c:177
5531msgid "Unable to read output" 5531msgid "Unable to read output"
5532msgstr "" 5532msgstr ""
5533 5533
5534#: plugins/check_users.c:166 5534#: plugins/check_users.c:179
5535#, c-format 5535#, c-format
5536msgid "USERS %s - %d users currently logged in |%s\n" 5536msgid "USERS %s - %d users currently logged in |%s\n"
5537msgstr "" 5537msgstr ""
5538 5538
5539#: plugins/check_users.c:241 5539#: plugins/check_users.c:254
5540msgid "This plugin checks the number of users currently logged in on the local" 5540msgid "This plugin checks the number of users currently logged in on the local"
5541msgstr "" 5541msgstr ""
5542 5542
5543#: plugins/check_users.c:242 5543#: plugins/check_users.c:255
5544msgid "" 5544msgid ""
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."
5546msgstr "" 5546msgstr ""
5547 5547
5548#: plugins/check_users.c:252 5548#: plugins/check_users.c:265
5549msgid "Set WARNING status if more than INTEGER users are logged in" 5549msgid "Set WARNING status if more than INTEGER users are logged in"
5550msgstr "" 5550msgstr ""
5551 5551
5552#: plugins/check_users.c:254 5552#: plugins/check_users.c:267
5553msgid "Set CRITICAL status if more than INTEGER users are logged in" 5553msgid "Set CRITICAL status if more than INTEGER users are logged in"
5554msgstr "" 5554msgstr ""
5555 5555