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