morebots

From Wikitech
(Redirected from Admin Logs)

morebots is a Python server admin log updatin' bot.

morebots listens in these channels on irc.freenode.net:

We also have qa-morebots to log to Release_Engineering/SAL:

  • #wikimedia-qa

Setup

It runs from Wikimedia Tool Labs under the "morebots" account. Bots are started and stopped using normal tool labs conventions.

Source code is here: <https://gerrit.wikimedia.org/r/gitweb?p=operations/debs/adminbot.git;a=tree>.

README

Several irc logbots live here.  Each is started like this:

$ sudo -iu local-morebots
$ jstart -N <botname> /usr/lib/adminbot/adminlogbot.py --config ./confs/<config-for-this-bot>

To get a list of running bots:

$ become morebots
$ qstat

To stop a running bot:

$ become morebots
$ qdel <job#>


The bots are:

analytics-logbot:  Lives in #wikimedia-analytics and logs to www.mediawiki.org/wiki/Analytics/Server_Admin_Log

labs-logbot:  Lives in #wikimedia-labs and logs to https://wikitech.wikimedia.org/wiki/Labs_Server_Admin_Log

morebots:  Lives in #wikimedia-operations and logs to wikitech.wikimedia.org/wiki/Server_Admin_Log

qa-morebots: Lives in #wikimedia-releng and logs to https://wikitech.wikimedia.org/wiki/Release_Engineering/SAL

test-logbot:  Lives in #morebots-test and logs to www.mediawiki.org/wiki/Analytics/Server_Admin_Log
(This one is generally not running, just here as a dev tool.)

Example: restart the ops channel morebot

Ssh to login.tools.wmflabs.org

become morebots
qstat
# now find the instance running on labs
qdel <id>
./labs.sh
jstart -N production-logbot /usr/lib/adminbot/adminlogbot.py --config ./confs/production-logbot.py

See also