Package: nagios-statd-server Severity: normal In line 21 /usr/sbin/nagios-statd contains a shell command to determine swap usage:
free | awk '$1~/^Swap:/{print ($3/$2)*100}' When gawk is installed, zero swap size causes an error message and an exit code 2 (which mistakenly marks the host as critical). Zero swap size may occur routinely on virtualized systems such as openvz. (The default awk binary has no division by zero error, but results in "nan".) A working fix is replacing the above command with: free | awk '$1~/^Swap:/{if ($2>0) print ($3/$2)*100; else print \"nan\"}' -- System Information: Debian Release: 5.0.4 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-openvz-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org