mirror of
https://github.com/ranl/monitor-utils.git
synced 2024-11-25 08:53:41 +01:00
6 lines
373 B
Plaintext
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')\" } ] }
|
|
|