check_by_ssh remote command failed @@@@@@@

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.
yellowdog
Posts: 20
Joined: Mon Dec 02, 2013 7:22 am

check_by_ssh remote command failed @@@@@@@

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_by_ssh remote command failed @@@@@@@

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
yellowdog
Posts: 20
Joined: Mon Dec 02, 2013 7:22 am

Re: check_by_ssh remote command failed @@@@@@@

Post by yellowdog »

It's already done from my CACTI server wich is the NAGIOS server also.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_by_ssh remote command failed @@@@@@@

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
yellowdog
Posts: 20
Joined: Mon Dec 02, 2013 7:22 am

Re: check_by_ssh remote command failed @@@@@@@

Post 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.....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_by_ssh remote command failed @@@@@@@

Post 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:

Code: Select all

su nagios
ssh nagios@128.1.110.206
connecting to the machine that I presume that script is trying to connect to.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
yellowdog
Posts: 20
Joined: Mon Dec 02, 2013 7:22 am

Re: check_by_ssh remote command failed @@@@@@@

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_by_ssh remote command failed @@@@@@@

Post 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:

Code: Select all

su nagios
ssh nagios@128.1.110.206
connecting to the machine that I presume that script is trying to connect to.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
yellowdog
Posts: 20
Joined: Mon Dec 02, 2013 7:22 am

Re: check_by_ssh remote command failed @@@@@@@

Post by yellowdog »

Yes
su nagios
ssh nagios@128.1.110.206 works fine.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_by_ssh remote command failed @@@@@@@

Post by scottwilkerson »

Can you share the script?

Code: Select all

/usr/share/cacti/scripts/check_VLNXDIAP_working_users.pl
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked