> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of John Oliver > Sent: Thursday, April 03, 2008 12:28 PM > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] daemonchk.cgi > > On Thu, Apr 03, 2008 at 12:13:38PM -0500, Marc Powell wrote: > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:nagios-users- > > > [EMAIL PROTECTED] On Behalf Of John Oliver > > > Sent: Thursday, April 03, 2008 12:10 PM > > > To: nagios-users@lists.sourceforge.net > > > Subject: [Nagios-users] daemonchk.cgi > > > > > > I'm using nagios-2.9 installed from the Dag RPM. Whomever built that > > > RPM neglected to include daemonchk.cgi :-( So the init script doesn't > > > work. I grabbed the 2.11 source and did ./configure, make all but > > > daemonchk.cgi is not built. > > > > > > Is there anywhere I can just download a compiled daemonchk.cgi to use? > > > > Google is a great resource -- > > > > http://www.google.com/search?q=daemonchk.cgi > > Been there, done that. Returns dozens of references to daemonchk.cgi, > including the FAQ that tells me that it's supposed to be in contrib/ It
Thanks for including that in the original e-mail. > isn't... daemonchk.c is, but will not compile. It's full of references > to libraries and headers in the wrong place, and finally a variable > getcgivars which does not exist. > > So... if anyone can either point me to a compiled daemonchk.cgi, or tell > me the secret to getting daemonchk.c to compile, I'd appreciate it. Edit daemoncheck.c to change -- #include "../common/config.h" #include "../common/common.h" #include "../common/locations.h" #include "../cgi/cgiutils.h" #include "../cgi/getcgi.h" ... to #include "../include/config.h" #include "../include/common.h" #include "../include/locations.h" #include "../include/cgiutils.h" #include "../include/getcgi.h" ... then cd ~nagios-src && ./configure --params-here && make cgis && cd contrib && gcc -o daemonchk.cgi daemonchk.c ../cgi/getcgi.o $ ./daemonchk.cgi NAGIOS CRITICAL - could not find status log: /usr/local/nagios/var/status.dat Note that the Makefile has this comment so YMMV. The implication is that Dag may be using a 'special' version. I'd give it a try anyway though -- daemonchk.cgi: @echo "This doesn't work with Nagios 2.x yet..." Another alternative is to contact your package provider and ask them not to modify the init scripts to require non-standard and non-supported programs, especially if they're not including them. daemoncheck.cgi is not used by the standard init scripts, or anything else related to the distribution. I'm a bit surprised that Dag is doing that. -- Marc ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null