service http Critical

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: service http Critical

Post by ziedmahjoub »

abrist wrote:It looks like port 80 is not open. What is the output of nmap?

Code: Select all

nmap -p 80 192.168.0.24
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
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: service http Critical

Post by ziedmahjoub »

i wanna add that the command is working fine with the local address .
and the service is ok at localhost
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: service http Critical

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: service http Critical

Post 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 .
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: service http Critical

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: service http Critical

Post 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   
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: service http Critical

Post by abrist »

Please answer *all* our questions:
abrist wrote:What web server are you running on the Windows 7 box? apache? nginx? IIS?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: service http Critical

Post 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
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: service http Critical

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: service http Critical

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked