Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-8644

Issue while creating macro_IP using API method usermacro.create

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • None
    • 2.2.2
    • API (A)
    • GNU/Linux

      I am passing below to create value under macros for one server.

      $json = {
      jsonrpc=> '2.0',
      method => 'usermacro.create',
      params =>
      {
      hostid => '17750',
      macro => '{$MY_IP}',
      value => "$interface_ip"
      },
      auth => "$authID",
      id => 1,
      };

      am getting the below error. The macro value is not getting updated.
      $VAR1 = {
      'jsonrpc' => '2.0',
      'error' =>

      { 'data' => 'No permissions to referred object or it does not exist!', 'message' => 'Application error.', 'code' => -32500 }

      ,
      'id' => 1
      };

      I have the superadmin user permission to my user for zabbix and i can read the macros but while creating or updating macro am getting above error.

      HOW DO I FIX THIS ISSUE.

      URGENT. PLEASE SOMEONE HELP.

            Unassigned Unassigned
            surekha surekha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: