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
@@@ -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
@@@ -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