matteocorti / nagios_plugins

18 stars 7 forks source link

Don't report "OK" on permission errors #79

Closed matteocorti closed 9 years ago

matteocorti commented 9 years ago

Original reporter: marti@juffo.org

Currently when check_dir finds a directory it can't access, it skips it and reports an OK status. When I run it in verbose mode, this is what I get:

skipping /srv/pg_root/main84/base/pgsql_tmp: Permission denied
CHECK_DIR OK

A monitoring script should NEVER report "OK" status when it failed to do the check. Always err on the side of caution.

matteocorti commented 9 years ago

Original reporter: matteo@corti.li

Hi,

the plugin is in a bad shape (since it is a long time that I don't use it anymore). I'll fix both issues in the next days. Many thanks for the report!

Matteo

matteocorti commented 9 years ago

Original reporter: matteo@corti.li

Fixed in r1253. Not yet ready for release but works (can be checked out from subversion)