Match content check with check_http


I am doing an http monitoring. The problem is that I don’t know how to do match content with the the result from http.

Also, I have a URL that takes about 30 sec to return the result, how can I set the HTTP’s timeout to longer than 10 sec - default

here is the config from my minimal.cfg. I am running Nagios 2.6. if the result back is “UP”…if it is “DOWN”, I want Nagios to send me the alert.

define service{
use generic-service
hostgroup_name server_farm
service_description DB_Check
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 30
notification_period 24x7
check_command check_http_url!80!/cgi-bin/!