I am very new to Nagios. I am trying to set it up to monitor some services I am self-hosting.
I have followed the official setup https://support.nagios.com/kb/article/n ... ml#Ubuntul (Ubuntu 22.04).
I can access Nagios at
Code: Select all
http://<publicIP>/nagios
Teleport works by having an agent installed on the same vm/vps that is running Nagios and any traffic coming from teleport looks to the machine/vm to be coming from localhost. From the same VM/VPS that is running nagios, I can run
Code: Select all
curl http://localhost/nagios/
However, Teleport, cannot access localhost/nagios. (localhost) works though and shows the apache default page.
I assume it has something to do with the apache config (I don't know apache at all).
I am hoping someone can point me in the right direction.ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
#AuthName Nagios Access
#AuthType Basic
#AuthUserFile /usr/local/nagios/etc/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 /usr/local/nagios/etc/htpasswd.users
#Require valid-user
</IfVersion>
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/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 /usr/local/nagios/etc/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 /usr/local/nagios/etc/htpasswd.users
#Require valid-user
</IfVersion>
</Directory>
Here is the apache config. It is the default one created from the default install of Nagios, however I have disabled all authentication as that will be handled by teleport.
I have also posted this on the Teleport forums. Thank you very much for any help.