pmp-check-file-privs does not throw the proper error on dir permissions
Bug #1024001 reported by
Rolf
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Monitoring Plugins |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If nagios user does not have access to dir, error is not handled properly:
while read datadir; do
FILES="$(find "${datadir}" \! -group "${OPT_UNIX_GROUP}" -o \! -user "${OPT_
if [ "${FILES}" ]; then
WRONG=1
fi
NOTE="OK all files/directories have correct ownership."
done < "${DATADIRS}"
test:
$ find "/mysql/data" ! -group "mysql" -o ! -user "mysql" || echo "fail"
/mysql/data/ibdata1
/mysql/
/mysql/
find: /mysql/data/somedb: Permission denied
find: /mysql/
fail
Solution:
Instead of existing set crit/warn.
Related branches
tags: | added: nagios |
Changed in percona-monitoring-plugins: | |
status: | New → In Progress |
milestone: | none → 1.0.3 |
importance: | Undecided → Medium |
summary: |
- pmp-check-file-privs does not throw crit/warn on dir permissions + pmp-check-file-privs does not throw the proper error on dir permissions |
Changed in percona-monitoring-plugins: | |
status: | In Progress → Fix Committed |
Changed in percona-monitoring-plugins: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Sorry, should have read:
Instead of existing exit, set crit/warn.