blank web page from localhost/pnp4nagios

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
avraham
Posts: 27
Joined: Thu Aug 28, 2014 5:37 pm

blank web page from localhost/pnp4nagios

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: blank web page from localhost/pnp4nagios

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
avraham
Posts: 27
Joined: Thu Aug 28, 2014 5:37 pm

Re: blank web page from localhost/pnp4nagios

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: blank web page from localhost/pnp4nagios

Post by Box293 »

Did you install PNP4Nagios on the 3.5.1 server? Or did you just copy the files there?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
avraham
Posts: 27
Joined: Thu Aug 28, 2014 5:37 pm

Re: blank web page from localhost/pnp4nagios

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: blank web page from localhost/pnp4nagios

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
avraham
Posts: 27
Joined: Thu Aug 28, 2014 5:37 pm

Re: blank web page from localhost/pnp4nagios

Post by avraham »

yes! a fresh (real) install of pnp4nagios solved the problem.
tnx guys,
ams
Locked