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

Result of hostinterface.replacehostinterfaces is null.

XMLWordPrintable

    • Sprint 16
    • 0.5

      In the manual it says that the interface ID will be returned, but null was returned.

      Left is manual, right is execution result.


      Interface replacing is performed normally.

      Interface table before and after API execution.

      mysql> select h.name, i.* from interface i inner join hosts h on h.hostid = i.hostid;
      +---------------+-------------+--------+------+------+-------+---------------+-----+-------+------+
      | name          | interfaceid | hostid | main | type | useip | ip            | dns | port  | bulk |
      +---------------+-------------+--------+------+------+-------+---------------+-----+-------+------+
      | Zabbix server |           1 |  10084 |    1 |    1 |     1 | 127.0.0.1     |     | 10050 |    1 |
      | xxxxxxxxxxxxx |           2 |  10105 |    1 |    1 |     1 | 192.168.xx.xx |     | 10050 |    1 |
      | test          |           4 |  10106 |    1 |    1 |     1 | 127.0.0.1     |     | 10050 |    1 |
      +---------------+-------------+--------+------+------+-------+---------------+-----+-------+------+
      3 rows in set (0.00 sec)
      
      mysql> select h.name, i.* from interface i inner join hosts h on h.hostid = i.hostid;
      +---------------+-------------+--------+------+------+-------+---------------+-----+-------+------+
      | name          | interfaceid | hostid | main | type | useip | ip            | dns | port  | bulk |
      +---------------+-------------+--------+------+------+-------+---------------+-----+-------+------+
      | Zabbix server |           1 |  10084 |    1 |    1 |     1 | 127.0.0.1     |     | 10050 |    1 |
      | xxxxxxxxxxxxx |           2 |  10105 |    1 |    1 |     1 | 192.168.xx.xx |     | 10050 |    1 |
      | test          |           5 |  10106 |    1 |    1 |     1 | 127.0.0.2     |     | 10550 |    1 |
      +---------------+-------------+--------+------+------+-------+---------------+-----+-------+------+
      3 rows in set (0.00 sec)
      
      mysql>
      

            sasha Alexander Vladishev
            kazuo.ito Kazuo Ito
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: