~niedbalski/charms/precise/mysql/precise-syncup

« back to all changes in this revision

Viewing changes to hooks/monitors-relation-joined

  • Committer: Marco Ceppi
  • Date: 2014-10-13 17:06:34 UTC
  • Revision ID: marco@ceppi.net-20141013170634-su2dv56rb4g0rlwb
Added work around for NRPE checks

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
. hooks/monitors.common.bash
4
4
echo "'${monitor_user}'@'${remote_addr}'" >> $revoke_todo
5
5
$MYSQL -e "GRANT USAGE ON *.* TO '${monitor_user}'@'${remote_addr}'"
 
6
# Won't be getting the real remote address from NRPE subordinate. Need to have NRPE tell the charm the remote address in the near future
 
7
$MYSQL -e "GRANT USAGE ON *.* TO '${monitor_user}'@'%'"
6
8
 
7
9
relation-set monitors="$(cat monitors.yaml)" target-id=${JUJU_UNIT_NAME//\//-} target-address=$(unit-get private-address)