Menu

[HELP] Search String - Pattern

2014-05-05
2019-02-28
  • Luis Carlos

    Luis Carlos - 2014-05-05

    Hi friends!

    Does anybody know how can I do to configure string on my application to match to the string on server configuration node in PHP Server Monitor control painel? I need to create a health check to verify all the application and if all right it's OK the correct string is generated. If the any part of application is not OK, another string is generated and won't match to the string on PHP Server Monitor and the node will down.

    Thanks for the help.

    Regards,

    Luis Carlos

     
  • Pep

    Pep - 2014-05-10

    Hi Luis,
    To create the health check, choose a piece of string that can be found in the HTML source of your application when it's running OK. You can then add that string to the monitor config, or create a regular expression to match it. If a match is found in the retrieved source from your application, the monitor will regard the application as up.

    If you need more help, please let me know, but please try to be more specific on which part you have problems with.

    Regards,
    Pep

     
  • Ocean

    Ocean - 2016-01-27

    Hi,

    what if the string is on the webpage but "server monitor" can't find it.
    for example in al the header text of my joomla websites is always the same word
    but 3 website it can not find the string.

    regular expression option the add to the search string.. I find it complex the expressions, sorry.

    (\W|^)(Joomla|joomla)(\W|$)
    joomla
    /joomla/
    ^.(\bjoomla\b)?.$
    \W(Joomla)\W
    \W(joomla)\W

    Which one is the best way to find the word "Joomla" and not case-sensitive?

    Best regards
    Ocean

     
  • Ciaran Meagher

    Ciaran Meagher - 2019-02-28

    I'm having th same problem with Joomla websites. I've tried lots of strings and ther Server Monitor cannot find them.

     

Log in to post a comment.

MongoDB Logo MongoDB