mirror of
https://github.com/in-famous-raccoon/proxmox-snmp.git
synced 2025-07-17 07:36:26 +00:00
added ZFS + Ceph Scripts
This commit is contained in:
@ -9,8 +9,10 @@
|
|||||||
|
|
||||||
### Paste content from sh file to /opt folder and make executable
|
### Paste content from sh file to /opt folder and make executable
|
||||||
`nano /opt/snmp-cpu-temp.sh`<br/>
|
`nano /opt/snmp-cpu-temp.sh`<br/>
|
||||||
`nano /opt/snmp-lvm-used.sh`<br/>
|
|
||||||
`nano /opt/snmp-smart-status.sh`<br/>
|
`nano /opt/snmp-smart-status.sh`<br/>
|
||||||
|
`nano /opt/snmp-lvm-used.sh` for LVM<br/>
|
||||||
|
`nano /opt/snmp-zfs-used.sh` for ZFS<br/>
|
||||||
|
`nano /opt/snmp-ceph-used.sh` for Ceph<br/>
|
||||||
`chmod +x /opt/snmp-*`
|
`chmod +x /opt/snmp-*`
|
||||||
|
|
||||||
### Run snmpd as root, because debian added the user "Debian-snmp" to the snmp.service but for SMART/LVM Status we need to be root.
|
### Run snmpd as root, because debian added the user "Debian-snmp" to the snmp.service but for SMART/LVM Status we need to be root.
|
||||||
|
8
snmp-ceph-used.sh
Normal file
8
snmp-ceph-used.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ "$1" = "-g" ]
|
||||||
|
then
|
||||||
|
echo .1.3.6.1.2.1.25.1.12
|
||||||
|
echo gauge
|
||||||
|
ceph osd df | grep "TOTAL" | awk '{print $14}'
|
||||||
|
fi
|
||||||
|
exit 0
|
8
snmp-zfs-used.sh
Normal file
8
snmp-zfs-used.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ "$1" = "-g" ]
|
||||||
|
then
|
||||||
|
echo .1.3.6.1.2.1.25.1.11
|
||||||
|
echo gauge
|
||||||
|
zpool list rpool | grep "rpool" | awk '{print $3}' | sed 's/[A-Z]//g'
|
||||||
|
fi
|
||||||
|
exit 0
|
Reference in New Issue
Block a user