Add test to verify /etc/nagios/ perms

This commit is contained in:
Gregory Colpart 2009-07-13 12:38:47 +02:00
parent 358da207c6
commit ec8c09d80d
2 changed files with 5 additions and 0 deletions

View file

@ -20,3 +20,4 @@ IS_SSHALLOWUSERS=1
IS_TMOUTPROFILE=1
IS_ALERT5BOOT=1
IS_ALERT5MINIFW=1
IS_NRPEPERMS=1

View file

@ -91,3 +91,7 @@ if [ "$IS_ALERT5MINIFW" = 1 ]; then
grep ^/etc/init.d/minifirewall /etc/rc2.d/S99alert5 > /dev/null || echo 'IS_ALERT5MINIFW FAILED!'
fi
if [ "$IS_NRPEPERMS" = 1 ]; then
ls -ld /etc/nagios | grep drwxr-x--- > /dev/null || echo 'IS_NRPEPERMS FAILED!'
fi