mirror of
https://github.com/in-famous-raccoon/proxmox-snmp.git
synced 2025-07-17 07:36:26 +00:00
Create snmp-lvm-used.sh
This commit is contained in:
committed by
GitHub
parent
4117297c58
commit
b36d3d632f
8
snmp-lvm-used.sh
Normal file
8
snmp-lvm-used.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ "$1" = "-g" ]
|
||||||
|
then
|
||||||
|
echo .1.3.6.1.2.1.25.1.9
|
||||||
|
echo gauge
|
||||||
|
lvdisplay -m /dev/pve/data | grep "Allocated pool data" | awk '{print $4}' | sed 's/[.].*$//'
|
||||||
|
fi
|
||||||
|
exit 0
|
Reference in New Issue
Block a user