rvojcik / rt-server-client

Server discovery client for RackTables project. Do automatic server discovery and send information to racktables database.
GNU General Public License v3.0
27 stars 8 forks source link
racktables racktables-agent racktables-database

RT-server-client

pipeline

UPDATE:

According to new version 0.3.0 there are few breaking changes. Be aware when upgrading.

CHANGELOG 0.3.0:

Description

This is server discovery script for Racktables project. It discover system, import or update infromation into racktables database

Script support following infromation

For some description, screenshots and examples visit https://www.cypherpunk.cz/automatic-server-audit-for-racktables-project/

Requirements

Required

Optional

Installation

Install it as normal python sw using pip or setup.py.

PIP Install

pip install rt-server-client

Manual Install

git clone https://github.com/rvojcik/rt-server-client
cd ./rt-server-client
sudo python ./setup.py install

Configuration

Configuration file have to be located in /etc/rt-server-client/main.conf with content something like this:

[mysqldb]
user=racktables
password=mysecretpass
db=racktables_db
host=192.168.1.1
port=3306

When you have your configuration file you have to run initialization of the project. It requires number of custom attributes in racktables database. Initialization process check if these attributes are available and map them to correct object types.

Just run

    system-info -d --init

Normaly script ends without any output. If something go wrong it returns some output of the error.

Then you can run the system-info manualy, from crontab or timer.