Hi guys,
Can we create http/https checks in Netbrain for monitoring remote endpoints?
Cheers
Hi guys,
Can we create http/https checks in Netbrain for monitoring remote endpoints?
Cheers
Hi
Could you please elaborate on what endpoints you would like to monitor via http or https, please provide an example if it’s possible.
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
Hi
Thanks for elaborating!
Let me check with our Automation Engineers on this and get back to you shortly.
Hi
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:
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))
Thanks
Venkatesh Ravikanti
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.