1
0
mirror of https://github.com/ranl/monitor-utils.git synced 2024-11-22 23:43:42 +01:00
monitor-utils/zabbix/user_param/fs_discovery.conf
2013-12-02 15:24:24 +02:00

6 lines
373 B
Plaintext

##########################
### / & /mnt Discovery ###
##########################
UserParameter=mount.discovery,echo { \"data\":[ { \"{#MOUNT_NAME}\":\"\\/\", \"{#MOUNT_DEVICE}\":\"$(df / | sed -n '2p' | awk '{print $1}' | sed 's/\//\\\//g')\" }, { \"{#MOUNT_NAME}\":\"\\/mnt\", \"{#MOUNT_DEVICE}\":\"$(df /mnt | sed -n '2p' | awk '{print $1}' | sed 's/\//\\\//g')\" } ] }