Page 1 of 2

no index.html after building 4.1 core on Solaris 10

Posted: Tue Dec 10, 2013 7:51 pm
by t-toph
Hello,

I just built the Nagios 4.1 core on Solaris 10 (sparc). The compile seemed to work and nagios runs OK. I don't see index.html anywhere though. I renamed index.php to index.html and tried that. It seems to sort of almost work in that something that sort of looks like the Nagios core home page loads ,but there's tons of broken links.

For example, on the left pane, under "Current Status", I see:

/tac.cgi" target="">Tactical Overview
/statusmap.cgi?host=all" target="">Map
/status.cgi?hostgroup=all&style=hostdetail" target="">Hosts
/status.cgi?host=all" target="">Services
/status.cgi?hostgroup=all&style=overview" target="">Host Groups
/status.cgi?hostgroup=all&style=summary" target="">Summary
/status.cgi?hostgroup=all&style=grid" target="">Grid
/status.cgi?

(etc....)

Any ideas?

many thanks!

CP
--
Chris Paul
[email protected]
[email protected]

Re: no index.html after building 4.1 core on Solaris 10

Posted: Wed Dec 11, 2013 11:21 am
by slansing
Well, index.php should stay index.php, changing it to a html file will naturally cause some strange anomalies as it is a php file, written primarily in php. As far as the missing index.html you are not able to access the home nagios page correct? http(s)://nagios.core.ip.addr/nagios

Re: no index.html after building 4.1 core on Solaris 10

Posted: Wed Dec 11, 2013 12:07 pm
by t-toph
Well I tried the rename because I found some link where someone did that. I can't say I was necessarily expecting that to work.

If I remove the html, then cd to the build directory and "gmake install install-base install-cgis install-html", it all seems to work (no errors) but it produces no HTML files except the contexthelp html files.

Note the "gmake install-html" seems to remove any previous existing index.html in the path, which may not be what a lot of people may want to happen:

p6paf1w2@dsppaf02 [~/src/nagios-nagioscore]: gmake install-html
cd ./html && gmake install
gmake[1]: Entering directory `/opt/app/p6paf1w2/src/nagios-nagioscore/html'
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/media
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/stylesheets
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/contexthelp
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/docs
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/docs/images
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/js
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/images
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/images/logos
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/includes
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/includes/rss
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/includes/rss/extlib
.././install-sh -c -m 775 -o p6paf1w2 -g p6paf1w2 -d /opt/app/p6paf1w2/gridnag/share/ssi
.././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 robots.txt /opt/app/p6paf1w2/gridnag/share
rm -f /opt/app/p6paf1w2/gridnag/share/index.html
rm -f /opt/app/p6paf1w2/gridnag/share/main.html
rm -f /opt/app/p6paf1w2/gridnag/share/side.html
for file in *.php; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share; done
for file in stylesheets/*.css; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/stylesheets; done
for file in contexthelp/*.html; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/contexthelp; done
for file in js/*.js; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/js; done
for file in images/*.gif; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/images; done
for file in images/*.jpg; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/images; done
for file in images/*.png; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/images; done
for file in images/*.ico; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/images; done
for file in images/logos/*.*; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/images/logos; done
for file in includes/*.*; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/includes; done
for file in includes/rss/*.*; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/includes/rss; done
for file in includes/rss/extlib/*.*; \
do .././install-sh -c -m 664 -o p6paf1w2 -g p6paf1w2 $file /opt/app/p6paf1w2/gridnag/share/includes/rss/extlib; done
gmake[1]: Leaving directory `/opt/app/p6paf1w2/src/nagios-nagioscore/html'
make install-exfoliation
cp -rf contrib/exfoliation/stylesheets/* /opt/app/p6paf1w2/gridnag/share/stylesheets
cp -rf contrib/exfoliation/images/* /opt/app/p6paf1w2/gridnag/share/images

*** Exfoliation theme installed ***

Re: no index.html after building 4.1 core on Solaris 10

Posted: Wed Dec 11, 2013 12:34 pm
by slansing
Also make sure you are building webconf:

Code: Select all

make install-webconf
This may be a bit different for the Solaris install but this is from our installing from source doc:

http://assets.nagios.com/downloads/nagi ... Source.pdf

Re: no index.html after building 4.1 core on Solaris 10

Posted: Wed Dec 11, 2013 1:36 pm
by t-toph
OK I ran "gmake install-webconf". It only seems to install a nagios apache conf.

Still no index.html.

Re: no index.html after building 4.1 core on Solaris 10

Posted: Thu Dec 12, 2013 10:15 am
by abrist
Can you show us a full listing of:

Code: Select all

ls -la /opt/app/p6paf1w2/gridnag/share

Re: no index.html after building 4.1 core on Solaris 10

Posted: Thu Dec 12, 2013 12:45 pm
by t-toph
Note: I'm now trying the same on a nearly identical but newer system, "sandbox". Same results. Here is the listing after running "gmake install && gmake webconf && gmake install-html":

[~]: ls -la /opt/app/sandbox/gridnag/share
total 208
drwxrwxr-x 10 sandbox sandbox 8192 Dec 12 11:40 .
drwxr-xr-x 8 sandbox sandbox 8192 Dec 10 13:55 ..
-rw-rw-r-- 1 sandbox sandbox 608 Dec 12 11:40 config.inc.php
drwxrwxr-x 2 sandbox sandbox 8192 Dec 12 11:41 contexthelp
drwxrwxr-x 3 sandbox sandbox 96 Dec 10 13:53 docs
drwxrwxr-x 3 sandbox sandbox 8192 Dec 12 11:41 images
drwxrwxr-x 3 sandbox sandbox 8192 Dec 12 11:41 includes
-rw-rw-r-- 1 sandbox sandbox 1608 Dec 12 11:40 index.php
drwxrwxr-x 2 sandbox sandbox 96 Dec 12 11:41 js
-rw-rw-r-- 1 sandbox sandbox 5865 Dec 12 11:40 main.php
drwxrwxr-x 2 sandbox sandbox 96 Dec 10 13:53 media
-rw-rw-r-- 1 sandbox sandbox 26 Dec 12 11:40 robots.txt
-rw-rw-r-- 1 sandbox sandbox 941 Dec 12 11:40 rss-corefeed.php
-rw-rw-r-- 1 sandbox sandbox 995 Dec 12 11:40 rss-newsfeed.php
-rw-rw-r-- 1 sandbox sandbox 5756 Dec 12 11:40 side.php
drwxrwxr-x 2 sandbox sandbox 96 Dec 10 13:53 ssi
drwxrwxr-x 2 sandbox sandbox 8192 Dec 12 11:40 stylesheets

Re: no index.html after building 4.1 core on Solaris 10

Posted: Thu Dec 12, 2013 2:53 pm
by abrist
index.html was changed to index.php . . .Have you tried browsing to http://<ip>/nagios/index.php ?

Re: no index.html after building 4.1 core on Solaris 10

Posted: Thu Dec 12, 2013 5:19 pm
by t-toph
OK so Nagios core requires PHP then?

Re: no index.html after building 4.1 core on Solaris 10

Posted: Thu Dec 12, 2013 5:23 pm
by tmcdonald
t-toph wrote:OK so Nagios core requires PHP then?
Very much so, yes. For the web interface, anyway. In theory if you don't really care about the web UI you could probably run Nagios Core headless but I haven't tried it.