Hi,
I want to monitoring local FS (df -P -hl -t) on Linux (not all FS from /proc/mounts) except some types (devtmpfs|fuse|fuse|glusterfs|iso9660|nfs) with diff trigger for some of them, for example :
% cat /proc/mounts
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=951816k,nr_inodes=237954,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/mapper/VolGroup-lv_root / ext4 rw,relatime,barrier=1,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda1 /boot ext4 rw,relatime,barrier=1,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
% df -P -hl
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root 6.5G 3.1G 3.1G 51% /
tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 485M 73M 388M 16% /boot
I want to monitoring only / , /boot and config trigger alerts :
for / - 70%, for /boot - 95%
tried to use "Mounted filesystem discovery" but it monitoring according /proc/mounts and send a lot unneeded alerts and also can't create diff trigger per FSNAME and also exclude FSTYPE
another option to create script and using "User parameters" but if output of scripts is <FSNAME>:<FSTYPE>:<FS USE%> , how to forward value of <FSNAME>:<FSTYPE>:<FS USE%> to item and trigger ?
Thanks !
I want to monitoring local FS (df -P -hl -t) on Linux (not all FS from /proc/mounts) except some types (devtmpfs|fuse|fuse|glusterfs|iso9660|nfs) with diff trigger for some of them, for example :
% cat /proc/mounts
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=951816k,nr_inodes=237954,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/mapper/VolGroup-lv_root / ext4 rw,relatime,barrier=1,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda1 /boot ext4 rw,relatime,barrier=1,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
% df -P -hl
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root 6.5G 3.1G 3.1G 51% /
tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 485M 73M 388M 16% /boot
I want to monitoring only / , /boot and config trigger alerts :
for / - 70%, for /boot - 95%
tried to use "Mounted filesystem discovery" but it monitoring according /proc/mounts and send a lot unneeded alerts and also can't create diff trigger per FSNAME and also exclude FSTYPE
another option to create script and using "User parameters" but if output of scripts is <FSNAME>:<FSTYPE>:<FS USE%> , how to forward value of <FSNAME>:<FSTYPE>:<FS USE%> to item and trigger ?
Thanks !