forked from zabbix/community-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request zabbix#83 from Jaxom99/patch-1
Update app MQTT page
- Loading branch information
Showing
7 changed files
with
33 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>/dev/null</p> | ||
<p>UserParameter=mosquitto[*],/etc/zabbix/scripts/mosquitto \$SYS/broker/$1 2>/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> | ||
|
||
|
@@ -681,4 +679,4 @@ <h2 id="triggers">Triggers</h2> | |
</script> | ||
</body> | ||
|
||
</html> | ||
</html> |