#!/bin/bash
cat <<EOF
# Allow members of group ngs-all-adm and ngs-\$(hostname)-adm to execute any command
%ngs-all-adm@ngs		ALL=(ALL:ALL) ALL
%ngs-$(hostname)-adm@ngs	ALL=(ALL:ALL) ALL
%dl_ngs_users_sudo@chu-lyon.fr	ALL=(ALL:ALL) ALL
Cmnd_Alias ICINGA_PLUGINS = /usr/lib/nagios/plugins/check_disk
%nagios ALL=(ALL:ALL) NOPASSWD:ICINGA_PLUGINS
EOF
