Page 1 of 1

blank web page from localhost/pnp4nagios

Posted: Thu Nov 13, 2014 2:13 pm
by avraham
i'm running nagios 3.4.1 and get nice graphs when surfing to localhost/pnp4nagios.
on a different machine in a similar environment, i'm running 3.5.1. i copied the cfg files
which changes where appropriate. localhost/pnp4nagios gives a blank page.
any suggestions which specific cfg file to look at? npcd is running on both machines.
the pnp4nagios log file didn't give help me much.

tnx,
ams

Re: blank web page from localhost/pnp4nagios

Posted: Thu Nov 13, 2014 4:19 pm
by abrist
Can you browse to one of those broken pages and then post a tail of the apache error log in code wraps:

Code: Select all

tail -50 /var/log/httpd/error_log

Re: blank web page from localhost/pnp4nagios

Posted: Sat Nov 15, 2014 6:12 pm
by avraham
the indicated files really don't exist. it's not a permission issue.
the forum didn't let me post what u requested.
complained "too many url's. max. of 10 permited".
here's the last few lines of the output:
/var/log/apache2 $ tail -f !$
tail -f error.log
[Sat Nov 15 16:31:40 2014] [error] [client 127.0.0.1] File does not exist: /usr/local/nagios/share/images/logos/base, referer: http://localhost/nagios/cgi-bin/status.cgi?host=all
[Sat Nov 15 16:31:40 2014] [error] [client 127.0.0.1] File does not exist: /usr/local/nagios/share/images/logos/base, referer: http://localhost/nagios/cgi-bin/status.cgi?host=all
[Sat Nov 15 16:31:48 2014] [error] [client 127.0.0.1] File does not exist: /usr/share/pnp4nagios/html/graph, referer: http://localhost/nagios/cgi-bin/status.cgi?host=all
[Sat Nov 15 16:32:07 2014] [error] [client 127.0.0.1] File does not exist: /usr/share/pnp4nagios/html/graph, referer: http://localhost/nagios/cgi-bin/status.cgi?host=all
[Sat Nov 15 16:33:11 2014] [error] [client 127.0.0.1] File does not exist: /usr/local/nagios/share/images/logos/base, referer: http://localhost/nagios/cgi-bin/status.cgi?host=all

Re: blank web page from localhost/pnp4nagios

Posted: Sun Nov 16, 2014 5:41 am
by Box293
Did you install PNP4Nagios on the 3.5.1 server? Or did you just copy the files there?

Re: blank web page from localhost/pnp4nagios

Posted: Thu Dec 04, 2014 4:01 am
by avraham
i just copied the files. figured that it'll save me the trouble of configuring again.
this is balanced against the risk that i miss a file here or there.

Re: blank web page from localhost/pnp4nagios

Posted: Thu Dec 04, 2014 2:56 pm
by sreinhardt
Provided you install to the same locations, you should be able to bring your config over. Based on your logs, it looks like either a few files or directories are either missing or have incorrect permissions. Try:

Code: Select all

ls -l /usr/local/nagios/share/images/logos/base
ls -l /usr/share/pnp4nagios/html/graph

Re: blank web page from localhost/pnp4nagios

Posted: Thu Dec 18, 2014 7:50 am
by avraham
yes! a fresh (real) install of pnp4nagios solved the problem.
tnx guys,
ams