So I did a thing...
Because #IRC is still one of the best chat systems around, despite - or maybe because of - its shortcomings, I am a firm believer of https://xkcd.com/1782/.
At @bawuenet we use a #nagios installation to monitor our systems for availability etc. and to alert if some service goes down. Notifications happen via email and mobile phone push notification via https://pushover.net (great service BTW).
But I wanted the alerts on IRC as well. Which is not difficult, there are multiple IRC Bots already that can send notifications to IRC.
Except I do not want to run another bot as we already have an #eggdrop bot running. For about 25 years now.
So I built an eggdrop script that supports a `.nagios` command to send colorized nagios notifications to a channel and an accompanying expect script that logs into the eggdrop partyline via telnet and triggers the `.nagios` command.
I could have done `.say #channel <msg>` but that get confused when one uses IRC colors. Bummer.
Maybe this can be useful for someone else as well... https://github.com/bawuenet/eggdrop_nagios/tree/master










