This script is executed every minute on my NAS via the task scheduler. Requests data from BioWin2 and sends it to graphite, a time-series database. This data is then visualized with Grafana.
-
Fill in your Host IPs, passwords and ports for your host machines in the three python files. Also you must change the paths for the debug files.
-
Replace the file
EbenenTexte_de.xml
andVarIdentTexte_de.xml
with your own. You find them under http://<WINDHAGER_IP>/res/xml/. -
To get all OIDS and convert them to a usable graphite metric path, you have to execute the script
get_all_metrics.py
once. This creates/updates the fileoids_metrics.txt
, which will be read from the main script. -
Execute the main script windhager.py
Optional script for only requesting specific datapoints (more reliable):
-
Fill in the specific datapoints you want to request in
oids_metrics_custom.txt
-
Execute the script windhager_specific.py
Here I also use Loki to get my logs into Grafana.