HomePhabricator

check_health: update from check_mariadb.py in puppet repo

Authored by Kormat on Aug 4 2020, 12:04 PM.

Description

check_health: update from check_mariadb.py in puppet repo

check_mariadb.py in the puppet repo is a maintained copy of
check_health.py in this repo.

check_mariadb contained an embedded version of WMFMariaDB that wasn't
merged into this repo[0], which has diverged somewhat. This patch
updates WMFMariaDB.py with the non-refactoring parts of the divergence.

It also fixes user detection so that it should work under nrpe.

[0] https://gerrit.wikimedia.org/r/c/operations/software/wmfmariadbpy/+/449185

Bug: T259516
Change-Id: Ie0f5563b4c330a1164c11d134e1beac43fb4ccda

Details

Committed
KormatAug 4 2020, 3:11 PM
Parents
rOSWB57ad77e3a158: switchover: Fix import path
Branches
Unknown
Tags
Unknown
ChangeId
Ie0f5563b4c330a1164c11d134e1beac43fb4ccda