diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/Makefile.am | 6 | ||||
-rw-r--r-- | config/nagios.in | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/config/Makefile.am b/config/Makefile.am index b97ba89..9de557b 100644 --- a/config/Makefile.am +++ b/config/Makefile.am @@ -21,8 +21,14 @@ glusternagiosmibs_DATA = \ NAGIOS-ROOT-MIB \ $(NULL) +sudodir = $(sysconfdir)/sudoers.d/ +sudo_DATA = \ + nagios \ + $(NULL) + EXTRA_DIST = \ $(glusternagiosconf_DATA) \ $(glusternagiosdefaultconf_DATA) \ $(glusternagiosmibs_DATA) \ + $(sudo_DATA) \ $(NULL) diff --git a/config/nagios.in b/config/nagios.in new file mode 100644 index 0000000..ce0f0d9 --- /dev/null +++ b/config/nagios.in @@ -0,0 +1,5 @@ +Cmnd_Alias NAGIOS_PATHS = @bindir@/snmptrap, \ + @libdir@/nagios/plugins/gluster/discovery.py + +nagios ALL=(ALL) NOPASSWD: NAGIOS_PATHS +Defaults:nagios !requiretty |