Page 1 of 3

new nagios install on manjaro ...

Posted: Wed Mar 09, 2016 7:14 am
by LithiumKid1976
Hi
I installed nagios core 4.1.1 on manjaro, using the arch linux install info.
but when i try to open the browser using my ipaddres http://x.x.x.x/nagios

i get the following error.
-------------------------------------------------
the following error was encountered:

Connection to x.x.x.x Failed
The system returned:

(61) Connection refused
The remote host or network may be down. Please try the request again.

Your cache administrator is webmaster.
--------------------------------------------
any ideas on what i need to do to get this working? this is my 1st attempt at nagios :)

Re: new nagios install on manjaro ...

Posted: Wed Mar 09, 2016 10:52 am
by rkennedy
Can you provide the steps you used to install Core?

Also - are you running a GUI on manjaro?

Re: new nagios install on manjaro ...

Posted: Thu Mar 10, 2016 4:39 am
by LithiumKid1976
Hi
Thanks for the reply.

i installed is as per the instructions for arch, https://wiki.archlinux.org/index.php/Nagios

this is a GUI installed, but i did the install via CLI.

thanks
D

Re: new nagios install on manjaro ...

Posted: Thu Mar 10, 2016 10:59 am
by lmiltchev
Did you make sure that httpd/nginx servce is running? Try to restart it from the CLI, and show the output.

Re: new nagios install on manjaro ...

Posted: Fri Mar 11, 2016 5:47 am
by LithiumKid1976
Hi
So, it looked like i didnt have nginx installed :oops:
i installed it, restarted httpd, nginx and nagios, and now i get the landing page for nginx, when i go to the hosts ip address.
but get the 404 error, when i go to x.x.x./nagios


****
Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.
*****

Re: new nagios install on manjaro ...

Posted: Fri Mar 11, 2016 8:20 am
by nozlaf
That guide is not very good
I say that because it provides three examples of how to configure your webserver but never tells you that you should not have all three installed.
so you should choose one and configure it
so either remove apache or remove nginx and if you also installed lighthttpd remove that

Re: new nagios install on manjaro ...

Posted: Fri Mar 11, 2016 10:32 am
by rkennedy
Please remove nginx, and post your apache configuration.

Re: new nagios install on manjaro ...

Posted: Mon Mar 14, 2016 6:01 am
by LithiumKid1976
HI
thanks, yes i found the instructions very hard to follow :)
I have removed both lighttpd and nginx, here is the details for the apache config.
---------------------------------------------

# Language settings
Include conf/extra/httpd-languages.conf

# User home directories
Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
Include conf/extra/httpd-default.conf

# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
1. Nagios

Include "conf/extra/nagios.conf"

1. PHP

Include "conf/extra/php5_module.conf"


/etc/httpd//conf/httpd.conf (END)
************************************************************

Re: new nagios install on manjaro ...

Posted: Mon Mar 14, 2016 11:05 am
by rkennedy
Looks good there - can you also post /etc/httpd/conf/extra/nagios.conf?

Re: new nagios install on manjaro ...

Posted: Tue Mar 15, 2016 5:44 am
by LithiumKid1976
Hi PLease see below, info from nagios.conf.
-------------------------------------------
more /etc/httpd//conf/extra/nagios.conf

Alias /nagios "/usr/share/nagios/share"

<Directory "/usr/share/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
<IfVersion >= 2.3>
<lid-user
</IfVersion>
</Directory>

Alias /nagios "/usr/share/nagios/share"

<Directory "/usr/share/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</IfVersion>
</Directory>