[collectd] erratum

Dan Thomson dan at astutehosting.com
Fri Sep 7 04:00:11 CEST 2012


Hey all,

I noticed a small error in snmp.c in collectd-5.1.0 (might be 
elsewhere). The warning message in csnmp_config_add_data_shift says 
"Scale config option" instead of "Shift" config option:

diff -Nur collectd-5.1.0.orig//src/snmp.c collectd-5.1.0/src/snmp.c
--- collectd-5.1.0.orig//src/snmp.c     2012-04-02 01:04:58.000000000 -0700
+++ collectd-5.1.0/src/snmp.c   2012-09-06 18:57:57.799555716 -0700
@@ -301,7 +301,7 @@
    if ((ci->values_num != 1)
        || (ci->values[0].type != OCONFIG_TYPE_NUMBER))
    {
-    WARNING ("snmp plugin: The `Scale' config option needs exactly one 
number argument.");
+    WARNING ("snmp plugin: The `Shift' config option needs exactly one 
number argument.");
      return (-1);
    }


-- 
Dan Thomson<dan at astutehosting.com>
Sr. Systems Engineer
Astute Hosting




More information about the collectd mailing list