PNP4Nagios Install Error
-
- Posts: 9
- Joined: Mon Jan 21, 2019 9:02 pm
PNP4Nagios Install Error
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?
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?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PNP4Nagios Install Error
did you restart httpd?
-
- Posts: 9
- Joined: Mon Jan 21, 2019 9:02 pm
Re: PNP4Nagios Install Error
Yeah I tried restarting a number of different services, but that still didn't change anything.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PNP4Nagios Install Error
What OS and version is this?
-
- Posts: 9
- Joined: Mon Jan 21, 2019 9:02 pm
Re: PNP4Nagios Install Error
I'm running CentOS Linux release 7.6.1810 (Core) and I'm running Nagios® Core™ Version 4.4.2
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PNP4Nagios Install Error
So you did run make install-webconf correct?
Can you show the output of
Can you show the output of
Code: Select all
ls -al /etc/httpd/conf.d
-
- Posts: 9
- Joined: Mon Jan 21, 2019 9:02 pm
Re: PNP4Nagios Install Error
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 ??
[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 ??
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PNP4Nagios Install Error
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
If it still doesn't work can you show the file
Also, does this system use any custom ports or SSL?
Now the question is why isn't it working. When restarting httpd it should load in that file
Code: Select all
systemctl restart httpd
Code: Select all
cat /etc/httpd/conf.dpnp4nagios.conf
-
- Posts: 9
- Joined: Mon Jan 21, 2019 9:02 pm
Re: PNP4Nagios Install Error
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]#
[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]#
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PNP4Nagios Install Error
my apologies, I typed it wrong
Code: Select all
cat /etc/httpd/conf.d/pnp4nagios.conf