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
blank web page from localhost/pnp4nagios
Re: blank web page from localhost/pnp4nagios
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_logFormer 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.
"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.
Re: blank web page from localhost/pnp4nagios
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
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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: blank web page from localhost/pnp4nagios
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.
Re: blank web page from localhost/pnp4nagios
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.
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
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/graphNagios-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.
Re: blank web page from localhost/pnp4nagios
yes! a fresh (real) install of pnp4nagios solved the problem.
tnx guys,
ams
tnx guys,
ams