Ad Widget

Collapse

Error executing script from Web FrontEnd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rxm8028
    Member
    • Apr 2005
    • 45

    #1

    Error executing script from Web FrontEnd

    I am running version 1.6.5. Every since upgrading from 1.4.x, I receive an error message (ERROR: Invalid URL parameters ) when attempting to execute a "script" from the web frontend, such as "/bin/ping -c 5 {HOST.CONN}".

    The URL that shows inthe sctipt's pop-up window looks like "http://zbxwtn01/scripts_exec.php?execute=1&hostid=10360&scriptid=1 "

    These scripts worked fine before the upgrade.
    Any ideas?

    Thanks,

    Ross
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    Try to clear browsers cache.
    Zabbix | ex GUI developer

    Comment

    • rxm8028
      Member
      • Apr 2005
      • 45

      #3
      Sorry, clearing the browser cache, cookies, etc... does not help. Any other ideas?

      Comment

      • sloth101
        Junior Member
        • Mar 2009
        • 9

        #4
        Anything new on this? I am seeing the same behavior and the suggested fix had no affect, problem remains.

        Thanks

        Comment

        • FrankB
          Junior Member
          • Feb 2009
          • 19

          #5
          possible solution

          I've had the same problem since 1.6.4 when i choose a map from the menu and then try to execute a script to ping an item.
          But the script executes fine when i put the same map on a screen and execeute it from there.

          The only difference in the working link was the sid at the end of the url so i changed /include/maps.inc.php line 751 and added the sid
          &sid=".$_REQUEST['sid']

          I don't know if this is correct or has any disadvantages, but an the moment
          it works for me.


          $menus.= "['".$script['name']."',\"javascript: openWinCentered('scripts_exec.php?execute=1&hostid =".$db_element["elementid"]."&scriptid=".$script['scriptid']."&sid=".$_REQUEST['sid']."','".S_TOOLS."',760,540,'titlebar=no, resizable=yes, scrollbars=yes, dialog=no');\", null,{'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}],";

          Comment

          • Aly
            ZABBIX developer
            • May 2007
            • 1126

            #6
            That is problem ZBX-745 and was fixed in 1.6.3
            Zabbix | ex GUI developer

            Comment

            • FrankB
              Junior Member
              • Feb 2009
              • 19

              #7
              Sorry,

              i don't want to bother you,
              but I'm not shure you really fixed the problem because i I have the problem even
              with 1.6.6 and thread opener Ross runs 1.6.5

              Perhaps you can check this again.

              Frank

              Comment

              • Aly
                ZABBIX developer
                • May 2007
                • 1126

                #8
                Already did that.. I can't reproduce this one. Maybe you didn't update some js files?
                Zabbix | ex GUI developer

                Comment

                Working...