[monitoring-plugins] Fix check_procs -T option (#2235)

GitHub git at monitoring-plugins.org
Thu Feb 19 15:10:13 CET 2026


    Module: monitoring-plugins
    Branch: master
    Commit: a793000948039afa1af9792dd776e2f9cda5b538
    Author: Mathieu Gagné <mgagne at users.noreply.github.com>
 Committer: GitHub <noreply at github.com>
      Date: Thu Feb 19 09:04:28 2026 -0500
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=a7930009

Fix check_procs -T option (#2235)

The "T" argument of check_procs is only a switch, but did expect an argument. This changes fixes that.

---

 plugins/check_procs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index ae6e9c23..50837cb4 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -430,7 +430,7 @@ check_procs_config_wrapper process_arguments(int argc, char **argv) {
 	while (true) {
 		int option = 0;
 		int option_index =
-			getopt_long(argc, argv, "Vvhkt:c:w:p:s:u:C:a:z:r:m:P:T:X:", longopts, &option);
+			getopt_long(argc, argv, "Vvhkt:c:w:p:s:u:C:a:z:r:m:P:TX:", longopts, &option);
 
 		if (option_index == -1 || option_index == EOF) {
 			break;



More information about the Commits mailing list