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
Identity file ~nagios/.ssh/id_rsa not accessible
Identity file ~nagios/.ssh/id_rsa not accessible
Last edited by dwhitfield on Thu May 18, 2017 9:05 am, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Identity file ~nagios/.ssh/id_rsa not accessible
Did you use https://assets.nagios.com/downloads/nag ... ng_SSH.pdf to set up your ssh?
What's the output of ll -R /home/nagios/? Please put the output in a code block.
What's the output of ll -R /home/nagios/? Please put the output in a code block.
Re: Identity file ~nagios/.ssh/id_rsa not accessible
Hello again
it's already working
With changing the path of the file with the public key, has worked
/home/nagios/.ssh
I feel the discomfort
Thank you
it's already working
With changing the path of the file with the public key, has worked
/home/nagios/.ssh
I feel the discomfort
Thank you
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Identity file ~nagios/.ssh/id_rsa not accessible
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!