~shawx/mysql-mmm/agent_relay_log

« back to all changes in this revision

Viewing changes to bin/agent/clear_ip

  • Committer: Pascal Hofmann
  • Date: 2010-03-09 11:22:37 UTC
  • Revision ID: mail@pascalhofmann.de-20100309112237-ljbjtez0lcscvv30
Allow running multiple agents on the same host (bug #525719)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
use MMM::Agent::Helpers::Actions;
7
7
 
8
8
# Check arguments
9
 
if (scalar(@ARGV) != 2) {
10
 
        print "Usage: $0 <interface> <ip>\n\n";
 
9
if (scalar(@ARGV) != 3) {
 
10
        print "Usage: $0 <config_file> <interface> <ip>\n\n";
11
11
        exit(1);
12
12
}
13
13
 
14
14
# Fetch arguments
 
15
my $config_file = shift;
15
16
my $if = shift;
16
17
my $ip = shift;
17
18