-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code clean up to help fix relation bugs
- Loading branch information
Nelson Roberts
committed
Apr 12, 2013
1 parent
34b9792
commit 63e2125
Showing
9 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/bin/bash -eux | ||
juju-log "running start hook" | ||
|
||
database=`relation-get database` | ||
|
||
if [ -z "$database" ] ; then | ||
juju-log "database relation not setup skipping service start" | ||
exit 0 | ||
fi | ||
|
||
service apache2 start | ||
su zabbix -c /usr/local/sbin/zabbix_server | ||
su zabbix -c /usr/local/sbin/zabbix_java/startup.sh | ||
|
||
open-port 80/tcp | ||
open-port 10051/tcp | ||
open-port 10051/udp | ||
open-port 10052/tcp | ||
open-port 10052/udp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
hooks/monitoring-relation-joined → hooks/zabbix-relation-joined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
set -eux # -x for verbose logging to juju debug-log | ||
|
||
juju-log "starting hook monitoring-relation-joined" | ||
juju-log "starting hook zabbix-relation-joined" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ maintainer: "Nelson Roberts <[email protected]>" | |
description: | | ||
Installs Zabbix Server | ||
provides: | ||
monitoring: | ||
interface: zabbix-server | ||
zabbix-server: | ||
interface: server | ||
requires: | ||
db: | ||
interface: mysql | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
24 | ||
2 |