I've been trying for quite a while to figure out if there's a way to make the check_http plugin for Nagios scan for a certain number of instances of a string on a web page and notify me once it passes that number.
For example, if I'm outputting a log file to a web page and want Nagios to notify me if the text "error" comes up on the page more than, say, 3 times, how would I phrase the command? There might even be a different plugin altogether that allows me to bypass the webpage and look for those 3 instances of "error" directly in the log file. If anyone knows of such a plugin, that information would be appreciated, too.
If it matters, I'm running CentOS 6.4.