HTTP check - how to include response codes for 4xx and 5xx
Posted: Fri Jul 21, 2017 12:49 pm
Hello,
I have HTTP check running and for the most part it does alert when there are issues with my site. However what i'm looking for is to include the HTTP error on email alerts that are sent out.
Currently if there are any response codes other than "200 OK" alerts are sent out with the following messaging:
CRITICAL - Socket timeout after 10 seconds
Once the check recovers I do get the response code for "200 OK":
HTTP OK: HTTP/1.1 200 OK - 74735 bytes in 0.796 second response time
My goal is to include problem error response codes in the email alert much how the recovery email alert includes the "200 OK" info.
Any help would be greatly appreciated!
Thanks,
Chris
I have HTTP check running and for the most part it does alert when there are issues with my site. However what i'm looking for is to include the HTTP error on email alerts that are sent out.
Currently if there are any response codes other than "200 OK" alerts are sent out with the following messaging:
CRITICAL - Socket timeout after 10 seconds
Once the check recovers I do get the response code for "200 OK":
HTTP OK: HTTP/1.1 200 OK - 74735 bytes in 0.796 second response time
My goal is to include problem error response codes in the email alert much how the recovery email alert includes the "200 OK" info.
Any help would be greatly appreciated!
Thanks,
Chris