Public | Automated Build

Last pushed: 2 years ago
Short Description
Observium CE 0.14.11 with embedded MariaDB (MySQL) Database
Full Description


Dockerfile for Observium with embedded MariaDB (MySQL) Database

Observium is an autodiscovering network monitoring platform supporting a wide range of hardware platforms and operating systems




Build from docker file:

git clone
cd paperwork
docker build -t zuhkov/observium .

You can also obtain it via:

docker pull zuhkov/observium


Create your Observium config directory (which will contain both the properties file and the database) and then directories for the logs and RRDs and then launch with the following:

docker run -d -v /your-config-location:/config -v /path-to-logs:/opt/observium/logs -v /path-to-rrds:/opt/observium/rrd -p 8668:8668 zuhkov/observium

To set the timezone for Observium, pass in a valid value as an environment variable:

docker run -d -v /your-config-location:/config -v /path-to-logs:/opt/observium/logs -v /path-to-rrds:/opt/observium/rrd -e TZ="America/Chicago" -p 8668:8668 zuhkov/observium

If you do not specify a timezone, the timezone will be set to UTC.

Browse to http://your-host-ip:8668 and login with user and password observium


Observium Community is an open source project and is copyright Observium Limited

This docker image is built upon the baseimage made by phusion

Docker Pull Command
Source Repository

Comments (11)
3 months ago

Same error:
MySQL Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

That because:
Jun 20 13:11:08 c268743fb9f9 mysqld_safe[17699]: 170620 13:11:08 [Note] /usr/sbin/mysqld (mysqld 5.5.56-MariaDB-1~trusty) starting as process 17698 ...
Jun 20 13:11:08 c268743fb9f9 mysqld_safe[17699]: 170620 13:11:08 [ERROR] mysqld: File '/var/log/mysql/mariadb-bin.index' not found (Errcode: 13)
Jun 20 13:11:08 c268743fb9f9 mysqld_safe[17699]: 170620 13:11:08 [ERROR] Aborting
Jun 20 13:11:08 c268743fb9f9 mysqld_safe[17699]:
Jun 20 13:11:08 c268743fb9f9 mysqld_safe[17699]: 170620 13:11:08 [Note] /usr/sbin/mysqld: Shutdown complete


root@c268743fb9f9:~# ls -la /var/log/mysql/mariadb-bin.index
-rw-rw---- 1 mysql adm 170 Mar 10 2015 /var/log/mysql/mariadb-bin.index

Any idea?

a year ago

Had same issue and did same as lauriebuxton42. Everything is working now with exception of the Autodiscovery, Polling with CRON.

Keep getting errors though with the CRON not running due PAM audit errors...

a year ago

Just started running this in unRAID. So far only issue is that I can't specify an IP address as the host name of a new device. It says the hostname can not be resolved. Have worked around it by adding hosts to Docker with --add-host=hostname:ipaddress

a year ago

@lauriebuxton42 : Thank you for your workaround. I also use the 'default' dbMaria server from Synology Disk Station.

The is something that obvisously changed since you provided your solution.
This command seems to be deprecated:
php /includes/update/update.php
Users using the latest version of Observium should use:
./discovery.php -u

There is a remark about "Old observium editions"

2 years ago

scrub my comment about the poller not being setup as a cron job, it polls ever 5 mins.

2 years ago

regarding the MySQL Error: Can't connect to local MySQL error on Synology, I found that the local MariaDb wasn't running properly.

As I already had MariaDb running on the Synology I created a new Database 'observium' on the Synology using phpmyadmin, then I edited the config file on the docker container here

#vi /opt/observium/config.php

to use the MySQL db on Synology itself (ie not Localhost).


cd /opt/observium

php /includes/update/update.php

to setup the database... and then

./adduser.php admin <password> 10

to create a user account.

note, it seems this docker image doesn't have the cron job to poll the network periodically so this needs to be added as well.

I used this install guide to reverse engineer this issues

2 years ago


I have the same issue as raphistoley, file '/var/log/mysql/mariadb-bin.~rec~' not found. I am trying to install the docker on a Synology server.

Appreciate if anyone can give us som help.

Kind Regards,

2 years ago

Same error:
MySQL Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

And in the log:
Observium mysqld: 151015 9:00:04 [ERROR] mysqld: File '/var/log/mysql/mariadb-bin.~rec~' not found (Errcode: 13)
I tried to do a chmod 777 on '/var/log/mysql/' with no success
Any idea??


2 years ago

For anybody having the same problem, shutting the container down and restarting it appears to have resolved the issue for me.

2 years ago

I hae a device I can poll with (authenticated) snmpwalk from the Observium server. Observium is installed, running, and has successfully registered the device; however, Observium just reports that the device is not yet discovered, and not yet polled. In the docker logs, there's a series of:

Jul 2 09:15:01 0b486a273149 CRON[1284]: System error

Any way I can find out why the cron job in the container is failing?


--- SER