From 9a96add49c5af1317e9a0a216ce8cdd056dae136 Mon Sep 17 00:00:00 2001 From: Jaxom99 <30865395+Jaxom99@users.noreply.github.com> Date: Thu, 28 Apr 2022 16:35:30 +0200 Subject: [PATCH 1/7] Update app MQTT page 1 error in the code (escaping the $SYS topic) and some style changes for better understanding. --- .../index.html | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/docs/templates/applications-template-mqtt-mosquitto-broker-monitoring/index.html b/docs/templates/applications-template-mqtt-mosquitto-broker-monitoring/index.html index 2e9ca8d42..0ffe1434e 100644 --- a/docs/templates/applications-template-mqtt-mosquitto-broker-monitoring/index.html +++ b/docs/templates/applications-template-mqtt-mosquitto-broker-monitoring/index.html @@ -86,37 +86,35 @@
A very simple template+script for monitoring mosquitto.
-CONFIG
+/etc/zabbix/zabbix-agent.d/userparams_mosquitto.conf
+On your system, create this first file : /etc/zabbix/zabbix-agent.d/userparams_mosquitto.conf
-======================= CUT HERE ================================
+======================= File BEGIN ================================
-#
#
-#
#
#
-UserParameter=mosquitto[*],/etc/zabbix/scripts/mosquitto $SYS/broker/$1 2>/dev/null
+UserParameter=mosquitto[*],/etc/zabbix/scripts/mosquitto \$SYS/broker/$1 2>/dev/null
-======================= CUT HERE ================================
+======================= File END ================================
-SCRIPT
+/etc/zabbix/scripts/mosquitto
+and this second file /etc/zabbix/scripts/mosquitto
-======================= CUT HERE ================================
+======================= File BEGIN ================================
#!/bin/bash
mosquitto_sub -C 1 -u USERNAME -P PASSWORD -t “$1”
-======================= CUT HERE ================================
+======================= File END ================================