Code

Merge branch 'collectd-5.5'
authorMarc Fournier <marc.fournier@camptocamp.com>
Fri, 6 Nov 2015 08:42:11 +0000 (09:42 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Fri, 6 Nov 2015 08:42:11 +0000 (09:42 +0100)
1  2 
src/apcups.c
src/collectd.conf.in
src/types.db

diff --cc src/apcups.c
index 718061ae36e693a9125325f3403da98f25be2316,281bf9803bdd6e6a84086b152f14b623961337b7..29d58c3ad6e0a2d1b2038bf6433d078113fe0497
@@@ -162,10 -176,10 +162,10 @@@ static int net_open (char const *node, 
                return (-1);
        }
  
-       DEBUG ("Done opening a socket %i", sd);
+       DEBUG ("apcups plugin: Done opening a socket %i", sd);
  
        return (sd);
 -} /* int net_open (char *host, char *service, int port) */
 +} /* int net_open */
  
  /*
   * Receive a message from the other end. Each message consists of
@@@ -455,10 -480,11 +455,10 @@@ static int apcups_read (void
         */
        if (status != 0)
        {
-               DEBUG ("apc_query_server (%s, %s) = %i",
 -              DEBUG ("apcups plugin: apc_query_server (%s, %i) = %i",
 -                              conf_host == NULL
 -                              ? APCUPS_DEFAULT_HOST
 -                              : conf_host,
 -                              conf_port, status);
++              DEBUG ("apcups plugin: apc_query_server (%s, %s) = %i",
 +                              (conf_node == NULL) ? APCUPS_DEFAULT_NODE : conf_node,
 +                              (conf_service == NULL) ? APCUPS_DEFAULT_SERVICE : conf_service,
 +                              status);
                return (-1);
        }
  
Simple merge
diff --cc src/types.db
index 2fd59e56885f93d934e9c7f1bb8658d293305a95,c605f56d603ce5d680a8f7b7180c27ab6e647f53..5847218aa0fe1cb17a057e98bd596849cc7af4ce
@@@ -14,7 -14,8 +14,8 @@@ cache_eviction                value:DERIVE:0:
  cache_operation               value:DERIVE:0:U
  cache_ratio           value:GAUGE:0:100
  cache_result          value:DERIVE:0:U
 -cache_size            value:GAUGE:0:U
 +cache_size            value:GAUGE:0:1125899906842623
+ capacity      value:GAUGE:0:U
  ceph_bytes            value:GAUGE:U:U
  ceph_latency  value:GAUGE:U:U
  ceph_rate                     value:DERIVE:0:U