Page MenuHomePhabricator

LibreNMS IRC bot registration
Closed, ResolvedPublic

Description

From https://wikitech.wikimedia.org/wiki/Talk:LibreNMS

The LibreNMS IRC bot needs to be registered but doesn't seem to have that feature:
https://docs.librenms.org/Extensions/IRC-Bot/

I'm also not sure if that's the reason why it can't join the -operations channel anymore. I tried restarting it without success.

Event Timeline

ayounsi triaged this task as Medium priority.Nov 19 2018, 2:02 PM
ayounsi created this task.

From Freenode:

Due to the persistent ongoing spam, all new connections are being set +R (block messages from unidentified users)

You can try using server authentication, should be sufficient to auth you without needing extra code intreacting with nickserv. $config['irc_nick'] / $config['irc_pass'] might work.

https://github.com/librenms/librenms/blob/32a7c50189b46058d53b8a1de6c2846a16f5e549/LibreNMS/IRCBot.php#L151-L153

Change 474833 had a related patch set uploaded (by Ayounsi; owner: Ayounsi):
[operations/puppet@production] LibreNMS IRC bot identify to Nickserv

https://gerrit.wikimedia.org/r/474833

Change 474835 had a related patch set uploaded (by Ayounsi; owner: Ayounsi):
[labs/private@master] Add fake password for LibreNMS IRC bot

https://gerrit.wikimedia.org/r/474835

Change 474835 merged by Ayounsi:
[labs/private@master] Add fake password for LibreNMS IRC bot

https://gerrit.wikimedia.org/r/474835

Change 474833 merged by Ayounsi:
[operations/puppet@production] LibreNMS IRC bot identify to Nickserv

https://gerrit.wikimedia.org/r/474833

ayounsi claimed this task.

Thanks, that works!

Registered the bot under a new noc@ alias (librenms-bot@).

And passed username:password as server password to identify it (cf. https://freenode.net/kb/answer/registration#logging-in )

The bot is now back in wikimedia-operations

Great, happy to see LibreNMS IRC bot had all the logic already \o/