Hi Gerald, I run the below command /usr/bin/ssh -l nagios -i /var/lib/nagios/.ssh/id_rsa \ 192.168.1.111 "/usr/lib/nagios/plugins/check_dummy 0" I got below output
root@mgmt-vikee:/usr/lib/nagios/plugins# /usr/bin/ssh -l nagios -i /var/lib/nagios/.ssh/id_rsa 192.168.1.111 "/usr/lib/nagios/plugins/check_dummy 0" ############################################################### # This is a company owned network system. # # Authorized access only! # # Disconnect IMMEDIATELY if you are not an authorized user!!! # # All actions Will be monitored and recorded # ############################################################### Regards, Vikee Kumar Ops Team, Vidder India On 07/02/18, 1:37 PM, "Gerald Vogt" <v...@spamcop.net> wrote: On 07.02.18 09:00, Vikee Kumar wrote: > Hi All, > > I am getting below error while trying to do run check_by_ssh from > icinga-master to client. > > PFA attached Image of scenario what I want to do. > > root@mgmt-vikee:/var/lib/nagios# /usr/lib/nagios/plugins/check_by_ssh -H > 192.168.1.111 -l nagios -i /var/lib/nagios/.ssh/id_rsa -C > "/usr/lib/nagios/plugins/check_dummy 0" > > Remote command execution failed: > ############################################################### > > root@mgmt-vikee:/var/lib/nagios# /usr/lib/nagios/plugins/check_by_ssh -H > 192.168.1.111 -l nagios -i /var/lib/nagios/.ssh/id_rsa -C > "/usr/lib/nagios/plugins/check_dummy 0" -vvv > > Command: /usr/bin/ssh > > Argument 1: -l > > Argument 2: nagios > > Argument 3: -i > > Argument 4: /var/lib/nagios/.ssh/id_rsa > > Argument 5: 192.168.1.111 > > Argument 6: /usr/lib/nagios/plugins/check_dummy 0 Well, run exactly the command it shows you and you should see the error: /usr/bin/ssh -l nagios -i /var/lib/nagios/.ssh/id_rsa \ 192.168.1.111 "/usr/lib/nagios/plugins/check_dummy 0" -Gerald > > Remote command execution failed: > ############################################################### > > Regrads, > > Vikee kumar > > > > _______________________________________________ > icinga-users mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users > _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users