accept external commands via HTTP

Ethan Galstad nagios at nagios.org
Wed Aug 11 06:22:01 CEST 2004


Opening up a TCP/IP socket might not be such a hot idea.  I don't 
like the idea of the Nagios daemon being susceptible to DoS problems 
and the like.  Wouldn't it be easier (and only slightly less 
efficient) to write a CGI that takes commands and dumps them to the 
external command file?  I believe there's already an addon or two 
available on the downloads page that does this.


On 9 Aug 2004 at 9:08, Ian Holsman wrote:

> hi.
> I've been hacking on a patch which might be of interest to folks.
> 
> it allows nagios (the process) to accept external commands via HTTP.
> (as well as the named pipe) and to do dump simple status pages out of
> the process itself.
> 
> the code is here:
> http://svn.webperf.org/WebSVN/listing.php?repname=Nagios&path=%2Ftrunk
> %2Fdaemon-2%2F&rev=0&sc=1 the main file is base/webserver.c
> 
> and it requires libhttpd (http://www.hughes.com.au/products/libhttpd/)
>  & libxml2 to work.
> 
> the thought is for nagios to listen to a local port, and have
> commands/requests relayed to it via a normal webserver (which could
> handle SSL, authentication, and caching etc)
> 
> patches/comments are welcome, as you can see by the code.. it is VERY
> raw, but I think it could provide a nice way to get info into & out of
> nagios.
> 
> Regards
> Ian
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes
> on Linux.com, ITManagersJournal and NewsForge in the past few weeks?
> Now, one more big change to announce. We are now OSTG- Open Source
> Technology Group. Come see the changes on the new OSTG site.
> www.ostg.com _______________________________________________
> Nagios-devel mailing list Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285




More information about the Developers mailing list