Skip to content

rachyandco/networklogserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network-Log-Server

Done with <3 by rachyandco at #33C3 with the help of Porcus (will@as2613.net).

Quick install of observium and nagios instances on the same VM. Tested on https://exoscale.ch on a Ubuntu 16.04.

Prepare VM using CloudStack

copy cs-userdata file in the exoscale interface.

Install using docker-compose

git clone https://github.com/rachyandco/networklogserver.git

cd networklogserver

docker-compose up -d

docker exec -it networklogserver_observium_1 bash -c '/opt/observium/discovery.php -u'

Add user to observium:

docker exec -it networklogserver_observium_1 bash -c '/opt/observium/adduser.php ob_admin ob_pass 10'

Access to the web interfaces

Nagios:

http://IP_OF_SERVER:8001

Default Nagios credentials: nagiosadmin:nagios

Observium:

http://IP_OF_SERVER:8000

Default Observium credentials: ob_admin:ob_pass

Add VM to Observium

On the distant VM

This is for reference only. On each VM to be monitored, install snmpd.

sudo apt-get install snmpd

Replace the config file with the one suggested here. You need to edit the IP_OF_OBSERVIUM and the SECRET.

sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
sudo nano /etc/snmp/snmpd.conf

(paste your config)

sudo service snmpd restart

On the Networklogserver VM

Add the distant VM in the host file. Edit /etc/hosts and add:

DISTANT_VM DISTANT_VM_IP

Add the distant VM to observium:

docker exec -it networklogserver_observium_1 bash -c '/opt/observium/add_device.php -p DISTANT_VM SECRET v2c'

Links

http://www.observium.org - Observium project
https://www.nagios.org - Nagios project
https://github.com/henningkessler/observium - Observium Docker image by henningkessler
https://github.com/JasonRivers/Docker-Nagios - Nagios Docker image by JasonRivers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages