Package: xymon-client Version: 4.3.17-5 Severity: important Tags: patch Dear Maintainer,
please consider adding support for monitoring remote filesystems by removing "-l" from "df" calls. It's easy to remove those filesystems by settings in "analysis.cfg" if monitoring them isn't desired. A patch that could be applied can be found below. Best regards Thomas Kähn --- xymonclient-linux.sh.orig 2015-01-22 17:37:31.000000000 +0100 +++ xymonclient-linux.sh 2015-02-11 07:59:09.807438635 +0100 @@ -45,22 +45,16 @@ echo "[who]" who echo "[df]" -if test -f /proc/filesystems ; then # Linux - EXCLUDES=`cat /proc/filesystems | grep nodev | egrep -v 'tmpfs|rootfs' | awk '{print $2}' | xargs echo | sed -e 's! ! -x !g'` -else # kfreebsd (or /proc not mounted) - EXCLUDES=`mount | grep -v '^/' | egrep -v 'tmpfs|rootfs' | awk '{print $1}' | xargs echo | sed -e 's! ! -x !g'` -fi -ROOTFS=`readlink -m /dev/root` -# kfreebsd needs an extra grep -v -df -Pl -x iso9660 -x $EXCLUDES | grep -v '^/sys' | sed -e '/^[^ ][^ ]*$/{ +EXCLUDES=`cat /proc/filesystems | grep nodev | grep -v -e tmpfs -e nfs -e cifs -e smb | awk '{print $2}' | xargs echo | sed -e 's! ! -x !g'` +df -P -x iso9660 -x $EXCLUDES | sed -e '/^[^ ][^ ]*$/{ N s/[ ]*\n[ ]*/ / -}' -e "s&^rootfs&${ROOTFS}&" +}' echo "[inode]" -df -Pil -x iso9660 -x $EXCLUDES | sed -e '/^[^ ][^ ]*$/{ +df -Pi -x iso9660 -x $EXCLUDES | sed -e '/^[^ ][^ ]*$/{ N s/[ ]*\n[ ]*/ / -}' -e "s&^rootfs&${ROOTFS}&" +}' echo "[mount]" mount echo "[free]" -- System Information: Debian Release: 8.0 APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages xymon-client depends on: ii adduser 3.113+nmu3 ii debconf [debconf-2.0] 1.5.55 ii libc6 2.19-13 ii libssl1.0.0 1.0.1k-1 ii lsb-base 4.1+Debian13+nmu1 ii procps 2:3.3.9-8 xymon-client recommends no packages. Versions of packages xymon-client suggests: pn xymon-plugins | hobbit-plugins <none> -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org