Page 2 of 3
Re: service http Critical
Posted: Thu Feb 05, 2015 4:19 am
by ziedmahjoub
abrist wrote:It looks like port 80 is not open. What is the output of nmap?
when i type it first time it told me :
Code: Select all
Port STATE SERVICE
80/tcp closed http
and after enabling the port 80 i got this message after trying nmap :
Code: Select all
Port STATE SERVICE
80/tcp filtered http
and after trying :
Code: Select all
sudo /usr/local/nagios/libexec/check_http -H 192.168.0.24
CRITICAL - Socket timeout after 10 seconds
Re: service http Critical
Posted: Thu Feb 05, 2015 6:05 am
by ziedmahjoub
i wanna add that the command is working fine with the local address .
and the service is ok at localhost
Re: service http Critical
Posted: Thu Feb 05, 2015 10:40 am
by abrist
ziedmahjoub wrote:Port STATE SERVICE
80/tcp filtered http
"filtered" is most likely due to a firewall or isp filter. Is there a firewall between these two servers? Are you trying to check across the internet?
See:
http://nmap.org/book/man-port-scanning-basics.html
http://nmap.org/book/man.html
Re: service http Critical
Posted: Thu Feb 05, 2015 11:05 am
by ziedmahjoub
i have nagios core 4.0.8 in a server with ubuntu server distribution , and the remote machine is a windows 7 32 bits .
i just wanna check if the http service work in the windows 7 32 bits machine .
Re: service http Critical
Posted: Thu Feb 05, 2015 11:10 am
by abrist
If you are trying to run a check against a web server on the Windows 7 machine, check the windows firewall (maybe just disable it for now) and also check to make sure the web service in question is running in services.msc.
What web server are you running on the Windows 7 box? apache? nginx? IIS?
Re: service http Critical
Posted: Thu Feb 05, 2015 11:16 am
by ziedmahjoub
i closed the firewall and tried :
Code: Select all
sudo /usr/local/nagios/libexec/check_http -H 192.168.0.24
connect to address 192.168.0.24 and port 80:Connection refused
HTTP CRITICAL - Unable to open TCP socket
and after i tried :
Code: Select all
sudo nmap -p 80 192.168.0.24
Port STATE SERVICE
80/tcp Closed http
Re: service http Critical
Posted: Thu Feb 05, 2015 11:18 am
by abrist
Please answer *all* our questions:
abrist wrote:What web server are you running on the Windows 7 box? apache? nginx? IIS?
Re: service http Critical
Posted: Thu Feb 05, 2015 11:19 am
by ziedmahjoub
Now i activated the firewalla and make a rule to allow port 80 traffic ,
Code: Select all
sudo /usr/local/nagios/libexec/check_http -H 192.168.0.24
CRITICAL - Socket timeout after 10 seconds
Re: service http Critical
Posted: Thu Feb 05, 2015 11:31 am
by ziedmahjoub
abrist wrote:Please answer *all* our questions:
abrist wrote:What web server are you running on the Windows 7 box? apache? nginx? IIS?
IIS
Re: service http Critical
Posted: Thu Feb 05, 2015 12:03 pm
by abrist
Is the IIS service running?
Can you browse to the served web page on the windows box?
Can you browse to the served web page on another workstation?