Check_http plugin warning

Created URL monitor using check_http command. The monitor is Green though the Plugin in giving http warning “400” as shown below. Is it possible that monitor will appear Red if the response code is not 200?

image

Hi,

this can be done by using the -e | --expect argument of the plugin. This one allows you to define the expected header and receive an alarm if it’s not HTTP/1.1 200 OK for example.

Just check the documentation or help output of the plugin. :slight_smile:

Cheers,
Marcel

1 Like