icinga2-mattermost icon indicating copy to clipboard operation
icinga2-mattermost copied to clipboard

No Notification in Mattermost

Open pima29 opened this issue 4 years ago • 10 comments
trafficstars

Hello I did everyting exactly like explained. Even the test check command works. But when one Host is down I get no notification in Mattermost. When I check icinga the notification are enabled.

image

the only thing i can find is when i check on the web interface. It says no notification send. Is there anything else what i have to enable?

pima29 avatar Jan 13 '21 10:01 pima29

Hi, this is an issue on the Icinga side. You should check your notification handling there. If you receive a notification when executing the command as specified in the Testing section, the error is not in the plugin or script. I suggest, that you chack out:

https://icinga.com/docs/icinga-2/latest/doc/15-troubleshooting/#notifications-troubleshooting

jprusch avatar Jan 13 '21 10:01 jprusch

Thank you I will check my Icinga again.

pima29 avatar Jan 13 '21 11:01 pima29

I think the problem is the --channel could you give me an example how the url should look like?

pima29 avatar Jan 14 '21 07:01 pima29

--channel example.com/xxxxx/channels/icinga2 --channel Icinga2 I tried both and always get an erros message

pima29 avatar Jan 14 '21 07:01 pima29

Try icinga2 (lower case I) as in ..../channels/icinga2

jprusch avatar Jan 14 '21 08:01 jprusch

okay perfect thank you

pima29 avatar Jan 14 '21 08:01 pima29

@pima29 Please close the issue when it is resolved. @jprusch Thank you for your help.

Reamer avatar Jan 14 '21 12:01 Reamer

I'm still struggling with the same issue. I checked my whole icinga. I can't find anything what causes the problem. I am thinking about maybe the channel variable is wrong. Could you provide me an example of the way it should look like?

Is this right? vars.channel = "https://mattermost.xxxxx.com/xxxxx/channels/icinga-mon"

pima29 avatar Feb 18 '21 12:02 pima29

No that is not right. The channel is just the name of the channel. For example monitoring

Reamer avatar Feb 18 '21 12:02 Reamer

okay thank you

pima29 avatar Feb 18 '21 14:02 pima29