Re: [collectd] Collectd Nagios IP Socket
Hi, On Thu, Feb 14, 2013 at 10:05:31PM +, Crowder, Travis wrote: Is there a way for Collectd and Nagios to play together over an IP socket instead of a Unix socket? There's always nrpe, if you want an even simpler solution ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd
Re: [collectd] Collectd Nagios IP Socket
using xinetd, netcat, you can publish a unix socket on TCP. 2013/2/15 Fabien Wernli colle...@faxm0dem.org Hi, On Thu, Feb 14, 2013 at 10:05:31PM +, Crowder, Travis wrote: Is there a way for Collectd and Nagios to play together over an IP socket instead of a Unix socket? There's always nrpe, if you want an even simpler solution ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd -- Linux: Rejoins-nous, nous sommes déjà 11. ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd
Re: [collectd] Collectd Nagios IP Socket
Hi, If your netcat command does not have "-U" option for unixsock there is a little C program who do that : http://projects.debianfr.net/projects/pkg-mklivestatus/browser/trunk/src/unixcat.c?rev=8format=txt Regards, Cyril Feraudet http://perfwatcher.org/ Le 2013-02-15 09:40, Frdric Pg a crit: using xinetd, netcat, you can publish a unix socket on TCP. 2013/2/15 Fabien Wernli colle...@faxm0dem.org Hi, On Thu, Feb 14, 2013 at 10:05:31PM +, Crowder, Travis wrote: Is there a way for Collectd and Nagios to play together over an IP socket instead of a Unix socket? There's always nrpe, if you want an even simpler solution ___ collectd mailing listcollectd@verplant.orghttp://mailman.verplant.org/listinfo/collectd -- Linux: Rejoins-nous, nous sommes dj 11. ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd
Re: [collectd] Collectd Nagios IP Socket
On Friday, February 15, 2013, Crowder, Travis wrote: Is there a way for Collectd and Nagios to play together over an IP socket instead of a Unix socket? Nagios and Collectd live on different boxes in my setup. Thanks! I'm guessing you want your collectd-nagios Nagios checks to execute against a remote collectd? I have tackled this problem in two ways: 1. use socat to expose the unixsock over TCP on the collectd box, then do the reverse on the Nagios box, e.g. collectd-nagios = (socat unixsock to tcp client) = (socat tcp server to collectd unixsock) = collectd unixsock = collectd This works pretty well and is fairly straightforward to set up, but you'll need to hack collectd's init script to reliably kill old socat processes and start up new ones, lest you receive 1,000's of failing collectd-nagios checks when you trigger a race condition. It also starts getting tricky if you start needing to scale your Nagios instances horizontally. 2. Use Visage* to expose the RRDs as JSON over HTTP, and write custom monitoring checks to query this data and alert appropriately. This gives you a lot of flexibility to alert more intelligently (e.g. alert if 60% of the CPU cores have been pegged at 95% for the last 5 minutes), at the cost of having to write your own checks every time you want to monitor something. HTH, Lindsay * I am the primary author of Visage, so take anything I say with a grain of salt -- w: http://holmwood.id.au/~lindsay/ t: @auxesis ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd