Re: [collectd] Modbus segfault

2012-05-15 Thread Fabien Wernli
Hi,

On Fri, May 04, 2012 at 11:23:42AM +0200, colle...@faxm0dem.org wrote:
 Attached patch solves this (to be applied agains stefan's fork).
 Stefan: can you add it to your github, then issue a pull request?

Attachement didn't make it. Here's the fork:
https://github.com/faxm0dem/collectd/tree/faxm0dem/modbus

Cheers,


___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] GenericJMX enhancement

2012-05-15 Thread Jason Stelzer
Following up my own post... :)

Turns out you can get this functionality with the filter chains built
in to collectd. I had no idea.

On Mon, May 14, 2012 at 3:34 PM, Jason Stelzer jason.stel...@gmail.com wrote:
 We are using the GenericJMX plugin to monitor Tomcat.

 This produces directory names like: GenericJMX-http-apr-7084.

 I have a visualization frontend that essentially just walks trees of
 rrd files and generates graphs from them. I could translate names
 there, but I would rather see the filesystem have 'clean' names.

 It might be nice to add a toggle so that you can normalize the names.
 Is there a preferred approach to this? Should the collector plugin be
 responsible for maintaining a mapping to 'actual' and 'cleaned up'
 names? There are other metrics that contain whitespace, brackets,
 quotes and other noise.

 To this end, I modified GenericJMXConfMBean.java and added 2
 configuration properties:

 MaskChars is a regex of characters to mask.
 ReplacementString is a string to replace the masked characters with.

 A sample configuration could look like this:

  Plugin GenericJMX
    # Memory usage by memory pool.
    MBean appname_tomcat/memory_pool
      ObjectName java.lang:type=MemoryPool,*
      InstancePrefix appname_tomcat-memory_pool-
      InstanceFrom name
      MaskChars [ ,\\%\\[\\]\]
      ReplacementString 
      Value
        Type memory
        #InstancePrefix 
        #InstanceFrom 
        Table true
        Attribute Usage
      /Value
    /MBean
 /Plugin


 What this essentially means is the following:

 * When you replace substrings, it's expected you do so in a way that
 is distinct and stable.
 * The stats are sent to the collectd system such that the names are 'clean'.
 * If you do not specify these directives, the system behaves as it did before.

 Would anyone else find this feature convenient? Would you like me to
 submit a patch?
 --
 J.



-- 
J.

___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


[collectd] Smoothing out rate based graphs

2012-05-15 Thread Jesse Reynolds
Hello

I'm using the tail plugin to populate an RRD with the rate of notifications 
sent by a monitoring system. The rate rarely goes above 0.1, which initially 
had me confused before I realised that 0.1 for 10 seconds adds up to 1. 

But what I'd like to graph is a rate per hour, so add up all the pages sent in 
the last hour and log that metric instead of the per second, high resolution 
rate. 

Is there an inbuilt way to do this in collectd? If not, what would people 
recommend? Perhaps ditch the tail plugin and write my own collection script 
using exec plugin? Or write a collection script which looks at the existing per 
second data being captured by the RRDs? Or something else? 

Thank you
Jesse
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd