new nagios install on manjaro ...

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.
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

new nagios install on manjaro ...

Post 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 :)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: new nagios install on manjaro ...

Post by rkennedy »

Can you provide the steps you used to install Core?

Also - are you running a GUI on manjaro?
Former Nagios Employee
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

Re: new nagios install on manjaro ...

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: new nagios install on manjaro ...

Post by lmiltchev »

Did you make sure that httpd/nginx servce is running? Try to restart it from the CLI, and show the output.
Be sure to check out our Knowledgebase for helpful articles and solutions!
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

Re: new nagios install on manjaro ...

Post 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.
*****
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: new nagios install on manjaro ...

Post 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
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: new nagios install on manjaro ...

Post by rkennedy »

Please remove nginx, and post your apache configuration.
Former Nagios Employee
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

Re: new nagios install on manjaro ...

Post 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)
************************************************************
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: new nagios install on manjaro ...

Post by rkennedy »

Looks good there - can you also post /etc/httpd/conf/extra/nagios.conf?
Former Nagios Employee
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

Re: new nagios install on manjaro ...

Post 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>
Locked