~mark-mims/+junk/ensemble-mysql

« back to all changes in this revision

Viewing changes to hooks/munin-relation-joined

  • Committer: Clint Byrum
  • Date: 2011-05-31 23:16:11 UTC
  • Revision ID: clint@ubuntu.com-20110531231611-42w37u366atgyvj1
adding munin support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
IP=`ifconfig  | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'|head -n 1`
 
3
 
 
4
echo setting ip to $IP
 
5
 
 
6
relation-set ip=$IP