Package: munin-node
Version: 1.2.6-10~lenny1
Severity: normal

I've noticed on a few machines that the graph of the cpu plugin is missing
values - it drops to zero from time to time. Looking at the rrd files I see
NaN values probably caused by plugin value going a bit over the defined
maximum (NCPUs * 100).  If needed I can proved examples of both broken
graph and rrd database. Attached patch gives it some breathing space so the
graphs look normal again. 

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages munin-node depends on:
ii  adduser                 3.110            add and remove users and groups
ii  gawk                    1:3.1.5.dfsg-4.1 GNU awk, a pattern scanning and pr
ii  libnet-server-perl      0.97-1           An extensible, general perl server
ii  lsb-base                3.2-20           Linux Standard Base 3.2 init scrip
ii  perl                    5.10.0-19        Larry Wall's Practical Extraction 
ii  procps                  1:3.2.7-11       /proc file system utilities

Versions of packages munin-node recommends:
pn  libnet-snmp-perl              <none>     (no description available)

Versions of packages munin-node suggests:
pn  acpi | lm-sensors      <none>            (no description available)
ii  ethtool                6+20080913-1      display or change Ethernet device 
pn  libdbd-pg-perl         <none>            (no description available)
pn  liblwp-useragent-deter <none>            (no description available)
pn  libnet-irc-perl        <none>            (no description available)
pn  libwww-perl            <none>            (no description available)
pn  munin                  <none>            (no description available)
pn  munin-plugins-extra    <none>            (no description available)
ii  mysql-client-5.0 [mysq 5.0.51a-24+lenny1 MySQL database client binaries
ii  python                 2.5.2-3           An interactive high-level object-o
ii  smartmontools          5.38-2+lenny1     control and monitor storage system

-- no debconf information
--- /usr/share/munin/plugins/cpu        2009-03-13 14:10:06.000000000 +0100
+++ /etc/munin/plugins/cpu      2009-07-03 11:30:42.000000000 +0200
@@ -37,8 +37,8 @@
 if [ "$1" = "config" ]; then
 
        NCPU=$(egrep '^cpu[0-9]+ ' /proc/stat | wc -l)
-       PERCENT=$(($NCPU * 100))
-       MAX=$(($NCPU * 100))
+       PERCENT=$(($NCPU * 100 + 100))
+       MAX=$(($NCPU * 100 + 100))
        if [ "$scaleto100" = "yes" ]; then
                graphlimit=100
        else

Reply via email to