adoptium / adoptium/infrastructure

Nagios: Adjust messages posted to slack to allow keyword alerting

Open
#2,794 1 comment 0 reactions 1 assignee Claimed by @steelhead31 View on GitHub
Nagios
Dominant language
Python
Stars
96
Forks
106
Avg merge
1d 23h
Merged PRs (30d)
13

Description

In order to get good notifications for important outages, it would be beneficial for certain classes of messages to be listed with a particular keyword that you can trigger slack notifications on.

I tried setting my notifications to alert me the word "CRITICAL" which will catch things like this:

`HOST: test-osuosl-ubuntu1604-ppc64le-2 SERVICE: Current Load STATE: CRITICAL MESSAGE: CRITICAL - load average: 20.84, 20.96, 21.21`

But not these:
`:fire: HOST: test-marist-ubuntu1804-s390x-2 SERVICE: STATE: MESSAGE:`

`HOST: build-equinix-centos8-armv8-1 SERVICE: RAM STATE: UNKNOWN MESSAGE: Remote command execution failed: bash: /usr/local/nagios/libexec/check_mem: No such file or directory`

It is worth evaluating whether we could have a "critical eyecatcher" phrase of some sort that would be added into all such lines posted to slack (Possibly all the ones with the flame or ? prefix)

FYI @steelhead31 another requirement for you :-)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.