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.

Changes between Version 11 and Version 12 of administration/cacti


Ignore:
Timestamp:
May 8, 2009, 9:45:04 PM (13 years ago)
Author:
greg
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • administration/cacti

    v11 v12  
    88{{{
    99###create the user and home directory. -m = make home directory
    10 pw useradd cacti -m
     10adduser cactitunnel
    1111###set the password for cacti and keep a safe copy.
    12 passwd cacti
     12passwd cactitunnel
    1313}}}
    1414
     
    3636### Each additional SilverFile box will get an entry like this one. The tunnel port number will
    3737###increase by one and the box address will be unique.
    38 ssh -N -L 16000:127.0.0.1:161 snmp@server1.remotesilverfilebox.com >> /home/cacti/tunnel.log &
     38ssh -N -L 16000:127.0.0.1:161 snmptunnel@sf001.silverfilecorp.com >> /home/cactitunnel/tunnel.log &
    3939###Example of next remote host
    40 ###ssh -N -L 16001:127.0.0.1:161 snmp@server2.remotesilverfilebox.com >> /home/cacti/tunnel.log &
     40###ssh -N -L 16001:127.0.0.1:161 snmptunnel@sf001.silverfilecorp.com >> /home/cactitunnel/tunnel.log &
    4141}}}
    4242
     
    5050
    5151== Remote Host setup ==
    52 Setup snmp and a no-login user to transfer the data to the Cacti server
     52Setup snmp and a user to transfer the data to the Cacti server
    5353
    5454Install snmp and some snmp utilities
     
    6767}}}
    6868Change (or comment out and add a new line) the line starting with com2sec so it reads:
    69   'com2sec readonly default public' (where public is the name of our community string)
     69  'com2sec readonly default littlebigbear' (where littlebigbear is the name of our community string)
    7070And add the following line to switch the port from upd to tcp
    7171   'agentaddress tcp:161'
     
    8484{{{
    8585###add a regular user w/login for now. We'll remove login-ability later
    86 adduser snmp
     86adduser snmptunnel
    8787###Give snmp a password for now. write it down for later.
    88 passwd snmp
     88passwd snmptunnel
    8989}}}
    9090That's all on the remote client for now.
     
    9797###This will connect to the remote host, create the ~/.ssh directory on the remote host and create then write
    9898###the public rsa key to the file ~/.ssh/authorized_keys.
    99 cat ~/.ssh/id_rsa.pub | ssh snmp@krs.bit-box.com 'mkdir .ssh && cat >>.ssh/authorized_keys'
     99cat ~/.ssh/id_rsa.pub | ssh snmptunnel@sf001.silverfilecorp.com 'mkdir .ssh && cat >>.ssh/authorized_keys'
    100100}}}
    101101
     
    122122Hostname: tcp:127.0.0.1
    123123Host Template: ucd/net SNMP Host
    124 SNMP Community: public
     124SNMP Community: littlebigbear
    125125SNMP Version: Version 2
    126126SNMP Port: 16000