Permission Denied to a directory
Posted: Tue Oct 16, 2018 3:16 am
Nagios has alerted that it doesn't have access or permission to a backup directory with a custom python_client plugin that my previous sysadmin has developed.
In $ less /var/log/messages
After rescheduling the next check for pybackup, /var/log/messages shows:
We don't understand how or why it suddenly says it has no permissions to it. We also don't know what user was set for this python plugin.
Using Nagios Core 3.4.4
$ backup-py.cfg
$ commands.cfg
I do not know where else to check for more info. I would appreciate any help or pointers I can get to resolve this. Thanks!
In $ less /var/log/messages
Code: Select all
Oct 16 00:00:00 monitor nagios: CURRENT SERVICE STATE: backup.system.local;PYBACKUP;CRITICAL;HARD;2;"Unknown [Errno 13] Permission denied: /backup/latestCode: Select all
Oct 16 09:57:11 monitor nagios: SERVICE ALERT: backup.system.local;PYBACKUP;WARNING;HARD;2;(null)Using Nagios Core 3.4.4
$ backup-py.cfg
Code: Select all
define service {
service_description PYBACKUP
display_name Python Backup for VMs
use python_client
host_name backup.system.local
}Code: Select all
define command{
command_name check_dummy
command_line $USER1$/check_dummy $ARG1$ $ARG2$
}