Configure Lemon

Install needed packages

Configure the repository:
/etc/yum.repos.d/swrep_x86_64_slc6.repo 

[swrep_x86_64_slc6]
name=CERN SWrep x86_64_slc6
baseurl=http://swrepsrv.cern.ch/yum/CERN_CC/x86_64_slc6/
gpgcheck=0
enabled=1
includepkgs= lemon-cli lemon-sensor-parse-log lemon-sensor-linux lemon-sensor-ipmi lemon-host-check lemon-agent lemon-sensor-exception lemon-sensor-fio lemon-xml-api 

Install packages :

yum install -y lemon-cli lemon-sensor-parse-log lemon-sensor-linux lemon-agent lemon-sensor-exception lemon-sensor-ipmi lemon-host-check  lemon-sensor-fio lemon-xml-api 

Configure lemon transport

Create file : /etc/lemon/agent/transport/CERN.conf (Copy it from another server e.g : lxsoftXX because of tabs)

TCP
       Server  lemon01.cern.ch
       Port    12509
       NoWarnings
       UseAuth        yes
TCP
       Server  lemon02.cern.ch
       Port    12509
       NoWarnings
       UseAuth        yes
TCP
       Server  lemon07.cern.ch
       Port    12509
       NoWarnings
       UseAuth        yes

Generate lemon certificate

Execute:
openssl genrsa -out private_key.pem 1024 
openssl rsa -in private_key.pem -pubout -out public_key.pem

Copy key on the host /etc/lemon/keys/

cp private_key.pem  /etc/lemon/keys/lemon_rsa_key
cp public_key.pem  /etc/lemon/keys/lemon_rsa_key.pub

Add keys to lemon

We created a repository with Ivan in:
/afs/cern.ch/project/linux/dev/lemon-host-certificates

Copy your publikey in this directory following the naming convention

host.cern.ch-lemon_rsa_key.pub
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2014-01-10 - ThomasOulevey
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LinuxSupport All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback