USB thermometer TEMPer (0c45:7401) instalation (debian wheezy) + zabbix integration



source: https://github.com/padelt/temper-python

apt-get install python-usb python-setuptools git
cd /usr/local/src

git clone https://github.com/padelt/temper-python.git

cd temper-python
python setup.py install

you should end up with two scripts installed:

/usr/local/bin/temper-poll
/usr/local/bin/temper-snmp

 

 USB device permissions:

cp /usr/local/src/temper-python/etc/99-tempsensor.rules /etc/udev/rules.d/

 

Zabbix

/usr/local/bin/zabbix-temper-poll.sh

#!/bin/bash

TEMPER=/usr/local/bin/temper-poll
$TEMPER "-$1"

 

/etc/zabbix/zabbix_agentd.d/userparameter_temper.conf

UserParameter=temper[*],/usr/local/bin/zabbix-temper-poll.sh $1

 

Zabbix Template
with Celsius (key c), Fahrenheit (key f) items + triggers

in attachment

Last update:
2016-10-27 15:22
Author:
Daniel
Revision:
1.7
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.