Update 'README.md'
This commit is contained in:
@ -10,10 +10,10 @@ I works like this:<br>
|
|||||||
### Why?
|
### Why?
|
||||||
Originally I configured Zabbix to read the sensor directly, through commands in the userparameter_dht.conf. Though this worked most of the time it had some drawbacks.<br>
|
Originally I configured Zabbix to read the sensor directly, through commands in the userparameter_dht.conf. Though this worked most of the time it had some drawbacks.<br>
|
||||||
First, the timeout for agent checks needed to be raised to 5-6 seconds to work reliably. Supposedly this is not a problem but still... did not feel right. Second and more importantly, sometimes the results were stuck in the qeueue for a long time. When it happened, most of the time it resolved itself after some hours, sometimes a restart of the proxy was necessary. <br>
|
First, the timeout for agent checks needed to be raised to 5-6 seconds to work reliably. Supposedly this is not a problem but still... did not feel right. Second and more importantly, sometimes the results were stuck in the qeueue for a long time. When it happened, most of the time it resolved itself after some hours, sometimes a restart of the proxy was necessary. <br>
|
||||||
I never figured out why and what caused it; but with the setup provided in this repo it does not happen.
|
I never figured out why and what caused it; but with the setup provided in this repo it does not happen. You can also use the same data for something else without additional queries to the sensor.
|
||||||
|
|
||||||
### How?
|
### How?
|
||||||
The instructions are for Raspbian and the assumption that the script will be installed in */opt*
|
The instructions are for Raspbian under the assumption that the script will be installed in */opt*
|
||||||
|
|
||||||
* Install dependencies:<br>
|
* Install dependencies:<br>
|
||||||
>
|
>
|
||||||
@ -57,7 +57,7 @@ Skip this step if you already have it.<br>
|
|||||||
* Restart Zabbix agent to pick up the change:
|
* Restart Zabbix agent to pick up the change:
|
||||||
>sudo service zabbix_agentd restart
|
>sudo service zabbix_agentd restart
|
||||||
|
|
||||||
* Finally, import the template (*templatedht.xml*) into Zabbix and assign it to the host
|
* Finally, import the template (*template_dht.xml*) into Zabbix and assign it to the host
|
||||||
|
|
||||||
After a few minutes you should see data starting to come in.
|
After a few minutes you should see data starting to come in.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user