[monitoring-plugins] check_ping: Remove HTML Output Leftovers

Alvar Penning git at monitoring-plugins.org
Mon Sep 14 11:00:15 CEST 2026


 Module: monitoring-plugins
 Branch: master
 Commit: 6c2ffd46010c040cfa336303104769e3b8570ce8
 Author: Alvar Penning <post at 0x21.biz>
   Date: Sat Sep 12 16:43:16 2026 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6c2ffd46

check_ping: Remove HTML Output Leftovers

Remove the single last HTML output from check_ping - a single "</A>"
without an opening tag - and drop every mentioning of this feature.
However, the flags are still accepted, but silently discarded.

---

 plugins/check_ping.c          | 11 ++---------
 plugins/check_ping.d/config.h |  2 --
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 02c36f26..2d5fbe1b 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -185,9 +185,6 @@ int main(int argc, char **argv) {
 			printf(_("PING %s - %sPacket loss = %d%%, RTA = %2.2f ms"), state_text(pinged.state),
 				   warn_text, pinged.packet_loss, pinged.round_trip_average);
 		}
-		if (config.display_html) {
-			printf("</A>");
-		}
 
 		/* Print performance data */
 		if (pinged.packet_loss != 100) {
@@ -304,10 +301,8 @@ check_ping_config_wrapper process_arguments(int argc, char **argv) {
 			}
 			break;
 		case 'n': /* no HTML */
-			result.config.display_html = false;
-			break;
 		case 'L': /* show HTML */
-			result.config.display_html = true;
+			/* HTML link related options are deprecated */
 			break;
 		case 'c':
 			get_threshold(optarg, &result.config.crta, &result.config.cpl);
@@ -670,8 +665,6 @@ void print_help(void) {
 	printf(" %s\n", "-p, --packets=INTEGER");
 	printf("    %s ", _("number of ICMP ECHO packets to send"));
 	printf(_("(Default: %d)\n"), DEFAULT_MAX_PACKETS);
-	printf(" %s\n", "-L, --link");
-	printf("    %s\n", _("show HTML in the plugin output (obsoleted by urlize)"));
 
 	printf(UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
 
@@ -684,7 +677,7 @@ void print_help(void) {
 	printf("%s\n",
 		   _("This plugin uses the ping command to probe the specified host for packet loss"));
 	printf("%s\n",
-		   _("(percentage) and round trip average (milliseconds). It can produce HTML output."));
+		   _("(percentage) and round trip average (milliseconds)."));
 
 	printf(UT_SUPPORT);
 }
diff --git a/plugins/check_ping.d/config.h b/plugins/check_ping.d/config.h
index eb2735a7..f4af772a 100644
--- a/plugins/check_ping.d/config.h
+++ b/plugins/check_ping.d/config.h
@@ -14,7 +14,6 @@ enum {
 #define MAX_ADDR_START 1
 
 typedef struct {
-	bool display_html;
 	int max_packets;
 
 	char **addresses;
@@ -28,7 +27,6 @@ typedef struct {
 
 check_ping_config check_ping_config_init() {
 	check_ping_config tmp = {
-		.display_html = false,
 		.max_packets = -1,
 
 		.addresses = NULL,



More information about the Commits mailing list