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.
copy cs-userdata file in the exoscale interface.
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'
Nagios:
http://IP_OF_SERVER:8001
Default Nagios credentials: nagiosadmin:nagios
Observium:
http://IP_OF_SERVER:8000
Default Observium credentials: ob_admin:ob_pass
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
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'
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