Problem with reading special characters in page title

Hello,


Thanks for reading my post and if it is in the wrong category, please move it.

My problem.

I am just monitoring the client’s website. The client changed the title of the page
with the special character -> | <- I set the same name in the monitoring configuration
as the client’s website, but it does not work. Icinga sends out a critical alert all the time.

A) Is it possible to monitor only half of the title?
B) Is there any way to ignore this special sign?
C) What should I put for this special character?

Error:

HTTP CRITICAL: Status line output matched “Status Code, 200 OK” - HTTP / 1.1 200 OK - string ’ Welcome to Broadway …’ not found on 'https://www.broadwayevents.co.uk:443 / '- 68823 bytes in 0.942 second response time

The page title in the configuration is correct.

Screenshot from the configuration:

obraz

obraz

UP :frowning: guys can you help???

Hi There,

Have you tried escaping your characters?

"\<title\>Welcome ?
A alternative is searching for just the string without the HTML tags?

last but no least:
Looking at the site you have in the pictures perhaps its better to look for :
jWEFCf5YbAhq5as5HA8JvM4DhenalTIxbqqeQzUd9So
found in:

<meta name="google-site-verification" content="jWEFCf5YbAhq5as5HA8JvM4DhenalTIxbqqeQzUd9So">

its unique and it probably also wont show up on your error pages :slight_smile:

What do you mean
with this:

"<title>Welcome ?

To Answer your questions in the order you asked them:

A) Is it possible to monitor only half of the title?

  • Yes, you can monitor any thing you like on that page for instance:
    vars.http_string = "Welcome"
  • or:
    • vars.http_string = "jWEFCf5YbAhq5as5HA8JvM4DhenalTIxbqqeQzUd9So"
      The advice is to check for something unique, that appears only once, and does not show up in your error pages. (500 or other wise)

B) Is there any way to ignore this special sign?

C) What should I put for this special character?

  • So to monitor your complete sting you would use:
    vars.http_string = "\<title\>Welcome to Broadway Events \| Home \</title\>"

  • Or

    • again find a different unique string you can find on your web page that is unique and does not have any special characters:
      vars.http_string = "jWEFCf5YbAhq5as5HA8JvM4DhenalTIxbqqeQzUd9So"