diff --git a/Makefile b/Makefile index 4854a0c..908c5cd 100644 --- a/Makefile +++ b/Makefile @@ -2,3 +2,4 @@ default: install: install -o root -g root -m 0755 check_lvm_thinpools /usr/lib/nagios/plugins/ + install -o root -g root -m 0600 check_lvm_thinpools-sudoers.d /etc/sudoers.d/check_lvm_thinpools diff --git a/check_lvm_thinpools-sudoers.d b/check_lvm_thinpools-sudoers.d new file mode 100644 index 0000000..fa2b231 --- /dev/null +++ b/check_lvm_thinpools-sudoers.d @@ -0,0 +1 @@ +nagios ALL = (root) NOPASSWD: /usr/lib/nagios/plugins/check_lvm_thinpools