Zabbix Monitoring Server Integration.#21
Conversation
Use Zabbix Trigger Status and Severity to override the color of messages to HipChat. Signed-off-by: TonyB <hiretonyb@gmail.com>
|
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.
should these be $STATUS instead of $LEVEL?
There was a problem hiding this comment.
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 hiretonyb@gmail.com