Page 1 of 1

check_http and special characters

Posted: Fri May 29, 2015 2:36 pm
by mqgroup
I'm trying to use the check_http command (actually, it's 'check_xi_service_http', which just calls 'check_http' with some options set) to monitor webpages for content using the '-s "TEXT TO FIND"' option. I'm getting that the text isn't found when it looks like it should be. In a couple of examples, I've seen that the webpage creators have put non-breaking spaces (" " in HTML) in the bit of text that the users have chosen to monitor for. Would this be something that would mess the check up? For example, if I configured it to search for "Find this text", would it find "Find this[non-breaking space]text"? If not, is there another switch to make it behave like that?

Thanks!

Re: check_http and special characters

Posted: Sun May 31, 2015 8:51 pm
by Box293
I was reading through these examples:
http://support.nagios.com/forum/viewtop ... 01#p114894

Using this webpage http://www.pagetutor.com/html_tutor/lesson09.html which has this code:

Code: Select all

Something        
really        
cool
I came up with this:

Code: Select all

Command:
./check_http -H www.pagetutor.com -u /html_tutor/lesson09.html -r 'Something*.*really*.*cool'

Output:
HTTP OK: HTTP/1.1 200 OK - 18032 bytes in 0.742 second response time |time=0.741754s;;;0.000000 size=18032B;;;0
Does this help?