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.
define host{
use linux-server ; Name of host template to use
host_name test
alias test
address 10.0.0.222
}
define service{
use local-service ; Name of service template to use
host_name test
service_description HTTP availability
check_command check_http_port!test!8080
}
When i check status on Nagios it says:
Current Status:
CRITICAL
(for 0d 0h 48m 58s)
Status Information: Name or service not known
HTTP CRITICAL - Unable to open TCP socket
check_http works fine:
./check_http -H 10.0.0.222 -p 8080
HTTP OK: HTTP/1.0 302 Found - 425 bytes in 0.311 second response time |time=0.311228s;;;0.000000 size=425B;;;0
Can anyone tell me what I'm doing wrong?
thank you for your help.
Last edited by lesnikov on Fri Jan 25, 2013 6:42 am, edited 1 time in total.
define service{
use local-service ; Name of service template to use
host_name test
service_description HTTP availability
check_command check_http_port!8080
}