Page 3 of 4

Re: Nagios web interface is running only on some computers

Posted: Fri Aug 11, 2017 2:07 pm
by bolson
Can you please post the IP addresses of the machines that can connect and the IP addresses of the hosts that cannot.

Thank you!

Re: Nagios web interface is running only on some computers

Posted: Fri Aug 11, 2017 2:11 pm
by bolson
Also, run the following commands on your Nagios server:

Code: Select all

cat /etc/hosts.deny
cat /etc/hosts.allow

Re: Nagios web interface is running only on some computers

Posted: Fri Aug 11, 2017 3:20 pm
by h4doukeeN
bolson wrote:Also, run the following commands on your Nagios server:

Code: Select all

cat /etc/hosts.deny
cat /etc/hosts.allow
[Root @ localhost etc] # cat /etc/host.deny
Cat: /etc/host.deny: Directory file does not exist
[Root @ localhost etc] # cat /etc/host.allow
Cat: /etc/host.allow: The directory file does not exist

__

192.168.2.189
In this ip user "jtapia" can see nagios only by google chrome in this same ip my user amorales can not see nagios

192.168.2.239
Ip of the nagios server can be seen without problems in any browser

192.168.2.188
My windows ip can not see for windows 7, if i can in virtual machine with linux

192.168.1.XXX

I do not handle the ip in commune of "the counts", but there they can see nagios without problems

192.168.3.162 & 3.163

They can not be seen on windows

Re: Nagios web interface is running only on some computers

Posted: Fri Aug 11, 2017 3:56 pm
by h4doukeeN
When entering by folders and not by console I see the files, but they do not have anything only text commenting for what the file serves

#
# hosts.deny This file contains access rules which are used to
# deny connections to network services that either use
# the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# The rules in this file can also be set up in
# /etc/hosts.allow with a 'deny' option instead.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#

__

#
# hosts.allow This file contains access rules which are used to
# allow or deny connections to network services that
# either use the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#

Re: Nagios web interface is running only on some computers

Posted: Mon Aug 14, 2017 11:25 am
by bolson
In order to further troubleshoot your issue, from your user account, on a host/browser which is unable to access the Core Admin GUI:

Attempt to log in to the Core GUI every 15 minutes, clearing your cache in between each attempt.

Let me know if any of these attempts are successful.

Thank you!

Re: Nagios web interface is running only on some computers

Posted: Fri Aug 18, 2017 7:50 am
by h4doukeeN
bolson wrote:In order to further troubleshoot your issue, from your user account, on a host/browser which is unable to access the Core Admin GUI:

Attempt to log in to the Core GUI every 15 minutes, clearing your cache in between each attempt.

Let me know if any of these attempts are successful.

Thank you!

Friends and I realized that it generates the conflict, the configurations of hosts and services I have them in the route /etc/nagios/conf.dy to leave them there and then to restart nagios the problem begins in some computers, but when loading the configurations In the path / etc / nagios / objects I can see in all the computers without problems I do not know to what is due, but solution for me will be the previously commented.

Thank you very much for the help and the time given to see my case..

Re: Nagios web interface is running only on some computers

