I'm likely doing something face-palm stupid here, but I'm pretty familiar with the compilation process...yet am stumped where I'm going wrong.
nagios-4.0.8. Just pulled down the latest source of this version. I need to build from source and have been building Nagios from source since back in the 1.x days, so have definitely done this many many many times before.
I'm using the following configure string:
=====
Code: Select all
./configure --enable-event-broker --localstatedir=/var/demo.foo.com --sysconfdir=/etc/demo.foo.com --infodir=/var/www/localhost/demo.foo.com/info --mandir=/var/www/localhost/demo.foo.com/man --prefix=/var/www/localhost/demo.foo.com --with-nagios-user=demo.foo.com --with-nagios-grp=apache --with-command-user=demo.foo.com --with-command-grp=apache --datarootdir=/var/www/localhost/demo.foo.com/share --with-htmurl= --with-cgiurl=/cgi-binEverything compiles and installs just fine.
The trouble I'm having is that the CGIs are for some reason looking in their local dir (sbin) for the images and CSS files that control their page output/display as opposed to looking in the share/images and share/stylesheets dir as they should.
ex>
=====[ Apache logs of problem
Code: Select all
[Fri Mar 20 12:11:15.577821 2015] [cgi:error] [pid 2746] [client x.x.x.x:52356] script not found or unable to stat: /var/www/localhost/demo.foo.com/sbin/status.css, referer: http://demo.foo.com/cgi-bin/status.cgi?host=all
[Fri Mar 20 12:11:15.577821 2015] [cgi:error] [pid 32020] [client x.x.x.x:52354] script not found or unable to stat: /var/www/localhost/demo.foo.com/sbin/common.css, referer: http://demo.foo.com/cgi-bin/status.cgi?host=all
[Fri Mar 20 12:11:15.578049 2015] [cgi:error] [pid 9474] [client x.x.x.x:52357] script not found or unable to stat: /var/www/localhost/demo.foo.com/sbin/jquery-1.7.1.min.js, referer: http://demo.foo.com/cgi-bin/status.cgi?host=all
[Fri Mar 20 12:11:15.651873 2015] [cgi:error] [pid 32020] [client x.x.x.x:52354] script not found or unable to stat: /var/www/localhost/demo.foo.com/sbin/contexthelp1.gif, referer: http://demo.foo.com/cgi-bin/status.cgi?host=all
[Fri Mar 20 12:11:15.651870 2015] [cgi:error] [pid 9474] [client x.x.x.x:52357] script not found or unable to stat: /var/www/localhost/demo.foo.com/sbin/up.gif, referer: http://demo.foo.com/cgi-bin/status.cgi?host=all
[Fri Mar 20 12:11:15.658766 2015] [cgi:error] [pid 2746] [client x.x.x.x:52356] script not found or unable to stat: /var/www/localhost/demo.foo.com/sbin/down.gif, referer: http://demo.foo.com/cgi-bin/status.cgi?host=all
[Fri Mar 20 12:11:15.665647 2015] [cgi:error] [pid 9474] [client x.x.x.x:52357] script not found or unable to stat: /var/www/localhost/demo.foo.com/sbin/ndisabled.gif, referer: http://demo.foo.com/cgi-bin/status.cgi?host=allThis causes the output of all the CGIs to be garbled and missing content since none of the layout or imagery renders.
Has anyone run across this? And if so, can you please smack me upside the head with the clue bat? I'm not seeing where I'm missing what's going on.
