[mrtg] Scheduling checks via Gearman?

Steve Shipway s.shipway at auckland.ac.nz
Thu Sep 13 03:58:55 CEST 2012


I'm having a go at creating a worker and scheduler utility for mrtg under
gearman.

 

Gearman is a distributed processing server, so you'd run gearmand on your
central server somewhere to manage the queues, the mrtg_gearman_worker on
multiple hosts to handle the queues.

 

On your central MRTG host, you'd run rrdcached, and mrtg_gearman to schedule
all the cfg files via the gearman daemon.  Then, one of the workers would
pick up the job, run MRTG (via cached embedded perl compiler) on it (which
would submit the results via rrdcached), and submit an 'OK' back to the
centre.

 

It might also be possible to wrap custom target checks (IE, things in
backticks) in gearman to run them in a distributed way.

 

I'm basing this on the mod_gearman structure used by Nagios to distribute
the Nagios checks; this is very similar to the way MRTG would work, though
MRTG would be simpler having only one thing to do.

 

Anyone interested in this possibility?  It would make a distributed MRTG
work much more easily than the other methods of manually splitting cfg files
between satellites, and using NFS rather than rrdcached.

 

Steve

 

  _____  

Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 924 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20120913/c399616c/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5900 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20120913/c399616c/attachment-0001.bin 


More information about the mrtg mailing list