Skip to content

Commit

Permalink
Update app MQTT page
Browse files Browse the repository at this point in the history
1 error in the code (escaping the $SYS topic) and some style changes for better understanding.
  • Loading branch information
Jaxom99 authored Apr 28, 2022
1 parent 2802d82 commit 9a96add
Showing 1 changed file with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,37 +86,35 @@ <h2 id="overview">Overview</h2>

<p>A very simple template+script for monitoring mosquitto.</p>

<p>CONFIG</p>
<h2>CONFIG</h2>

<p>/etc/zabbix/zabbix-agent.d/userparams_mosquitto.conf</p>
<p>On your system, create this first file : /etc/zabbix/zabbix-agent.d/userparams_mosquitto.conf</p>

<p>======================= CUT HERE ================================</p>
<p>======================= File BEGIN ================================</p>

<h1 id="mosquitto-monitoring">Mosquitto monitoring</h1>
<p>#</p> <h1 id="mosquitto-monitoring">Mosquitto monitoring</h1>

<p>#</p>

<h1 id="this-content-is-licensed-gnu-gpl-v2">This content is licensed GNU GPL v2</h1>
<p>#</p><h1 id="this-content-is-licensed-gnu-gpl-v2">This content is licensed GNU GPL v2</h1>

<h1 id="author-guido-rizzi-guidorizzistudiorizzinet">Author: Guido Rizzi (<a href="mailto:[email protected]">[email protected]</a>)</h1>
<p>#</p><h1 id="author-guido-rizzi-guidorizzistudiorizzinet">Author: Guido Rizzi (<a href="mailto:[email protected]">[email protected]</a>)</h1>

<p>#</p>

<p>UserParameter=mosquitto[*],/etc/zabbix/scripts/mosquitto $SYS/broker/$1 2&gt;/dev/null</p>
<p>UserParameter=mosquitto[*],/etc/zabbix/scripts/mosquitto \$SYS/broker/$1 2&gt;/dev/null</p>

<p>======================= CUT HERE ================================</p>
<p>======================= File END ================================</p>

<p>SCRIPT</p>
<h2>SCRIPT</h2>

<p>/etc/zabbix/scripts/mosquitto</p>
<p>and this second file /etc/zabbix/scripts/mosquitto</p>

<p>======================= CUT HERE ================================</p>
<p>======================= File BEGIN ================================</p>

<p>#!/bin/bash</p>

<p>mosquitto_sub -C 1 -u USERNAME -P PASSWORD -t “$1”</p>

<p>======================= CUT HERE ================================</p>
<p>======================= File END ================================</p>

<h2 id="macros-used">Macros used</h2>

Expand Down Expand Up @@ -681,4 +679,4 @@ <h2 id="triggers">Triggers</h2>
</script>
</body>

</html>
</html>

0 comments on commit 9a96add

Please sign in to comment.