Add *.update-* obsolete configs to dpkg plugin

This commit is contained in:
Joshua Boniface 2023-04-10 15:39:40 -04:00
parent b26bb5cb65
commit 9114255af5
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ class MonitoringPluginScript(MonitoringPlugin):
count_upgradable = len(list_upgradable) count_upgradable = len(list_upgradable)
# Get obsolete config files (dpkg-* or ucf-* under /etc) # Get obsolete config files (dpkg-*, ucf-*, or update-* under /etc)
retcode, stdout, stderr = pvc_common.run_os_command("/usr/bin/find /etc -type f -a \( -name '*.dpkg-*' -o -name '*.ucf-*' \)") retcode, stdout, stderr = pvc_common.run_os_command("/usr/bin/find /etc -type f -a \( -name '*.dpkg-*' -o -name '*.ucf-*' -o -name '*.update-*' \)")
obsolete_conffiles = list() obsolete_conffiles = list()
for conffile_line in stdout.split('\n'): for conffile_line in stdout.split('\n'):