Page 1 of 3
check_by_ssh remote command failed @@@@@@@
Posted: Wed Jun 20, 2018 4:10 am
by yellowdog
Hello,
I know this forum is not a CACTI forum, but maybe my problem may be solved by one of you.
I want to graph a counter with cacti, then I wrote a script, when executed manually, the script result is OK.
But when executed by cacti , the returned error is
perl /usr/share/cacti/scripts/check_VLNXDIAP_working_users.pl 128.1.110.206, output: Remote command execution failed: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
It sounds after some research on the net, it's related with a known_host problem, I suppressed my remote server in the known_host file (on my NAGIOS server) and re-populated it but still the same message.
Thanks.
Re: check_by_ssh remote command failed @@@@@@@
Posted: Wed Jun 20, 2018 10:35 am
by scottwilkerson
Can you set the know_host by ssh'ing to the nagios server from the cacti server?
Code: Select all
su nagios
ssh nagios@nagios_server
Re: check_by_ssh remote command failed @@@@@@@
Posted: Thu Jun 21, 2018 3:01 am
by yellowdog
It's already done from my CACTI server wich is the NAGIOS server also.
Re: check_by_ssh remote command failed @@@@@@@
Posted: Thu Jun 21, 2018 8:27 am
by scottwilkerson
yellowdog wrote:It's already done from my CACTI server wich is the NAGIOS server also.
I guess the Cati forum may be a better location for this question because I have no idea what that script is trying to do
Re: check_by_ssh remote command failed @@@@@@@
Posted: Thu Jun 21, 2018 9:56 am
by yellowdog
The script is a very simple script, it's just returning a numeric value (from 0 to 30).
I did already opened a post on the cacti forum but nobody is answering.....
Re: check_by_ssh remote command failed @@@@@@@
Posted: Thu Jun 21, 2018 10:20 am
by scottwilkerson
but it looks like it is trying to execute it on a remote system
I guess maybe I had it wrong before, what I meant was this:
connecting to the machine that I presume that script is trying to connect to.
Re: check_by_ssh remote command failed @@@@@@@
Posted: Tue Jun 26, 2018 3:09 am
by yellowdog
Is it possible that the problem is related to the server versions ?
One server is 6.9 and the other is 5.1 REDHAT Enterprise.
Re: check_by_ssh remote command failed @@@@@@@
Posted: Tue Jun 26, 2018 6:39 am
by scottwilkerson
yellowdog wrote:Is it possible that the problem is related to the server versions ?
One server is 6.9 and the other is 5.1 REDHAT Enterprise.
doubtful. Were you able to do the following?
scottwilkerson wrote:
I guess maybe I had it wrong before, what I meant was this:
connecting to the machine that I presume that script is trying to connect to.
Re: check_by_ssh remote command failed @@@@@@@
Posted: Tue Jun 26, 2018 8:22 am
by yellowdog
Yes
su nagios
ssh
[email protected] works fine.
Re: check_by_ssh remote command failed @@@@@@@
Posted: Tue Jun 26, 2018 8:46 am
by scottwilkerson
Can you share the script?
Code: Select all
/usr/share/cacti/scripts/check_VLNXDIAP_working_users.pl