30 Commits

Author SHA1 Message Date
fc647c4831 increase socket timeout for time consuming plugins 2016-05-08 16:01:58 +04:30
Jeffrey Forman
888b5334bc Merge branch 'zdenekpizl-zpi-multithread' 2014-05-21 20:57:39 -04:00
Jeffrey Forman
8a78456f98 make logging to syslog a flag, as opposed to the default (stderr) 2014-05-21 20:57:02 -04:00
Zdenek Pizl
2e7755740b FEATURE: multithreaded approach to gather metrics from multiple nodes
- preparation for thread model
 - read configuration for munin-node hosts from file
 - construction of configuration for each thread done
- filter list of plugins according to supplied regexp
- optimize way how to get plugins from hosts (do not read it every time)
- thread aware signal handler
- handle signal for list of plugin reload
- syslog logging instead basic one
- extended documentation in README.md
2014-04-12 20:06:34 +02:00
Jeffrey Forman
5ae9b487ed cosmetic space between string substitution and variable name 2014-04-12 07:48:14 -04:00
Jeffrey Forman
32baf91adb Merge branch 'indirect-node' of git://github.com/zdenekpizl/munin-graphite into zdenekpizl-indirect-node 2014-04-12 07:35:54 -04:00
Jeffrey Forman
f40e4642a6 Adding license file 2014-04-02 09:52:33 -04:00
Zdenek Pizl
5e7fe49ff3 FEATURE: add support for remote node configuration
- any munin-node could support remote or indirect fetching of plugin's data
- add support for munin-node:remote-node syntax of host parameter
- add process logic to ask for remote node data
- displayname should be used to correctly identify such metrics
2014-03-29 19:11:44 +01:00
Zdenek Pizl
f05d3b597b Merge pull request #2 from gingerlime/master
updated logger message
2014-02-14 20:17:54 +01:00
Yoav
3c57345a4e performance - reducing carbon footprint :)
* Establishing one carbon connection for all plugins, instead of one connection
  for each. This rather drastically improves performance. From a few measurements
  this reduces processing time by over 50%
* This can be even further enhanced, to keep one persistent carbon (/munin?)
  connection and only re-establish it if it drops (For Future)
2014-02-11 11:09:11 +00:00
Yoav
aec4f100ee better handling of intervals
* reducing the actual processing time from the interval, so it runs
  in more accurate intervals independent of the processing time.
* if processing time takes longer than the interval, we run it instantly
2014-02-11 11:07:27 +00:00
Yoav
9c0cc58ab6 updated logger message
* the error is not specific to multi_plugin, and can happen with normal plugins
* logging the line that caused this error and the plugin name
2014-02-10 13:30:19 +00:00
Zdenek Pizl
cd586be931 - use as displayname only hostname not fqdn which could be passwed from hello_string 2014-02-09 15:35:39 +01:00
Yoav
12e2057505 added update_hostname
* gets the hostname from the the munin connection hello string
* does not override displayname if provided
2014-02-09 15:09:55 +01:00
Zdenek Pizl
25eab12604 - PEP8 cleaning
- add try/catch exception for most frequent cases
 - catch key_value errors
 - catch socket error for carbon connection
 - catch for multiple exception in multigraph
 - catch exception for hello string read
2014-02-09 15:07:17 +01:00
Torsten Rehn
bb7dd53ed0 Merge branch 'refs/heads/oneshot' 2013-12-27 15:02:51 +01:00
Torsten Rehn
fe9aaf4f40 ignore broken plugins that don't return a value at all 2013-12-27 15:02:28 +01:00
Torsten Rehn
3f7932f433 add multigraph support 2013-12-27 14:57:25 +01:00
Torsten Rehn
843d9c8121 only poll once with --interval 0 2013-12-27 14:14:35 +01:00
Jeffrey Forman
ac45705410 be able to specify a displayname for a host other than its actual hostname.
hopefully take care of issue #5
2013-11-24 21:39:35 -05:00
Jeffrey Forman
c599753e87 simplify things a bit. single threaded, handle one host, no config file. 2013-08-22 21:30:39 -04:00
Jeffrey Forman
00b34264b9 Merge pull request #4 from rodo/master
Add option --prefix and --noprefix on targets name
2013-03-28 17:04:14 -07:00
Rodolphe Quiedeville
11cf6fbf3e Remove print debug 2013-03-25 12:10:13 +01:00
Rodolphe Quiedeville
7442c55ca1 Add option --prefix and --noprefix on targets name 2013-03-25 12:03:48 +01:00
Jeffrey Forman
961337c725 initial commit of readme 2013-02-10 08:53:02 -05:00
Jeffrey Forman
3cba33964c some more cleanup around pool management.
TODO: Make pool handling smarter, handle keyboardinterrupt
2013-02-09 16:22:46 -05:00
Jeffrey Forman
669cbe6a57 Add config parser module to make specifying hosts easy 2013-01-09 20:09:29 -05:00
Jeffrey Forman
9ed5a2ad13 multiprocessing support! uses a pool (default size: 1) to query multiple munin nodes at once.
lots of code cleanup: shows elapsed time of query, logging levels.
2013-01-03 22:42:49 -05:00
Jeffrey Forman
5d73640841 new features, new linting. elapsed time, log levels, noop, more intelligent handling of fetch output 2012-12-31 10:04:59 -05:00
Jeffrey Forman
731b81759e Initial commit of the munin2graphite poller, still in heavy development 2012-12-29 22:10:36 -05:00