Restore repo
This commit is contained in:
13
lxc_fs_monitoring/get_fs_status.sh
Executable file
13
lxc_fs_monitoring/get_fs_status.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
case "$2" in
|
||||
available)
|
||||
echo $(/bin/df | /bin/grep "$1"| /usr/bin/awk '{print $4}')
|
||||
;;
|
||||
usage)
|
||||
echo $(/bin/df | /bin/grep "$1"| /usr/bin/awk '{print $3}')
|
||||
;;
|
||||
percent)
|
||||
echo $(/bin/df | /bin/grep "$1"| /usr/bin/awk '{print $5}' | tr -d "%")
|
||||
;;
|
||||
esac
|
3
lxc_fs_monitoring/zabbix_agent_user_parameter
Normal file
3
lxc_fs_monitoring/zabbix_agent_user_parameter
Normal file
@@ -0,0 +1,3 @@
|
||||
UserParameter=lxc.filesystem.usage[*],/usr/local/bin/get_fs_status.sh "$1" usage
|
||||
UserParameter=lxc.filesystem.available[*],/usr/local/bin/get_fs_status.sh "$1" available
|
||||
UserParameter=lxc.filesystem.usage.percent[*],/usr/local/bin/get_fs_status.sh "$1" percent
|
Reference in New Issue
Block a user