check_http 404 not found
Posted: Fri Sep 29, 2017 2:35 pm
Nagios server cfg file is:
# Define host for the local machine
define host{
use linux-server ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
host_name xxx.xxx.com
alias xxx.xxx.com
address xxx.xxx.com
}
###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################
# Define a service to "ping" the local machine
define service{
use generic-service ; Name of service template to use
host_name xxx.xxx.com
service_description PING
check_command check_ping!100.0,20%!500.0,60% -4
}
# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may have HTTP enabled.
define service{
use generic-service ; Name of service template to use
host_name xxx.xxx.com
service_description HTTP
check_command check_http
notifications_enabled 0
}
-------
Nagios status information displays warning:
HTTP WARNING: HTTP/1.1 404 Not Found - 492 bytes in 5.007 second response time
I am not sure what the check_command edit should be or if i need to look elsewhere. The ping works as intended
# Define host for the local machine
define host{
use linux-server ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
host_name xxx.xxx.com
alias xxx.xxx.com
address xxx.xxx.com
}
###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################
# Define a service to "ping" the local machine
define service{
use generic-service ; Name of service template to use
host_name xxx.xxx.com
service_description PING
check_command check_ping!100.0,20%!500.0,60% -4
}
# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may have HTTP enabled.
define service{
use generic-service ; Name of service template to use
host_name xxx.xxx.com
service_description HTTP
check_command check_http
notifications_enabled 0
}
-------
Nagios status information displays warning:
HTTP WARNING: HTTP/1.1 404 Not Found - 492 bytes in 5.007 second response time
I am not sure what the check_command edit should be or if i need to look elsewhere. The ping works as intended