issue with the Nagios
Re: issue with the Nagios
Are you using IPV4 on your machine? Can you post the output of ifconfig?
Former Nagios Employee
Re: issue with the Nagios
if ifconfig isn't installed, try
ip /a
thanks
ip /a
thanks
Re: issue with the Nagios
sorry gentlemen for the delay
here is the output of the ifconfig
i guess im using ipv4
here is the output of the ifconfig
Code: Select all
# ifconfig
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.79.7 netmask 255.255.255.0 broadcast 192.168.79.255
inet6 fe80::fab1:56ff:fec1:79ef prefixlen 64 scopeid 0x20<link>
ether f8:b1:56:c1:79:ef txqueuelen 1000 (Ethernet)
RX packets 6207506 bytes 1898624859 (1.7 GiB)
RX errors 0 dropped 48 overruns 0 frame 0
TX packets 893894 bytes 260067637 (248.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf7c00000-f7c20000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 620194 bytes 262340927 (250.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 620194 bytes 262340927 (250.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Re: issue with the Nagios
Hello Gents,
for somehow i've stopped the firewall.d service and the nagios web worked very well.
now how to add the following
1- add the nagios to the firewall.
2- secure my server and build a decent firewall allow me to access using ssh and http & https
for somehow i've stopped the firewall.d service and the nagios web worked very well.
now how to add the following
1- add the nagios to the firewall.
2- secure my server and build a decent firewall allow me to access using ssh and http & https
Re: issue with the Nagios
after checking the firewall below is the firewall status Centos7mleo40 wrote:Working output:
# netstat -anp|grep :80
tcp 0 0 :::80 :::* LISTEN 13150/httpd
your machine is only listening on ipv6 ... ? That is strange
Code: Select all
# firewall-cmd --list-all-zones
block
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
dmz
interfaces:
sources:
services: ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
drop
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
external
interfaces:
sources:
services: ssh
ports:
masquerade: yes
forward-ports:
icmp-blocks:
rich rules:
home
interfaces:
sources:
services: dhcpv6-client ipp-client mdns samba-client ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
internal
interfaces:
sources:
services: dhcpv6-client ipp-client mdns samba-client ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
public (default, active)
interfaces: em1
sources:
services: dhcpv6-client ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
trusted
interfaces:
sources:
services:
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
work
interfaces:
sources:
services: dhcpv6-client ipp-client ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: issue with the Nagios
Code: Select all
firewall-cmd --zone=public --add-port=http/tcp
firewall-cmd --zone=public --add-port=http/tcp --permanentAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: issue with the Nagios
great it works very well,.
many thanks
many thanks
Re: issue with the Nagios
Can I mark this thread as resolved and close this out now?
Former Nagios Employee
Re: issue with the Nagios
rkennedy wrote:Can I mark this thread as resolved and close this out now?
yes Please mark it as resolved