Skip to main content
Solved

http/https checks

  • July 8, 2025
  • 4 replies
  • 144 views

  • New Participant
  • 1 reply

Hi guys,

Can we create http/https checks in Netbrain for monitoring remote endpoints?

Cheers

Best answer by Venkatesh Ravikanti

Hi ​@jadom,

Yes, its possible, a QApp has been developed and tested in NetBrain to test the reachability of external endpoints (e.g., www.endpoint.com). The current implementation has been validated using dynamic input.

Solution Summary:

  1. Dynamic Input (Tested & Validated)
    • The QApp prompts for a URL/endpoint as input.
    • The QApp verifies connectivity and checks for a valid response (e.g., HTTP 200 OK)

Please find below snip which shows the summary of QApp. 

     

import requests

url = $Input1.text

try:
response = requests.get(url, timeout=5)
result = {}
if response.status_code == 200:
result["status"] = "UP"
result["code"] = 200
else:
result["status"] = "DOWN"
result["code"] = response.status_code
AddMessage(result,2)
except Exception as e:
AddMessage("status: ERROR, details:",str(e))
  1. Predefined URL List (Extension Possible)
    • Based on the validated dynamic input, the same mechanism can be applied to a hardcoded list of URLs.
    • These URLs can then be scheduled for automated reachability monitoring at regular intervals via Schedule Run Qapp.
  2. Extended Reachability Checks
    • In addition to HTTP/API availability, PING and Traceroute tests can be performed.
    • These can be executed via CLI Command Parser, either from:
      • NetBrain Front Server, or
      • Any managed network device within the NetBrain environment.

Thanks 

Venkatesh Ravikanti

4 replies

  • Frequent Participant
  • 12 replies
  • August 27, 2025

Hi ​@jadom 

Could you please elaborate on what endpoints you would like to monitor via http or https, please provide an example if it’s possible. 


  • Author
  • New Participant
  • 1 reply
  • August 27, 2025

Hi Mohamed,

Thanks for engaging m8!

All I am looking for is a qapp (lets say) to be able to call an endpoint (www.endpoint.com) and return a 200 response for instance. Maybe even using a QAPP, like traceroute, ping etc, is this possible?

Cheers


  • Frequent Participant
  • 12 replies
  • August 27, 2025

Hi ​@jadom 

Thanks for elaborating!

Let me check with our Automation Engineers on this and get back to you shortly.


  • Frequent Participant
  • 10 replies
  • Answer
  • August 29, 2025

Hi ​@jadom,

Yes, its possible, a QApp has been developed and tested in NetBrain to test the reachability of external endpoints (e.g., www.endpoint.com). The current implementation has been validated using dynamic input.

Solution Summary:

  1. Dynamic Input (Tested & Validated)
    • The QApp prompts for a URL/endpoint as input.
    • The QApp verifies connectivity and checks for a valid response (e.g., HTTP 200 OK)

Please find below snip which shows the summary of QApp. 

     

import requests

url = $Input1.text

try:
response = requests.get(url, timeout=5)
result = {}
if response.status_code == 200:
result["status"] = "UP"
result["code"] = 200
else:
result["status"] = "DOWN"
result["code"] = response.status_code
AddMessage(result,2)
except Exception as e:
AddMessage("status: ERROR, details:",str(e))
  1. Predefined URL List (Extension Possible)
    • Based on the validated dynamic input, the same mechanism can be applied to a hardcoded list of URLs.
    • These URLs can then be scheduled for automated reachability monitoring at regular intervals via Schedule Run Qapp.
  2. Extended Reachability Checks
    • In addition to HTTP/API availability, PING and Traceroute tests can be performed.
    • These can be executed via CLI Command Parser, either from:
      • NetBrain Front Server, or
      • Any managed network device within the NetBrain environment.

Thanks 

Venkatesh Ravikanti