[Bug 1610878] [NEW] pmp-check-unix-memory stopped working because of new output from free

Launchpad Bug Tracker 1610878 at bugs.launchpad.net
Mon Aug 8 11:47:53 UTC 2016


You have been subscribed to a public bug by Christian Biamont (christianbiamont):

Hello,

Current pmp-check-unix-memory in package nagios-plugins-contrib does not
work anymore, from Ubuntu Xenial. It can't fetch free memory and
therefor presents it incorrectly.

E.g:

$ ./pmp-check-unix-memory 
OK Memory % used | memory_used=0;90;95;0;100

As of version 3.3.10 of package procps, the command "free" uses a
different output.

See: http://upstream.rosalinux.ru/changelogs/procps-
ng/3.3.10/changelog.html

How free memory is calculated was changed in kernel here:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773

This problem has been fixed in the percona-monitoring-plugins repo on
GitHub:

https://github.com/percona/percona-monitoring-
plugins/commit/b4636c49f0188d2af1235293d01396abeddacf7f

I have ported and tested the fix and it is working, both on a computer
with older procps and on a computer running Ubuntu Xenial.

Will submit a debdiff with proposed patch shortly.

Best regards,
Christian Biamont

** Affects: nagios-plugins-contrib (Ubuntu)
     Importance: Undecided
         Status: New

-- 
pmp-check-unix-memory stopped working because of new output from free
https://bugs.launchpad.net/bugs/1610878
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list