thecamels-zabbix/zabbix_agentd.conf.d/nscd.conf
2014-11-22 22:58:06 +01:00

6 lines
269 B
Plaintext

# Requires
# zabbix ALL=(ALL) NOPASSWD: /usr/sbin/nscd -g
# in /etc/sudoers
UserParameter=nscd[*],sudo /usr/sbin/nscd -g | grep "$1" | awk '{ print $ 1 }'
UserParameter=nscd-hosts[*],sudo /usr/sbin/nscd -g | grep "hosts cache:" -A 22 | grep "$1" | awk '{ print $ 1 }'