Jump to content

Logmsgbot

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

logmsgbot is udprec piped into ircecho. It outputs !log messages to IRC. These and other (manual) !log messages are read by Stashbot and saved to Server Admin Log.

Set up

Logmsgbot is provisioned via the Puppet class profile::tcpircbot which configures the tcpircbot class. In Wikimedia's production cluster, these Puppet classes are applied to alert1001/alert2001 and files are in /srv/tcpircbot/.

Restart

Since the Icinga servers are on stretch, it's now using systemd. The service name is "tcpircbot-logmsgbot" which might be a bit confusing.

systemctl status tcpircbot-logmsgbot
systemctl restart tcpircbot-logmsgbot

See also