Ad Widget

Collapse

Possible API bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lorenzo Alfieri
    Junior Member
    • Nov 2014
    • 7

    #1

    Possible API bug

    Hi all,

    I am developing something prety big for zabbix to monitor bandwidth of an IT from nearly nothing.

    Actually it work great for zyxel routeur and cisco ASA, but i got a strage bug with the API.

    I use external script to create item in zabbix from the api, and the bug is for the custom multiplier value.

    If i create an item with "multiplier" value set to 8, it don't work and the custom multiplier field in zabbix is disable. But if i set it to 1 (whitch is useless i know) it work in zabbix, if i go to the item and look at the multiplier field, it is enabled.

    So i was wondering if its a bug for zabbix 3.0 or if its just I who fucked up my zabbix somehow only for that field. What ever i will try to fix it by doing an item.update request after the item.create one.
  • Lorenzo Alfieri
    Junior Member
    • Nov 2014
    • 7

    #2
    Hi again all, its solved.

    In fact no bug there, its just that the way API handle it is a bit strange.

    THere is 2 field for custom multiplier :

    - "multiplier" who said if we set ON custom multiplier (on the frontend its just the check for custom multiplier) who can be set to 0 or 1.

    - "formula" : the number for custom multiplier, i was thinking it was to do formula item but not.

    So if you want to use the API and create item with multiplier, first set multiplier field to 1 and then wirte the real multiplier value in the formula field.

    I hope it will help some like me who were confused.

    Comment

    Working...