Hi -
I've read through the documentation, and some things I found via google, but still no luck running a command on a remote machine via ssh and inserting the data into a graph. Maybe someone will recognize this problem or have a suggestion that solves it.
I have a script that sniffs data streams and outputs 4 variables or so per line. I run it like:
ssh user@host ./script
and it returns the output.
I cannot get the output to load, it leaves this in cacti.log:
WARNING: Result from CMD not valid. Partial Result: U
I can run the poller command line (with the call to the remote machine and script) and it works.
Also, I can insert the output from the script into a file, and that works.
Apache is running as www-data, cacti is installed as me, both accounts can auth over the ssh pipe, I don't think it's an auth issue, but I also don't think it's a timeout issue. (the command takes at least a couple seconds to return)
Any good suggestions on what to try?
TIA
Retrieving data over ssh doesn't work, suggestions?
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Wed Dec 05, 2012 5:31 pm
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Retrieving data over ssh doesn't work, suggestions?
There's some ssh help on either the Scripts and Templates forum or at HowTo's. Remember, that when using an ssh key file, that this is user dependant
R.
R.
Re: Retrieving data over ssh doesn't work, suggestions?
adding
-o LogLevel=quiet -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
to the ssh parameters fixed this issue for me
-o LogLevel=quiet -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
to the ssh parameters fixed this issue for me
Who is online
Users browsing this forum: No registered users and 2 guests