check_by_ssh bash script

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
ammu440
Posts: 9
Joined: Fri Sep 09, 2022 9:24 am

check_by_ssh bash script

Post 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
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: check_by_ssh bash script

Post by gormank »

There's a troubleshooting nrpe document in the documentation pages. You might want to read it.
cdevidal
Posts: 7
Joined: Wed Sep 14, 2022 11:12 pm

Re: check_by_ssh bash script

Post by cdevidal »

Does the script work on the remote side?
ammu440
Posts: 9
Joined: Fri Sep 09, 2022 9:24 am

Re: check_by_ssh bash script

Post by ammu440 »

script does work on remote side.
cdevidal
Posts: 7
Joined: Wed Sep 14, 2022 11:12 pm

Re: check_by_ssh bash script

Post by cdevidal »

Can you execute other scripts with check_by_ssh?
Post Reply