Skip to content

Commit

Permalink
bug fix zabbix config
Browse files Browse the repository at this point in the history
  • Loading branch information
time-palominodb committed Sep 6, 2012
1 parent 93c644a commit 0c8bb7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Expand Up @@ -7,8 +7,8 @@
# master/slaves configuration assuming you have 8 database
# hosts on 10.31.41.22[1-8]

# Common to all clusters
# ======================
# Common to All Cluster Types
# ===========================

# Alerting/Trending -----
[alertmaster]
Expand Down Expand Up @@ -56,9 +56,14 @@ repl_user=repl
repl_password=CHANGEME_palominoReplPassword


# Administrativa
# ==============

# All PalominoClusterNodes -----
[palominoclusternodes:children]
alertmaster
alertnodes
trendmaster
trendnodes
mhamanager
mysqlmasters
Expand Down
Expand Up @@ -47,11 +47,11 @@
# dbconfig.php has username/password
# $DB["USER"] = $mysql_Zabbix_user
- name: give zabbix db username
action: lineinfile name=/etc/zabbix/dbconfig.php regexp=^$DB["USER"] line='$DB["USER"] = "$mysql_Zabbix_user"'
action: lineinfile name=/etc/zabbix/dbconfig.php regexp='^\$DB\[\"USER\"\]' line='$DB["USER"] = "$mysql_Zabbix_user";'

# $DB["PASSWORD"] = $mysql_Zabbix_password
- name: give zabbix db password
action: lineinfile name=/etc/zabbix/dbconfig.php regexp=^$DB["PASSWORD"] line='$DB["PASSWORD"] = "$mysql_Zabbix_password"'
action: lineinfile name=/etc/zabbix/dbconfig.php regexp='^\$DB\[\"PASSWORD\"\]' line='$DB["PASSWORD"] = "$mysql_Zabbix_password";'


# install Zabbix agents across the monitored cluster
Expand Down

0 comments on commit 0c8bb7d

Please sign in to comment.