Re: [icinga-users] Remote command execution failed

2018-02-07 Thread Vikee Kumar
Thanks Gerald for your help and support. I will look into this what you have suggest. Regards, Vikee Kumar On 07/02/18, 2:43 PM, "icinga-users on behalf of Gerald Vogt" wrote: So you need to fix this. I would guess you have no correct shell set for the nagios account o

Re: [icinga-users] Remote command execution failed

2018-02-07 Thread Gerald Vogt
So you need to fix this. I would guess you have no correct shell set for the nagios account or you have configured something else to block ssh shell access to your nagios account. -Gerald On 07.02.18 09:53, Vikee Kumar wrote: Gerald, Yes, you are right connection disconnect immediately. Auth

Re: [icinga-users] Remote command execution failed

2018-02-07 Thread Vikee Kumar
Gerald, Yes, you are right connection disconnect immediately. Auth.log on remote machine 192.168.1.111 Feb 6 18:28:57 ob-vikee sshd[10931]: Accepted publickey for nagios from 192.168.1.110 port 50496 ssh2: RSA 68:24:0a:9f:55:7c:3d:b1:29:92:6a:d7:b7:5d:bd:d1 Feb 6 18:28:57 ob-vikee sshd[1093

Re: [icinga-users] Remote command execution failed

2018-02-07 Thread Gerald Vogt
On 07.02.18 09:44, Vikee Kumar wrote: I am able to successfully authenticate over ssh. But obviously you don't get a shell with that account: Output root@mgmt-vikee:~# ssh -i /var/lib/nagios/.ssh/id_rsa nagios@192.168.1.111 -v OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading config

Re: [icinga-users] Remote command execution failed

2018-02-07 Thread Vikee Kumar
Gerald, I am able to successfully authenticate over ssh. Output root@mgmt-vikee:~# ssh -i /var/lib/nagios/.ssh/id_rsa nagios@192.168.1.111 -v OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options fo

Re: [icinga-users] Remote command execution failed

2018-02-07 Thread Gerald Vogt
On 07.02.18 09:12, Vikee Kumar wrote: 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 /va

Re: [icinga-users] Remote command execution failed

2018-02-07 Thread Vikee Kumar
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

Re: [icinga-users] Remote command execution failed

2018-02-07 Thread Gerald Vogt
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 /v