Author Topic: Changed Asterisk IP  (Read 3529 times)

mwood

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
    • View Profile
    • Email
Changed Asterisk IP
« on: August 17, 2009, 03:14:13 »
Running Asterisk and Queuemetrics on two servers. Had to change the Asterisk server's IP address and now Queuemetrics will not display any transactions. Checked for errors  in the log and found this:

Sun Aug 16 12:26:54 2009|Now connecting to DB queuemetrics on
|172.16.1.132 as user qloader with password javadude
E|Sun Aug 16 12:26:54 2009|---ERROR FOUND-- Sun Aug 16 12:26:54
E|2009|Error type: dr Sun Aug 16 12:26:54 2009| Statement:
E|Sun Aug 16 12:26:54 2009|     Error: Host '172.16.7.3' is not allowed to connect to this MySQL server


So now I see it is a permission/priviledge issue so I found this:

Please make sure that the MySQL server will allow connecting from the Asterisk server – this can usually be obtained by running on the database server an SQL statement like:

grant all privileges on queuemetrics.* to 'queuemetrics'@'IP of Asterisk Server' identified by 'javadude';


So is this correct, and if so where do I execute this command? The CLI of the queuemetrics server? Can I just login as root and do this?

Any help would be much appreciated.

M Wood

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Changed Asterisk IP
« Reply #1 on: August 17, 2009, 10:42:32 »
I have a feeling that the IP should be "172.16.1.132" and NOT "|172.16.1.132" - there is a pipe symbol too many there!

mwood

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
    • View Profile
    • Email
Re: Changed Asterisk IP
« Reply #2 on: August 17, 2009, 15:44:12 »
172.16.1.132 is the Queuemetrics Server and 172.16.7.3 is the Asterisk server

mwood

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
    • View Profile
    • Email
Re: Changed Asterisk IP
« Reply #3 on: August 17, 2009, 16:59:51 »
OK ran this:

grant all privileges on queuemetrics.* to 'queuemetrics'@'172.16.7.3'  identified by 'javadude';

And new error is:

Mon Aug 17 07:48:42 2009|Now connecting to DB queuemetrics on 172.16.1.132 as user qloader with password javadude
E|Mon Aug 17 07:48:42 2009|---ERROR FOUND-- Mon Aug 17 07:48:42
E|2009|Error type: dr Mon Aug 17 07:48:42 2009| Statement:
E|Mon Aug 17 07:48:42 2009|     Error: Access denied for user 'qloader'@'172.16.7.3' (using password: YES)
E|Mon Aug 17 07:48:42 2009|Waiting 15s before reattempting to connect
 |Mon Aug 17 07:48:57 2009|Now connecting to DB queuemetrics on 172.16.1.132 as user qloader with password javadude
E|Mon Aug 17 07:48:57 2009|---ERROR FOUND-- Mon Aug 17 07:48:57
E|2009|Error type: dr Mon Aug 17 07:48:57 2009| Statement:
E|Mon Aug 17 07:48:57 2009|     Error: Access denied for user 'qloader'@'172.16.7.3' (using password: YES)
E|Mon Aug 17 07:48:57 2009|Waiting 15s before reattempting to connect.



Thanks

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Changed Asterisk IP
« Reply #4 on: August 18, 2009, 16:31:03 »
Lorenzo told me this issue should be fixed, do you confirm?