1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

3 Commits

Author SHA1 Message Date
d49fe954df Add divide by zero check (#191)
On several servers (Ubuntu 18.04) DEMAND_DATA_TOTAL is 0 currently and is causing an error

Traceback (most recent call last):
  File "/usr/local/bin/zfs-linux", line 178, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/bin/zfs-linux", line 76, in main
    DATA_DEMAND_PERCENT = DEMAND_DATA_HITS / DEMAND_DATA_TOTAL * 100
ZeroDivisionError: division by zero
2018-10-23 11:46:54 -05:00
28a2f8ae55 Update zfs-linux to use env for python 2018-10-15 21:00:16 +01:00
a56adb467a add zfs support for linux (#170)
* add zfs support for linux

* fix pools and anon_hits_per

* strip percent sign for pool cap

* fix anon_hits json key typo

* fix demand_data_hits json key typo

* fix comparison as in #169

* fix min_size_percent
2018-04-11 09:39:32 +01:00