The server certificate warning can be ignored, but I see two big issues here.
1) ifcfg-eth0 is using dhcp, I thought we were using a static address?
Code: Select all
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:0c:29:b3:41:2b
USERCTL=no
IPV6INIT=no
DNS2=10.10.3.10
DNS1=10.10.3.5
PEERDNS=yes
Should probably be:
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:0c:29:b3:41:2b
USERCTL=no
IPV6INIT=no
IPADDR=10.10.3.144 # provided this is the IP you intend to use
NETMASK=255.255.255.0 # provided this is your netmask
GATEWAY=10.10.3.1 # provided this is your gateway
DNS2=10.10.3.10
DNS1=10.10.3.5
PEERDNS=yes
2) Apache's nagios config has the path wrong. You have:
Code: Select all
Alias /nagios "/usr/local/nagios/shere"
<Directory "/usr/local/nagios/shere">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Core"
AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
Require valid-user
</Directory>
It should be:
Code: Select all
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Core"
AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
Require valid-user
</Directory>
Just a change from /usr/local/nagios/shere to /share. This will reference the correct nagios core paths.
As for other issues I see throughout this thread:
Something strange is going on. I set my IP on 'static' on "10.10.3.144" and I can ping that adress form nagios. I'm using vSphere and nagios is working there beside other Virtual Machines. What is strange, while nagios working I can't ping that specific adress from Windows lvl.
You changed your workstation or the nagios systems IP? When booting from DHCP, what is the ip of the nagios system? Can you access either
http://nagiosip/nagios or
http://nagiosip/nagiosxi?
Output of httpd error_log:
Is this all that the log file put out while you attempted to access the web interface? Try again with the access log this time so we can make sure the server is actually getting the requests.
tail -f /var/log/httpd/access_log
[request nagios or nagiosxi web interface]
ctrl+c to cancel the tail, and post the output for us.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.