Forward icinga alerts to Signal

Bonjour,

Do people happen to know of a way to forward mails / icinga alerts to a Signal number?

Is something I came across but never tried.

Cheers

I use Gotify to receive alerts via push notifications on my phone.

But Gotify has to be self-hosted, so Icinga alerts might fail if the infra goes down :man_shrugging:

1 Like

That would work fine: there are two icinga for gna.org. One is on a libvirt hypervisor and the other is in the cloud. They have entirely different connectivity and if gotify is hosted next to icinga, one of them will be able to send word that the other is in trouble.

Excellent find!

1 Like

I’m not sure what data the plugins send, but I remember you telling me that Icinga is capable of running shell scripts.

Interacting with Gotify from the shell is very easy. I have this function in my backups script, which sends Gotify notifications:

gotify() {
    GOTIFY_KEY='foobar'

    curl -X POST "https://gotify.example.org/message" \
        -H  "accept: application/json" \
        -H  "X-Gotify-Key: $GOTIFY_KEY" \
        -H  "Content-Type: application/json" \
        -d "{  \"message\": \"$2\",  \"priority\": 2,  \"title\": \"$1\"}"
}
1 Like

That will work just fine.

1 Like