close
Warning:
Can't synchronize with repository "(default)" (/usr/svn/silverfile does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Apr 10, 2009, 11:45:44 PM (14 years ago)
- Author:
-
greg
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v4
|
v5
|
|
5 | 5 | ''This part needs to be done only once'' |
6 | 6 | |
7 | | Create a new user named 'cacti' to run the ssh tunnels |
| 7 | Create a new user on the Cacti server named 'cacti' to run the ssh tunnels |
8 | 8 | {{{ |
9 | | ###create the user and home directory -m = make home directory |
| 9 | ###create the user and home directory. -m = make home directory |
10 | 10 | pw useradd cacti -m |
11 | | ###set the password for cacti |
| 11 | ###set the password for cacti and keep a safe copy. |
12 | 12 | passwd cacti |
13 | 13 | }}} |
… |
… |
|
25 | 25 | Perhaps a perl or python script would be better for this. |
26 | 26 | {{{ |
| 27 | ###Create the file from the cacti user's home directory |
| 28 | vim tunnels.sh |
27 | 29 | ###This should be run from the cacti server logged in as the cacti user. |
28 | 30 | #!/bin/sh |
… |
… |
|
35 | 37 | ###ssh -N -L 16001:127.0.0.1:161 snmp@server2.remotesilverfilebox.com >> /home/cacti/tunnel.log & |
36 | 38 | }}} |
| 39 | Make the file executable |
| 40 | {{{ |
| 41 | chmod +x tunnels.sh |
| 42 | }}} |
| 43 | |
37 | 44 | |
38 | 45 | That's it until we have a remote host to monitor. |