Page 1 of 1

Help with Check _http

Posted: Thu Nov 01, 2018 5:54 pm
by zark
define service {

use local-service
host_name xxx.xxx.domain.com
service_description HTTP
check_command check_http!-w 5 -c 10 -I 1.1.1.20 -p 8080 -u /Web/Login.do?formAction=startLogin&groupId=181
contact_groups helpdesk
notifications_enabled 1

After a long investigation I figured out there is something wrong with check command, Everything is white on text except check_command is Yellow any Idea what I am doing wrong here?

Re: Help with Check _http

Posted: Fri Nov 02, 2018 10:49 am
by benjaminsmith
Hi @Zark


It looks like you have a syntax error in the check command. Try this:

check_http -w 5 -c 10 -I 1.1.1.20 -p 8080 -u /Web/Login.do?formAction=startLogin&groupId=181

I would recommend going to /usr/local/nagios/libexec and testing from the command line. Let me know if that works.

Check_http Plugin Documentation:
https://nagios-plugins.org/doc/man/check_http.html