Author Topic: Scripting from another machine?  (Read 2912 times)

jit

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Scripting from another machine?
« on: January 06, 2010, 19:30:39 »
Do I need to do anything special to run a script on a remote machine (not on the box running QM)? Aside from, of course, using a complete URL to point to the QM server?

I have been trying to use one of the scripts posted here on the forum (qmon.php). I have a user setup ("myremote") in the class ROBOTS and I'm using the correct password, but keep getting a message that the connection was refused.

Thanks.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Scripting from another machine?
« Reply #1 on: January 06, 2010, 21:57:48 »
No - as long as you don't have firewalls and you are using the cotrrect URL and port number to access QM.

jit

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Scripting from another machine?
« Reply #2 on: January 07, 2010, 06:07:58 »
OK. Is the name of the robot user significant? Does it need to be "robot"? Do I need to do anything other than to assign them to the class "ROBOT" (and verify that the ROBOT class includes the "ROBOT" key).

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Scripting from another machine?
« Reply #3 on: January 07, 2010, 09:46:15 »
Robot is a predefined user that allows remote connection (it belongs to class ROBOTS, where it holds the key ROBOT).

Make sure that it's enabled - it ships in the default config, but it has to be turned on manually.