jqrun
(jqrung)
March 16, 2020, 3:23am
1
please give pointers
How to exclude non-disk options
df -h now looks like this
udev 3,9G 0 3,9G 0% /dev
tmpfs 785M 1,6M 784M 1% /run
/dev/sda2 117G 29G 82G 26% /
tmpfs 3,9G 0 3,9G 0% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
/dev/loop3 15M 15M 0 100% /snap/gnome-characters/399
/dev/loop0 141M 141M 0 100% /snap/gnome-3-26-1604/98
/dev/loop2 15M 15M 0 100% /snap/gnome-logs/37
I just need to monitor /dev/sda2
how too configure check_disk,thank you
rsx
(Roland Sommer)
March 16, 2020, 7:21am
2
add
vars.disk_partitions = [ “/” ]
to your service definition should be enough.
2 Likes
jqrun
(jqrung)
March 16, 2020, 2:01pm
3
thank you
Because now it’s alerting /dev/loop* tmpfs disk is full
if i set vars.disk_partitions = [ “/” ]
icinga can skip check /dev/loop* tmpfs
and if i have another disk ,it’s name is /dev/sdb1
is it write like this vars.disk_partitions = [ “/”,"/dev/sdb1" ] ?
It will take either the mountpoint or the device as an argument. /dev/sdb1 and /dev/sdb2 are fine if you’re not using luks, lvm or something else that obfuscates this to the check.
I’d recommend just including whatever /dev/sdb1 is mounted to as the argument (e.g. /home, /boot, etc.)
jqrun
(jqrung)
March 18, 2020, 10:31am
5
thank you
i test it tomorrow