can't graph output from shell script running through ssh

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
fering
Posts: 14
Joined: Sun Nov 23, 2008 5:52 am

can't graph output from shell script running through ssh

Post by fering »

Hi,

I am trying to run a shell script that will connect to remote computers via ssh & run a script on them the sample of the output is :
a:10 b:20 c:30
when running localy i can graph this script but when trying remote
i get "NAN" on all values. I guess its a problem with permissions although
when using cacti user (su - cacti) on the cacti server i can manualy run this script & get the results.
Any advice ?

Thanks
valleed
Posts: 13
Joined: Sun Nov 30, 2008 9:46 pm

Post by valleed »

Make sur that the full path to programs (like ssh) are in your scripts. Also, make sur that the user cacti has an updated known_host file.
fering
Posts: 14
Joined: Sun Nov 23, 2008 5:52 am

Found this link

Post by fering »

I was trying to use sudo but insted i found this to be easeier although requiering more work :) adding cacti user to all my servers & allowing ssh

http://forums.cacti.net/about26478.html
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests