PNP4Nagios Install Error

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.
vivification
Posts: 9
Joined: Mon Jan 21, 2019 9:02 pm

PNP4Nagios Install Error

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PNP4Nagios Install Error

Post by scottwilkerson »

did you restart httpd?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vivification
Posts: 9
Joined: Mon Jan 21, 2019 9:02 pm

Re: PNP4Nagios Install Error

Post by vivification »

Yeah I tried restarting a number of different services, but that still didn't change anything.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PNP4Nagios Install Error

Post by scottwilkerson »

What OS and version is this?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vivification
Posts: 9
Joined: Mon Jan 21, 2019 9:02 pm

Re: PNP4Nagios Install Error

Post by vivification »

I'm running CentOS Linux release 7.6.1810 (Core) and I'm running Nagios® Core™ Version 4.4.2
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PNP4Nagios Install Error

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vivification
Posts: 9
Joined: Mon Jan 21, 2019 9:02 pm

Re: PNP4Nagios Install Error

Post 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 ??
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PNP4Nagios Install Error

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vivification
Posts: 9
Joined: Mon Jan 21, 2019 9:02 pm

Re: PNP4Nagios Install Error

Post 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]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PNP4Nagios Install Error

Post by scottwilkerson »

my apologies, I typed it wrong

Code: Select all

cat /etc/httpd/conf.d/pnp4nagios.conf
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked