Skip to content

smmir-cent/Centom

Repository files navigation

Centom

Getting Started

Prerequisites

sudo apt-get update
  • net-snmp developed based on net-snmp C library
sudo apt-get install libsnmp-dev snmp-mibs-downloader
  • redis used for monitoring infos
sudo apt-get install redis-server 
  • clang-format
sudo apt-get install clang-format-9
  • Agent
sudo apt-get install snmpd
cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
net-snmp-create-v3-user -ro -A STrP@SSWRD -a SHA -X STr0ngP@SSWRD -x AES snmpadmin
https://www.sysadmin.md/snmpv3-users-cheatsheet.html

Executing program

git clone https://github.com/smmir-cent/Centom.git
mkdir build ; cd build 
cmake .. ; make -j4
## test:
centom_engine [-walk | -get] [ip] [OIDs]

Executing Backend

git clone https://github.com/smmir-cent/Centom.git
cd backend
python3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt
sqlite3 project/db.sqlite
CREATE TABLE user (
	id INTEGER PRIMARY KEY,
	email TEXT NOT NULL UNIQUE,
	user_role TEXT NOT NULL,
	password TEXT NOT NULL
);
CREATE TABLE network (
	name TEXT PRIMARY KEY,
	subnet TEXT NOT NULL,
	agents TEXT NOT NULL,
	info TEXT NOT NULL
);
INSERT INTO user (id,email,password,user_role)
VALUES (0,"superAdmin@gmail.com","08c1e89c0590b66c452d7370540b2dc6cf8be5c381a18f6ae5de234069ff79e2","superAdmin");
python3 -m project.__init__