Checking IRC bots from nagios

The infamous ‘ubotu’ IRC bot is very important to the Ubuntu IRC team and the users of ubuntu-related channels on freenode. Since I administer the bot, it is my task to keep it running and check its status. However, being a lazy git, I’d rather not do too much to accomplish that, hence I let nagios do that for me now. If you are in the same position, find a nagios plugin here, and here are the needed nagios config snippets:

define command{
        command_name    check_nick
        command_line    /usr/lib/nagios/plugins/check_nick $ARG1$ $ARG2$ $ARG3$
}

define service {
        use                             generic-service
        name                            ubotu
        service_description             ubotu
        check_command                   check_nick!irc.freenode.net!ubotu!ubuntu/bot/ubotu
        host                            ubuntu-nl
}

One Comment

  1. Hello,
    this is one beautifull example or open source coding :)

    take care