Page 1 of 2

PNP4Nagios Install Error

Posted: Mon Jan 21, 2019 10:30 pm
by vivification
Hi,

I'm trying to install PNP4Nagios and I've followed the article mentioned here;

Everything went well, until I got up to the final stage where you verify it is working.
https://support.nagios.com/kb/article/n ... PNP4Nagios

According to the KB it says to go to your web internface at nagios at http://nagios_server/pnp4nagios/

So i've entered that in, http://192.168.1.26/nagios/pnp4nagios and I get a 404 Not Found Error.

But the standard URL http://192.168.1.26/nagios works fine.

Any idea why?

Re: PNP4Nagios Install Error

Posted: Tue Jan 22, 2019 3:58 pm
by scottwilkerson
did you restart httpd?

Re: PNP4Nagios Install Error

Posted: Tue Jan 22, 2019 5:04 pm
by vivification
Yeah I tried restarting a number of different services, but that still didn't change anything.

Re: PNP4Nagios Install Error

Posted: Tue Jan 22, 2019 5:06 pm
by scottwilkerson
What OS and version is this?

Re: PNP4Nagios Install Error

Posted: Tue Jan 22, 2019 5:15 pm
by vivification
I'm running CentOS Linux release 7.6.1810 (Core) and I'm running NagiosĀ® Coreā„¢ Version 4.4.2

Re: PNP4Nagios Install Error

Posted: Tue Jan 22, 2019 5:35 pm
by scottwilkerson
So you did run make install-webconf correct?

Can you show the output of

Code: Select all

ls -al /etc/httpd/conf.d

Re: PNP4Nagios Install Error

Posted: Tue Jan 22, 2019 5:42 pm
by vivification
Yes I ran all of the instructions as mentioned in the KB article, which included that make-install-webconf

[root@localhost objects]# ls -al /etc/httpd/conf.d
total 32
drwxr-xr-x. 2 root root 4096 Jan 22 13:04 .
drwxr-xr-x. 5 root root 86 Jan 21 10:11 ..
-rw-r--r--. 1 root root 2926 Nov 5 11:47 autoindex.conf
-rw-r--r--. 1 root root 1679 Jan 21 10:49 nagios.conf
-rw-r--r--. 1 root root 691 Oct 31 05:33 php.conf
-rw-r--r-- 1 root root 922 Jan 22 13:04 pnp4nagios.conf
-rw-r--r--. 1 root root 366 Nov 5 11:47 README
-rw-r--r--. 1 root root 1252 Oct 31 01:00 userdir.conf
-rw-r--r--. 1 root root 824 Oct 31 01:00 welcome.conf

Is there a way I can double check that I did in fact ran the make install-webconf ??

Re: PNP4Nagios Install Error

Posted: Tue Jan 22, 2019 5:55 pm
by scottwilkerson
You did, it is what created pnp4nagios.conf

Now the question is why isn't it working. When restarting httpd it should load in that file

Code: Select all

systemctl restart httpd
If it still doesn't work can you show the file

Code: Select all

cat /etc/httpd/conf.dpnp4nagios.conf
Also, does this system use any custom ports or SSL?

Re: PNP4Nagios Install Error

Posted: Tue Jan 22, 2019 6:02 pm
by vivification
Okay that is interesting, it says the file does not exist?

[root@localhost pnp4nagios-0.6.26]# systemctl restart httpd
[root@localhost pnp4nagios-0.6.26]# cat /etc/httpd/conf.dpnp4nagios.conf
cat: /etc/httpd/conf.dpnp4nagios.conf: No such file or directory
[root@localhost pnp4nagios-0.6.26]#

I can confirm httpd is a valid directory.

[root@localhost pnp4nagios-0.6.26]# cd /etc/httpd
[root@localhost httpd]# ls
conf conf.d conf.modules.d logs modules run
[root@localhost httpd]#

Re: PNP4Nagios Install Error

Posted: Wed Jan 23, 2019 7:41 am
by scottwilkerson
my apologies, I typed it wrong

Code: Select all

cat /etc/httpd/conf.d/pnp4nagios.conf