service http Critical
-
- Posts: 142
- Joined: Fri Jan 16, 2015 5:22 am
service http Critical
hi ,
i want to monitor the service http in a windows machine so i just added this service in the windows.cfg :
define service {
use generic-service
host_name user
service_description http
check_command check_http
}
thanks a lot for your answers
i want to monitor the service http in a windows machine so i just added this service in the windows.cfg :
define service {
use generic-service
host_name user
service_description http
check_command check_http
}
thanks a lot for your answers
-
- Posts: 142
- Joined: Fri Jan 16, 2015 5:22 am
Re: service http Critical
Status Information :
CRITICAL - Socket timeout after 10 seconds
CRITICAL - Socket timeout after 10 seconds
Re: service http Critical
Do you actually have "host_name user" for that service? If so, can you post the host config for the "user" host?
Former Nagios employee
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: service http Critical
Can you show us the command definition that you are using there?
-
- Posts: 142
- Joined: Fri Jan 16, 2015 5:22 am
Re: service http Critical
Yes i have , this is the host config :tmcdonald wrote:Do you actually have "host_name user" for that service? If so, can you post the host config for the "user" host?
Code: Select all
define host{
use windows-server
host_name user
alias My Windows Server
address a.b.c.d
}
-
- Posts: 142
- Joined: Fri Jan 16, 2015 5:22 am
Re: service http Critical
slansing wrote:Can you show us the command definition that you are using there?
Code: Select all
#'check_http' command definition
define command {
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}
Re: service http Critical
Can you run the check from a command prompt without any errors?
Try running this and post the results back.
Try running this and post the results back.
Code: Select all
/usr/local/nagios/libexec/check_http -H <IP or Host name>
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 142
- Joined: Fri Jan 16, 2015 5:22 am
Re: service http Critical
Code: Select all
sudo /usr/local/nagios/libexec/check_http -H 192.168.0.24
CRITICAL - Socket timeout after 10 seconds
Code: Select all
connect to address 192.168.0.24 and port 80:Connection refused
HTTP CRITICAL - Unable to open TCP socket
Re: service http Critical
It looks like port 80 is not open. What is the output of nmap?
Code: Select all
nmap -p 80 192.168.0.24
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.
"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.