Results 1 to 4 of 4

Thread: check_http to regex check for a string in json

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    11

    check_http to regex check for a string in json

    Hello,

    I am trying to check a url for a string and return a warning if it isnt there. Here is my check_http syntax that I am using.

    I have tried both of these lines for "good measure" but with no success.

    check_http -H mysub.mysubtwo.mydomain.tv/mycode.php?getCodeDetails&code=18synx&data Type=json

    check_http -H mysub.mysubtwo.mydomain.tv/mycode.php

    But I just this error when ran from the command line

    CRITICAL - Socket timeout after 10 seconds


    any ideas why?

    Any help is greatly appreciated.

  2. #2
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: check_http to regex check for a string in json

    URI is the -u option.
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3
    Junior Member
    Join Date
    Sep 2012
    Posts
    11

    Re: check_http to regex check for a string in json

    Thanks...kinda a unneccessary question was getting stressed out. Thanks for your feedback

  4. #4
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: check_http to regex check for a string in json

    You're welcome
    No direct support by personal message. Please open a thread so everyone can see the solution

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •