I sometimes get the question if I have any tips on a op5 Monitor alarm console. I stumbled on the possibility to use irc to present the alerts generated by op5 Monitor or Nagios. A nice feature is that the number of connected clients can be very many, severla systems can send all alerts to the same irc channel and best of all, it's geeky.
The solution is using four components:
- A working op5 Monitor or Nagios implementation (will not be covered in this article)
- An irc channel where the alerts are presented
- A bot that collects the op5 Monitor status and sends it to the irc channel
- An irc client i.e. weechat
The irc server
I wanted to use my own irc server, mainly because I want it to run in my own controlled environment. There are toons of implementations but i picked new generation irc daemon, ngircd which existed in my distributions repository.
Simple configuration in /etc/ngircd.conf added to the end of configuration.
[Channel] Name = #op5_Monitor Topic = op5 Monitor Alerts MaxUsers = 23
Start the irc server:
# /etc/init.d/ngircd start Starting ngircd: [ OK ] Making sure it starts the next reboot # chkconfig ngircd on
I found a boot called nagircbot
Download and compile.
# make && make install
Start the bot:
nagircbot -f /opt/monitor/var/status.log -X -s mail:6667 -c \#op5_Monitor -n Monitor -N op5_Monitor-- -C
Connect the client
Start the irc client
Connect the irc server
Join the correct channel
- op5 Monitor, a nagios based eneteprise monitor solution
- Nagircbot, a bot that sends nagios events to irc
- ngIRCd, new generation irc daemon
- WeeChat, nice irc client with rich functionality