Apt plugin not working because of ads

CMK version: 2.1.0p13
OS version: Ubuntu 22.04.1 LTS

Error message: Missing monitoring data for plugins: apt

The agent output looks like this:

<<<apt:sep(0):cached(1665063981,3600)>>>
Try Ubuntu Pro beta with a free personal subscription on up to 5 machines.
Learn more at https://ubuntu.com/pro

This is simply because this beautiful ad ignores the -qq argument of apt-get.

A quick workaround is to edit line 40 of the mk_apt script and replace the existing grep -v with something like this:

grep -v '^Conf\|^Try Ubuntu Pro\|^Learn more at'

Have a look at Mk_apt and latest idea from Ubuntu

ah sorry, this is a duplicate then.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.