Nagios check_http text in page

This is how you can check a word in a webpage with nagios. The nagios server is a CentOS 6.5 64bit.

To test if everything is installed properly check this command on the server:

/usr/lib64/nagios/plugins/check_http -H -p 80 -f follow -u "/login" -s "Forgotten"

“-p” – port

“-u” – custom url address

“-s” – word to check in page

“-S” – to check a https page add -S after the port number (…-p 80 -S …)

The configuration looks like: