Identity file ~nagios/.ssh/id_rsa not accessible
Posted: Wed May 17, 2017 8:53 am
Hello
I have a check_by_spl plugin that if I run it from the console it gives me ok,
[Nagios @ server libexec] $ ./check_by_ssh -i ~ nagios / .ssh / id_rsa -t 60 -H servermonitor -C '/home/nagios/scripts/check_rac_procs_ora.sh'
Process Rac Oracle: OK
But in the web of nagios gives me the following error.
Status information
Remote command execution failed: Warning: Identity file ~ nagios / .ssh / id_rsa not accessible: No such file or directory.
I do not understand what can be happening if from the console tells me that ok.
I can connect via ssh without asking me for a password, I have shared the public key, I have reviewed the permissions on the directories and the files and they are all well ..
There is something I do not see. please help
Thank you
I have a check_by_spl plugin that if I run it from the console it gives me ok,
[Nagios @ server libexec] $ ./check_by_ssh -i ~ nagios / .ssh / id_rsa -t 60 -H servermonitor -C '/home/nagios/scripts/check_rac_procs_ora.sh'
Process Rac Oracle: OK
But in the web of nagios gives me the following error.
Status information
Remote command execution failed: Warning: Identity file ~ nagios / .ssh / id_rsa not accessible: No such file or directory.
I do not understand what can be happening if from the console tells me that ok.
I can connect via ssh without asking me for a password, I have shared the public key, I have reviewed the permissions on the directories and the files and they are all well ..
There is something I do not see. please help
Thank you