DX Infrastructure Manager

Expand all | Collapse all

Url/logmon http/api out put monitoring

  • 1.  Url/logmon http/api out put monitoring

    Posted 08-26-2019 10:06 AM


    below are the urls that we like to monitor  

    https://paasworker02-bma.se.telenor.net/_ping

    {"Error":"","Healthy":true}

    c4MsFZwW9TmK@kibana-dashboard.paas.se.telenor.net/api/status" target="_blank" rel="noopener">https://monitor:c4MsFZwW9TmK@kibana-dashboard.paas.se.telenor.net/api/status

    "state":"green","title":"Green","nickname":"Looking good"

    c4MsFZwW9TmK@traefik-dashboard.paas.se.telenor.net/health" target="_blank" rel="noopener">https://monitor:c4MsFZwW9TmK@traefik-dashboard.paas.se.telenor.net/health

    HTTP/2 200



    It is either the HTTP response code (HTTP/2 200) or it is a string in the response, typically part of a json response that the api outputs.

     

     

    $ curl -sk https://paasworker02-bma.se.telenor.net/_ping

    {"Error":"","Healthy":true}

     

    $ curl -sk c4MsFZwW9TmK@kibana-dashboard.paas.se.telenor.net/api/status" target="_blank" rel="noopener">https://monitor:c4MsFZwW9TmK@kibana-dashboard.paas.se.telenor.net/api/status

    {

      "commit": "69c5191",

      "database": "ok",

      "version": "5.4.0"

    }

     

    $ curl -ski https://ucp.se.telenor.net/_ping

    HTTP/2 200

    cache-control: no-cache, no-store, must-revalidate

    content-type: text/plain

    ping-finish-time: 1566827200081552478

    ping-receive-time: 1566827200081546088

    x-content-type-options: nosniff

    x-frame-options: sameorigin

    x-server-ip: 10.80.28.2

    x-server-name: k8smaster01-bma

    x-xss-protection: 1; mode=block

    content-length: 2

    date: Mon, 26 Aug 2019 13:46:40 GMT

     

    OK


    can any one please suggest how can that be configured and monitored ?

    I am using UIM version - 8.5.1

     



    ------------------------------
    System Analyst
    DXC Technology
    ------------------------------


  • 2.  RE: Url/logmon http/api out put monitoring

    Posted 08-26-2019 12:48 PM
    I would suggest you start with the documentation at https://docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/alphabetical-probe-articles/logmon-log-monitoring - in particular the parts about monitoring the output of a command.

    -Garin


  • 3.  RE: Url/logmon http/api out put monitoring

    Posted 08-26-2019 12:53 PM
    Hi Garin,
    Can that be not done just using url in logmon ? do i require some command to get this done ?
    like $ curl -ski https://ucp.se.telenor.net/_ping

    ------------------------------
    System Analyst
    DXC Technology
    ------------------------------



  • 4.  RE: Url/logmon http/api out put monitoring

    Posted 08-26-2019 12:50 PM
    can some one please help me here?

    ------------------------------
    System Analyst
    DXC Technology
    ------------------------------



  • 5.  RE: Url/logmon http/api out put monitoring

    Posted 08-26-2019 02:21 PM
    Did you read the documentation linked above?

    Whether you use the URL option to invoke the URL directly or if you use a command configuration to run the curl command depends on your specific requirements which haven't been presented yet.

    The neat thing with UIM is that you can try things and if they don't work, change how you are doing it.


  • 6.  RE: Url/logmon http/api out put monitoring

    Posted 08-27-2019 10:19 AM
    Hi Garin,
    On https://docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/alphabetical-probe-articles/logmon-log-monitoring, i get to see below point,

    • Content of HTML web pages: You can use the URL Endpoint Response Monitoring (url_response) probe with the logmon probe to monitor the text in a web page.
    how can we use both the probes ?

    and in url monitoring i saw below checkpoint in url message profile and want to understand what doe it actually check for ?



    ------------------------------
    System Analyst
    DXC Technology
    ------------------------------



  • 7.  RE: Url/logmon http/api out put monitoring

    Posted 08-27-2019 10:22 AM
    want to understand both these points?

    • Content of HTML web pages: You can use the URL Endpoint Response Monitoring (url_response) probe with the logmon probe to monitor the text in a web page.
    and in url monitoring i saw below checkpoint in url message profile and want to understand what doe it actually check for ? what sort of string does it actually check for ??

    ------------------------------
    System Analyst
    DXC Technology
    ------------------------------



  • 8.  RE: Url/logmon http/api out put monitoring

    Posted 08-27-2019 03:23 PM
    url_response tests web server responsiveness from the perspective of responding to a GET. It's mainly intended to test for response time, error states, certificate validity, etc.

    logmon has the ability to communicate with url_response by passing to it a URL configured in logmon and retrieving the web server response as if it were the file being monitored. Then it can perform all the things that logmon can do.

    url_response is very much a "did the GET work" and maybe does the response contain this word/regex pattern.

    logmon doesn't care much about what the web server was doing so long as it returned something. Then you can use all the pattern matches and exclusions, data extraction, customer QOS, etc. that logmon offers.

    So yes, there's overlap, but not much.

    Otherwise I don't think that I understood your question.




  • 9.  RE: Url/logmon http/api out put monitoring

    Posted 08-28-2019 03:22 AM

    Hi Sid,

    In addition to Garin's comments. Please notice url_response and logmon response are different probes with different purposes. Garin wrote it well below.

    The screenshot with alarm messages is from url_response probe configuration. By $string - it refers to the variable string that is defined to use for the check:
    "Look for substring in page content: defines a string to search for in the web page content once it is loaded."

    Check documentation:
    https://docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/alphabetical-probe-articles/url_response-url-endpoint-response-monitoring/url_response-im-configuration


    The logmon probe option is also similar:
    "Content of HTML web pages: You can use the URL Endpoint Response Monitoring (url_response) probe with the logmon probe to monitor the text in a web page.", --> with more advanced options.

    Check documentation:
    https://docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/alphabetical-probe-articles/logmon-log-monitoring/logmon-hints-and-examples#logmonHintsandExamples-Example2HTMLPage


    Your original request in first post looks specific, and would need more details to understand how this check is actually doing in order to suggest which probe would be able to perform. It more looks like a job for logmon, rather than url_response.