Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Fixes init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
setiseta committed May 31, 2015
1 parent 287f458 commit 9639716
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
22 changes: 4 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,27 @@
Observium
====

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

---
###Forked from
###Originally forked from

Zuhkov <[email protected]>

---
Usage example
===
###Needed directories on host:
- config
- logs
- rrd
- data

```
docker run -d \
-v /hostDir/config:/config \
-v /hostDir/logs:/opt/observium/logs \
-v /hostDir/rrd:/opt/observium/rrd \
-p 80:80 \
-e POLLER=24 \
--name observium \
seti/observium
```
###with custom timezone
```
docker run -d \
-v /hostDir/config:/config \
-v /hostDir/logs:/opt/observium/logs \
-v /hostDir/rrd:/opt/observium/rrd \
-p 80:80 \
-e TZ="America/Chicago" \
-e TZ="Europe/Austria" \
--link observium-db:mysql \
-e POLLER=24 \
--name observium \
seti/observium
Expand Down
10 changes: 10 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

atd

if [ ! -f /data/config ]; then
mkdir /data/config
fi
if [ ! -f /data/rrd ]; then
mkdir /data/rrd
fi
if [ ! -f /data/logs ]; then
mkdir /data/logs
fi

# Check if PHP database config exists. If not, copy in the default config
if [ -f /data/config/config.php ]; then
echo "Using existing PHP database config file."
Expand Down

0 comments on commit 9639716

Please sign in to comment.