-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zabbix Monitoring Server Integration. #21
base: master
Are you sure you want to change the base?
Conversation
Use Zabbix Trigger Status and Severity to override the color of messages to HipChat. Signed-off-by: TonyB <[email protected]>
thanks! |
Why has this not been merged in ? this is a highly needed addition |
Any update this is required as a user use case as what the original poster submitted I don't want to re-invent the wheel again. |
STATUS=$(echo $STATUS | tr '[:lower:]' '[:upper:]') | ||
if [[ "$STATUS" == 'OK' ]]; then | ||
COLOR="green"; | ||
elif [[ $LEVEL == 'DISASTER' ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these be $STATUS instead of $LEVEL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a running Zabbix instance to test against anymore to verify this, however I believe the PR is correct as it exists. The Zabbix Status is either "OK" or "PROBLEM", and if it is "PROBLEM" then Level is used to map the severity.
@jimsmith There seem to be issues with the PR (I'm no expert on Zabbix though), so can't merge it yet. Could you take a look? Not sure if the original submitter is still around to correct it. If not, maybe you can take over? |
Use Zabbix Trigger Status and Severity to override the color of messages to HipChat.
Signed-off-by: TonyB [email protected]