added zabbix-agent install

This commit is contained in:
Bachir Soussi Chiadmi
2018-04-10 21:16:15 +02:00
parent 3f5967b5bb
commit 735faaac3d
13 changed files with 3461 additions and 5 deletions

6
assets/zabbix/apt.conf Normal file
View File

@@ -0,0 +1,6 @@
# Treat security and regular updates differently
# This is just a simulation, that can be run under zabbix user
# Since updating packages lists (apt-get update) requires root user,
# use APT::Periodic or some other functionality for that
UserParameter=apt.security,apt-get -s upgrade | grep -ci ^inst.*security | tr -d '\n'
UserParameter=apt.updates,apt-get -s upgrade | grep -iPc '^Inst((?!security).)*$' | tr -d '\n'