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
Best answer by Venkatesh Ravikanti
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.