Collect du information

This commit is contained in:
Girish Ramakrishnan
2019-08-17 03:37:22 -07:00
parent 8195e439f3
commit 0d7a3f43c4
5 changed files with 57 additions and 3 deletions
+1
View File
@@ -21,6 +21,7 @@ def read():
except:
continue
# type comes from https://github.com/collectd/collectd/blob/master/src/types.db
val = collectd.Values(type='df_complex', plugin='df', plugin_instance=instance)
free = st.f_bavail * st.f_frsize # bavail is for non-root user. bfree is total