Can you create a radio station with Zabbix? Of course you can! Have you ever wondered what kind of theme song an AI would write about Zabbix? Or how it would sound like if someone would sing your Zabbix alerts? Then keep on reading.
As Zabbix 6.4.0 introduced alert and event streaming, my weird mind immediately started thinking of streaming the alerts to some kind of streaming service. For now this is very much work in progress, but this is just to share some ideas with you.
What in the world are you planning?
As there's plenty of open source speech synthesisers out there, I'm planning to
- stream the alerts from Zabbix to sample piece of receiver code found in Zabbix git repo [DONE]
- send these alerts to some speech synthesiser (festival, espeak, espeak-ng, something found online...) [TRIED OUT but not happy with the speech quality]
- save the spoken output to a sound file
- stream that sound file using a streaming software, such as Icecast2
It's been a long time since I have done anything resembling this kind of streaming -- my last attempt was around 2007 when I had my personal blog, so not all bits and pieces of this are in place yet. I'm evaluating what's out there about 15 years since my last attempt. But, I've done some progress already.
Current status
Here's my streaming setup in Zabbix:

.... and this is how those events arrive to receiver.

So, from this JSON it would be trivial to parse just the alert name and the time when it occurred. Due my time constraints, this is how far I'm at the moment. Next I'm going to
- find out a proper speech synthesiser (yes I could use say command on Mac to get Siri to speak, but I'm looking for some generic open source project which would sound decent)
- Find out if Icecast2 is still a cool streaming software or is there something better out there
Zabbix theme song
But what kind of content this radio station would play whenever there's no active alerts? For example, Zabbix theme songs! Here's what happened when I asked ChatGPT to write a motivational song about Zabbix.

OK, now we have the lyrics. But how to make song out of it? I found out VoiceMod text to song generator, so of course I had to try it out. Here's our Zabbix theme song.
Sing those alerts out loud, Zabbix!
And how could those alerts sound like as a song? Here are manually fed "lyrics", or in other words, the out-of-the-box Zabbix alert template, alert being about me forgetting to apply my facial cream and then another song about when the alert got resolved.

Add new comment