monitoring-plugins-standard check_mysql missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
monitoring-plugins (Ubuntu) |
Fix Released
|
Undecided
|
Paride Legovini | ||
Hirsute |
Fix Released
|
Undecided
|
Paride Legovini |
Bug Description
[Impact]
monitoring-
[Test Plan]
Check that the check_mysql plugin is actually built and installed. Actual functionality can be verified manually by running the following (without mysql-server-8.0 installed):
$ /usr/lib/
Can't connect to local MySQL server through socket '/var/run/
and the following (after installing mysql-server-8.0):
$ /usr/lib/
Access denied for user 'ubuntu'
$ sudo /usr/lib/
Uptime: 26 Threads: 2 Questions: 2 Slow queries: 0 Opens: 117 Flush tables: 3 Open tables: 36 Queries per second avg: 0.076|Connectio
[Where problems could occur]
I don't see concrete risks coming from building the missing plugin, as at the moment it's entirely missing. I only see the generic risk of rebuilding a package against newer libraries.
[Development Fix]
The bug only affects Hirsute.
[1] https:/
[Original Description]
check_mysql is included in 20.04 and also in 21.10
but missing in current 21.04
https:/
https:/
https:/
i installed impish package on on hirsute and it works for me, so what is the reason of the missing files?
wget http://
dpki -i monitoring-
Related branches
- Utkarsh Gupta (community): Approve
- Canonical Server MOTU reviewers: Pending requested
-
Diff: 14 lines (+6/-0)1 file modifieddebian/changelog (+6/-0)
affects: | i2c-tools (Ubuntu) → monitoring-plugins (Ubuntu) |
description: | updated |
Changed in monitoring-plugins (Ubuntu): | |
assignee: | nobody → Paride Legovini (paride) |
status: | New → Triaged |
description: | updated |
Changed in monitoring-plugins (Ubuntu Hirsute): | |
status: | New → Triaged |
assignee: | nobody → Paride Legovini (paride) |
Changed in monitoring-plugins (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in monitoring-plugins (Ubuntu Hirsute): | |
status: | Triaged → In Progress |
Hello Bernd and thanks for this bug report. Your are right: check_mysql is missing from Hirsute but present in Focal and Impish. The Hirsute build log [1] shows the following at the configure stage:
checking for mysql_init in -lmysqlclient... no
checking for mysql_init in -lmariadbclient... no
while for the versions in Focal and Impish we have:
checking for mysql_init in -lmysqlclient... yes
Interestingly if src:monitoring- plugins is rebuilt today in an up-to-date Hirsute chroot, then mysql_init is found and check_mysql is built and installed. What changed is the version of the libmysqlclient-dev build-dep (or, better, of src:mysql-8.0). The buggy version of the package has been built against version 8.0.23-1, which interestingly never left hirsute-proposed. Hirsute at the moment ships version 8.0.26- 0ubuntu0. 21.04.3.
I believe we simply need a no-change rebuild to fix this.
[1] https:/ /launchpadlibra rian.net/ 520824312/ buildlog_ ubuntu- hirsute- amd64.monitorin g-plugins_ 2.3-1ubuntu1_ BUILDING. txt.gz