Ad Widget

Collapse

Simple Zabcon Example

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pugop
    Junior Member
    • May 2010
    • 5

    #1

    Simple Zabcon Example

    I need some help with a simple zabcon command to change an item status to '0' (active). The couple of zabcon examples I've found seem to have the ability to do this but they are so complicated that I'm having a hard time just replicating that item.update() api call.

    I have the hostid and item id so I think it should be as easy as something like:

    +>item.update("22172", 0)

    Any guidance/direction would be appreciated. Thanks.
  • pugop
    Junior Member
    • May 2010
    • 5

    #2
    Nelsonab was able to answer my question. Turned out to be pretty easy. Here is what works for me:

    +>raw api item.update itemid=22182 status=0

    Comment

    Working...