Search found 5 matches

by Leivo
Thu May 16, 2013 7:05 am
Forum: Help: Linux/Unix Specific
Topic: Graphing through ssh tunnels for cacti
Replies: 6
Views: 1331

Re: Graphing through ssh tunnels for cacti

Hi Shivaramakrishnan First, yes, your iptables thing will work. I think your host field in Cacti is incorrect. In the host field of Cacti you should have tcp:192.168.0.2 and later on in the page, there is port, there you should have 10000. Second, SSH tunnels. SSH and cacti have nothing to do with e...
by Leivo
Wed May 01, 2013 11:37 pm
Forum: Help: Linux/Unix Specific
Topic: Graphing through ssh tunnels for cacti
Replies: 6
Views: 1331

Re: Graphing through ssh tunnels for cacti

on my way to work I started thinking those tunnels even more. It makes more sense to open the beginning of the tunnel to the local cacti server in which case the command would be su - cacti -c "ssh -f -N -L 10000:192.168.1.2:161 [email protected].168.0.2" so this command run on the cacti server would open a...
by Leivo
Wed May 01, 2013 10:10 pm
Forum: Help: Linux/Unix Specific
Topic: Graphing through ssh tunnels for cacti
Replies: 6
Views: 1331

Re: Graphing through ssh tunnels for cacti

You are right, I misunderstood. Let me explain the original command then. su - cacti -c "ssh -f -N -g -L 192.168.0.2:10000:192.168.1.2:161 [email protected]" The picture on the page gives you the needed information 192.168.0.2 is the gateway server 192.168.1.2 is the target server the connection shoul...
by Leivo
Wed May 01, 2013 12:29 pm
Forum: Help: Linux/Unix Specific
Topic: Graphing through ssh tunnels for cacti
Replies: 6
Views: 1331

Re: Graphing through ssh tunnels for cacti

Hi the command should be ran on your Cacti host. The first IP 192.168.0.2 is not actually needed, you can drop it out and just leave 10000 there, the second IP is your target servers IP, but for that I actually recommend 127.0.0.1:161 if you connect directly to the server you monitor. The final part...
by Leivo
Wed May 01, 2013 12:05 pm
Forum: Informational/HOWTO's
Topic: [HOWTO] Using SSH tunnels to graph a remote Unix server
Replies: 15
Views: 39413

Re: [HOWTO] Using SSH tunnels to graph a remote Unix server

I've been building my monitoring on my router and as I monitor some external servers also I felt that having that SSH pipe opened once and left unmonitored is a bit of problem. I also trimmed the SSH switches towards more direct connection :). I assume that these pipes are opened from the Cacti host...