Re: [Nagios-devel] accept external commands via HTTP

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] accept external commands via HTTP

Post by Guest »

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.p ... h=%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 [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel



Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked