<div dir="ltr">Hi, <div style>I'm creating something in github.</div><div style>My approach was to :</div><div style>* add discovery features in collectd.py</div><div style>* add a formula feature in collectd.py. like the one mentionned in the '"output formatting" of the page you've just sent.</div>
<div style><br></div><div style>And given these 2 features, writting plugins is it very easy.</div><div style>Threshold are managed by the monitoring tool (nagios/icinga/shinken/centreon). Collected statistics are managed by Collectd.</div>
<div style>To be honest, I don't like the idea of the monitoring (threshold, alerts, ....) being configured in Collectd.</div><div style><br></div><div style>An improvement can be made by adding a "GET SEVERAL VALUES" function in python. This func would return a list of values, given a list of items.</div>
<div style>It would reduce the number of request made to the unixsocket.</div><div style><br></div><div style>Fred.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/20 Sebastian Harl <span dir="ltr"><<a href="mailto:sh@tokkee.org" target="_blank">sh@tokkee.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class="im"><br>
On Wed, Feb 20, 2013 at 02:56:30PM +0100, Frédéric Pégé wrote:<br>
> For those who're interested, I've developped a few plugins for<br>
> Nagios/Centreon/Icinga/Shinken to check a few things from Collectd<br>
> Load / Mem / Swap / NIC / Spase / Disk IO<br>
><br>
> The advantage of that is to connect only to one server : the collectd<br>
> central node.<br>
><br>
> They are written in python using the CollectD module shipped in "contrib"<br>
> (I've added a few funcs), and nagaconda.<br>
<br>
</div>How about submitting the new functions to collectd? Either send a patch<br>
to this list or (preferred) open a pull request on Github.<br>
<div class="im"><br>
> I've also written a few files for shinken packs, and a discovery scripts.<br>
> It connects to the unixsocket and gets the hosts lists, and each of them<br>
> the nic list, disk list, mount-point list, ...<br>
><br>
> Anyone interested ?<br>
> Where I can put that stuff ?<br>
<br>
</div>Sounds interesting. I'd go for creating a new project for that on some<br>
project / code hosting site or making the code available through your<br>
website (if available).<br>
<br>
Also, I think it would make sense to add some notes about this to<br>
<<a href="https://collectd.org/wiki/index.php/Collectd-nagios" target="_blank">https://collectd.org/wiki/index.php/Collectd-nagios</a>> in a new section<br>
(e.g. "Alternate approaches").<br>
<br>
As a side-note: I've already had the idea of doing something similar<br>
using Lua. The advantage of Lua would be that writing new code should<br>
still be fairly easy for everybody but it could also fairly easy be<br>
embedded into C programs. E.g. the mod-gearman worker comes to my mind<br>
:-)<br>
<br>
Cheers,<br>
Sebastian<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ <a href="http://tokkee.org/" target="_blank">http://tokkee.org/</a><br>
<br>
Those who would give up Essential Liberty to purchase a little Temporary<br>
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin<br>
<br>
</font></span><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
<br>
iEYEARECAAYFAlEk4bwACgkQEFEKc4UBx/yTOACdGvsgYApC0BaQ6A4rhYAbYhpd<br>
4zkAoIaWd/eOvlg7hz4XnsBHe9iccGSm<br>
=BrSc<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div style="text-align:right"><div style="text-align:left"><span style="color:rgb(28,42,71);font-family:'lucida grande',tahoma,verdana,arial,sans-serif;font-weight:bold;line-height:25px;background-color:rgb(255,255,255)">Linux: Rejoins-nous, nous sommes déjà 11.</span></div>
</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div style="text-align:right"><div style="text-align:right"><img src="https://lh4.googleusercontent.com/_0mv8B38_ss0/TcJyuinXfgI/AAAAAAAAA5I/VRx_p_l3at0/s144/Signature-perso.png" width="200" height="200"></div>
</div></blockquote>
</div>