Code: Select all
/usr/lib/nagios/plugins/check_http -H 192.168.0.62 -u "/index.html" -s "qwerty"
Code: Select all
HTTP CRITICAL: HTTP/1.1 200 OK - string 'qwerty' not found on 'http://192.168.0.62:80/index.html' - 11192 bytes in 0.001 second response time |time=0.001152s;;;0.000000;10.000000 size=11192B;;;0
Code: Select all
define service{
use custom-service
host_name myhostname
service_description flag1
check_command check_http! -u "/index.html" --string="qwerty"
check_interval 1
}
Code: Select all
Service State Information
Current Status: OK (for 0d 0h 13m 46s)
Status Information: HTTP OK: HTTP/1.1 200 OK - 11192 bytes in 0.001 second response time
Performance Data: time=0.001216s;;;0.000000;10.000000 size=11192B;;;0
Thanks.