Posted: Fri Aug 18, 2017 8:37 am
by h4doukeeN
If I load a file of my own and I give the path in nagios.cfg I still have the same problem I can not visualize on all the hosts, any idea of ​​why that happens to me, I thought I had already found the problem :(, Templates that come in objects and there add the machines for example in /etc/nagios/objects/windows.cfg nagios I can see it on any host

Re: Nagios web interface is running only on some computers

Posted: Fri Aug 18, 2017 12:34 pm
by dwhitfield
From the Nagios server, what is the output of iptables -L? Please put the output in a code block. The "Code" button is the fifth from the left on the post input screen (between Quote and List).

Re: Nagios web interface is running only on some computers

Posted: Sat Aug 19, 2017 11:41 am
by h4doukeeN
dwhitfield wrote:From the Nagios server, what is the output of iptables -L? Please put the output in a code block. The "Code" button is the fifth from the left on the post input screen (between Quote and List).

Code: Select all

[root@localhost objects]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     udp  --  anywhere             anywhere             udp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:domain
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootps
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:bootps
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
INPUT_direct  all  --  anywhere             anywhere            
INPUT_ZONES_SOURCE  all  --  anywhere             anywhere            
INPUT_ZONES  all  --  anywhere             anywhere            
DROP       all  --  anywhere             anywhere             ctstate INVALID
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             192.168.122.0/24     ctstate RELATED,ESTABLISHED
ACCEPT     all  --  192.168.122.0/24     anywhere            
ACCEPT     all  --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere             reject-with icmp-port-unreachable
REJECT     all  --  anywhere             anywhere             reject-with icmp-port-unreachable
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
FORWARD_direct  all  --  anywhere             anywhere            
FORWARD_IN_ZONES_SOURCE  all  --  anywhere             anywhere            
FORWARD_IN_ZONES  all  --  anywhere             anywhere            
FORWARD_OUT_ZONES_SOURCE  all  --  anywhere             anywhere            
FORWARD_OUT_ZONES  all  --  anywhere             anywhere            
DROP       all  --  anywhere             anywhere             ctstate INVALID
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootpc
OUTPUT_direct  all  --  anywhere             anywhere            

Chain FORWARD_IN_ZONES (1 references)
target     prot opt source               destination         
FWDI_public  all  --  anywhere             anywhere            [goto] 
FWDI_public  all  --  anywhere             anywhere            [goto] 

Chain FORWARD_IN_ZONES_SOURCE (1 references)
target     prot opt source               destination         

Chain FORWARD_OUT_ZONES (1 references)
target     prot opt source               destination         
FWDO_public  all  --  anywhere             anywhere            [goto] 
FWDO_public  all  --  anywhere             anywhere            [goto] 

Chain FORWARD_OUT_ZONES_SOURCE (1 references)
target     prot opt source               destination         

Chain FORWARD_direct (1 references)
target     prot opt source               destination         

Chain FWDI_public (2 references)
target     prot opt source               destination         
FWDI_public_log  all  --  anywhere             anywhere            
FWDI_public_deny  all  --  anywhere             anywhere            
FWDI_public_allow  all  --  anywhere             anywhere            
ACCEPT     icmp --  anywhere             anywhere            

Chain FWDI_public_allow (1 references)
target     prot opt source               destination         

Chain FWDI_public_deny (1 references)
target     prot opt source               destination         

Chain FWDI_public_log (1 references)
target     prot opt source               destination         

Chain FWDO_public (2 references)
target     prot opt source               destination         
FWDO_public_log  all  --  anywhere             anywhere            
FWDO_public_deny  all  --  anywhere             anywhere            
FWDO_public_allow  all  --  anywhere             anywhere            

Chain FWDO_public_allow (1 references)
target     prot opt source               destination         

Chain FWDO_public_deny (1 references)
target     prot opt source               destination         

Chain FWDO_public_log (1 references)
target     prot opt source               destination         

Chain INPUT_ZONES (1 references)
target     prot opt source               destination         
IN_public  all  --  anywhere             anywhere            [goto] 
IN_public  all  --  anywhere             anywhere            [goto] 

Chain INPUT_ZONES_SOURCE (1 references)
target     prot opt source               destination         

Chain INPUT_direct (1 references)
target     prot opt source               destination         

Chain IN_public (2 references)
target     prot opt source               destination         
IN_public_log  all  --  anywhere             anywhere            
IN_public_deny  all  --  anywhere             anywhere            
IN_public_allow  all  --  anywhere             anywhere            
ACCEPT     icmp --  anywhere             anywhere            

Chain IN_public_allow (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh ctstate NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http ctstate NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:webcache ctstate NEW

Chain IN_public_deny (1 references)
target     prot opt source               destination         

Chain IN_public_log (1 references)
target     prot opt source               destination         

Chain OUTPUT_direct (1 references)
target     prot opt source               destination

Re: Nagios web interface is running only on some computers

Posted: Sat Aug 19, 2017 11:53 am
by h4doukeeN
Query what type of permissions should have the .cfg files of nagios for example the only thing I have done are changes to chmod 777 at first it worked, but today I get to my work and again on the same computers I get not running I do not understand anything