Compare commits
No commits in common. "779e3ff8d4f3e0c1a4aa6c1254b93ef1a46bf483" and "49a097246d364ea5221658f8394aa62123c6b681" have entirely different histories.
779e3ff8d4
...
49a097246d
5 changed files with 25 additions and 38 deletions
|
@ -1,2 +0,0 @@
|
|||
APT::Periodic::Update-Package-Lists "1";
|
||||
APT::Periodic::Unattended-Upgrade "1";
|
|
@ -1,3 +0,0 @@
|
|||
Unattended-Upgrade::Origins-Pattern {
|
||||
"origin=*";
|
||||
};
|
|
@ -103,27 +103,3 @@ for package, options in node.metadata.get('apt/packages', {}).items():
|
|||
'action:apt_update',
|
||||
},
|
||||
}
|
||||
|
||||
# unattended upgrades
|
||||
#
|
||||
# unattended-upgrades.service: delays shutdown if necessary
|
||||
# apt-daily.timer: performs apt update
|
||||
# apt-daily-upgrade.timer: performs apt upgrade
|
||||
|
||||
files['/etc/apt/apt.conf.d/20auto-upgrades'] = {}
|
||||
files['/etc/apt/apt.conf.d/50unattended-upgrades'] = {}
|
||||
svc_systemd['unattended-upgrades.service'] = {
|
||||
'needs': [
|
||||
'pkg_apt:unattended-upgrades',
|
||||
],
|
||||
}
|
||||
svc_systemd['apt-daily.timer'] = {
|
||||
'needs': [
|
||||
'pkg_apt:unattended-upgrades',
|
||||
],
|
||||
}
|
||||
svc_systemd['apt-daily-upgrade.timer'] = {
|
||||
'needs': [
|
||||
'pkg_apt:unattended-upgrades',
|
||||
],
|
||||
}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
'unattended-upgrades': {},
|
||||
},
|
||||
'packages': {},
|
||||
'sources': set(),
|
||||
},
|
||||
'monitoring': {
|
||||
|
@ -10,16 +8,12 @@ defaults = {
|
|||
'apt upgradable': {
|
||||
'vars.command': '/usr/lib/nagios/plugins/check_apt_upgradable',
|
||||
'vars.sudo': True,
|
||||
'check_interval': '1h',
|
||||
'check_interval': '1d',
|
||||
},
|
||||
'current kernel': {
|
||||
'vars.command': 'ls /boot/vmlinuz-* | sort -V | tail -n 1 | xargs -n1 basename | cut -d "-" -f 2- | grep -q "^$(uname -r)$"',
|
||||
'check_interval': '1h',
|
||||
},
|
||||
'apt reboot-required': {
|
||||
'vars.command': 'ls /var/run/reboot-required 2> /dev/null && exit 1 || exit 0',
|
||||
'check_interval': '1h',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -29,8 +29,30 @@
|
|||
'displayMode': 'hidden',
|
||||
},
|
||||
},
|
||||
'load': {
|
||||
'stacked': False,
|
||||
'queries': {
|
||||
'load': {
|
||||
'filters': {
|
||||
'_measurement': 'system',
|
||||
'_field': [
|
||||
'load1',
|
||||
'load5',
|
||||
'load15',
|
||||
],
|
||||
},
|
||||
'function': 'mean',
|
||||
},
|
||||
},
|
||||
'min': 0,
|
||||
'soft_max': 3,
|
||||
'unit': 'percent',
|
||||
'tooltip': 'multi',
|
||||
'legend': {
|
||||
'displayMode': 'hidden',
|
||||
},
|
||||
},
|
||||
'pressure_stall': {
|
||||
'stacked': True,
|
||||
'queries': {
|
||||
'pressure_stall': {
|
||||
'filters': {
|
||||
|
|
Loading…
Reference in a new issue