check_http and special characters

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mqgroup
Posts: 4
Joined: Wed May 15, 2013 3:50 pm

check_http and special characters

Post 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!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_http and special characters

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked