Page 1 of 1

check_by_ssh bash script

Posted: Fri Sep 16, 2022 1:59 am
by ammu440
Hi all, Looking forward to your suggestions
/usr/lib/nagios/plugins/check_by_ssh -C /usr/lib/nagions/plugins/check_scrip.sh -i /home/.ssh/id_rsa -H hostip -l icinga -E 5
UNKNOWN - check_by_ssh: Remote command '/usr/lib/nagions/plugins/check_script.sh' returned status 127

Re: check_by_ssh bash script

Posted: Fri Sep 16, 2022 2:09 pm
by gormank
There's a troubleshooting nrpe document in the documentation pages. You might want to read it.

Re: check_by_ssh bash script

Posted: Fri Sep 16, 2022 4:00 pm
by cdevidal
Does the script work on the remote side?

Re: check_by_ssh bash script

Posted: Tue Sep 20, 2022 5:17 am
by ammu440
script does work on remote side.

Re: check_by_ssh bash script

Posted: Tue Sep 20, 2022 8:20 pm
by cdevidal
Can you execute other scripts with check_by_ssh?