My company has a python script that they run a check for an Apache URL API that checks for warnings, errors, etc. The problem I am running into is this API floats between 2 different nodes based on server load.
The script has the URL hardcoded, so when it is on a certain node, of course the checks work, if it moves to another node the service check fails of course.
- example: http://somenode-1.com:5555/alerts
So if it moves to somenode-2.com:5555/alerts the check fails.
Is there a way to have a check for each (somenode-1 and somenode-2) that monitor the dashboard from the inside, but only raise it as an alarm if both fail in other words, we’d expect 1 to always be in a failed state - but 2 would be bad.
Thank you for your help.