Hi!
I am trying install nagios-core and nagios-plugins following the tutorial here:
https://support.nagios.com/kb/article/n ... tml#Ubuntu
I am, however using nginx instead of apache2.
I have set everything up to the point where I can successfully visit my nagios homepage. When following the steps to install the plugins, I try to visit /nagios my server is returning a 404 response. Looking at the error logs I am getting the error:
"/usr/local/nagios/share/nagios" failed (2: No such file or directory)
I tried looking in the Makefile of the nagioscore-nagios-4.4.3 and nagios-plugins-release-2.2.1 but I am having trouble finding anything that creates the share/nagios directory.
Is there a specific make command i can use to properly to set up this directory? What step sets this directory up?
Thank you!
Missing /usr/local/nagios/share/nagios directory
-
- Posts: 2
- Joined: Tue Feb 26, 2019 11:43 am
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Missing /usr/local/nagios/share/nagios directory
the directory should be /usr/local/nagios/share
I think you have mis-configured nginx
I think you have mis-configured nginx
-
- Posts: 2
- Joined: Tue Feb 26, 2019 11:43 am
Re: Missing /usr/local/nagios/share/nagios directory
Thank you very much for the reply,
I have root /usr/local/nagios/share in my config, I assumed that the url /nagios corresponded to a subdirectory with its own index.php
Looking in the nagioscore-nagios-4.4.3/sample-config/httpd.conf, I see that the /nagios url is an alias to the root directory. I appreciate your help!
Once I get things working I will share my nginx configuration so hopefully others dont make the same mistake
I have root /usr/local/nagios/share in my config, I assumed that the url /nagios corresponded to a subdirectory with its own index.php
Looking in the nagioscore-nagios-4.4.3/sample-config/httpd.conf, I see that the /nagios url is an alias to the root directory. I appreciate your help!
Once I get things working I will share my nginx configuration so hopefully others dont make the same mistake
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Missing /usr/local/nagios/share/nagios directory
Here is an example of someome usign nginx to serve nagios
https://atlgeek.wordpress.com/2014/05/1 ... 14-04-lts/
https://atlgeek.wordpress.com/2014/05/1 ... 14-04-lts/