Ad Widget

Collapse

Actions: operation - force item update, is possible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jpka
    Junior Member
    • Sep 2013
    • 24

    #1

    Actions: operation - force item update, is possible?

    Hi!
    I currently see only two 'Operation type' for Action, these are Send message, and Remote command. But i need to force some SNMP item update immediately as Action fires. And not only update (push to database), but also correspond process it, triggers checks, etc.
    It is possible to do currently?
    Looks like https://support.zabbix.com/browse/ZBXNEXT-416 , at least in part of '5. item check update (before scheduled time)...', still not implemented, so i can't use 'remote commands' to do item force.
    Thanks!
  • jpka
    Junior Member
    • Sep 2013
    • 24

    #2
    Hi!
    Is the object item.update from API ( https://www.zabbix.com/documentation...ce/item/update ) should update item value, or update item properties? Thanks.

    Comment

    • jpka
      Junior Member
      • Sep 2013
      • 24

      #3
      Hi!
      I am sorry for bumping my post.
      Looks like still no standard solutions.
      I still need to solve that, and i have as much time and other resources as need. I also have (weak) programming skills. But i need a suggestion or hint where to begin to implement that (i mean, idea about how and where start to modify source code). Sure, it is need to modify both server and php frontend, and i ready for it...
      Thank you so much.

      Comment

      • Colttt
        Senior Member
        Zabbix Certified Specialist
        • Mar 2009
        • 878

        #4
        maybe something like this:
        Debian-User

        Sorry for my bad english

        Comment

        • jpka
          Junior Member
          • Sep 2013
          • 24

          #5
          Hi!
          Thank you for suggestion. I study this information carefully. Unfortunately, code examples too few and bare, can't ever imagine what i can do with it, but i will still try to use...
          What is more interesting is Stefan Krüger's comment about
          Code:
          zabbix_get --insert-db $HOSTNAME -k $KEY
          But it is not work for me, sadly. First of all, there is no --insert-db key. But more problem is that documentation says this utility is for agent. But i do not nave agents. I have only server and SNMP device(s). So i cant imagine which options i can pass to that command. Blind trial-and-error tests gives ZBX_NOTSUPPORTED at best case.
          So other hints and ideas would be great. :-)
          What i need is immediately refresh SNMP item when action fires, push to database and process it as usually occurs at standard timed polling of item.
          Thanks!

          Comment

          • Colttt
            Senior Member
            Zabbix Certified Specialist
            • Mar 2009
            • 878

            #6
            thats me

            my english is not the best, sorry if you misunderstand that..

            i mean zabbix-programer cann add this feature in the future..

            another idea, if you can code in php you can add something like this:
            a refreshnow button, that runs a program (snmpget ?) you will recive a value and put this value via zabbix api in zabbix, after this easy way ( ) you have a force-item function..
            Debian-User

            Sorry for my bad english

            Comment

            • jpka
              Junior Member
              • Sep 2013
              • 24

              #7
              Hi! I can program in php a little (mostly copypasting). But i can't use button in user interface, because i need all in automatic mode... I try to use Zabbix API for my task, but only i found is object item.update, it looks not suitable for me, this was in question in my post #2 at this thread, and it still unanswered.
              I dive into source code and ensure that my task is far not easy and fast to solve in native way for someone, except the case when someone is Zabbix developer :-)
              Still searching for another hints...

              Comment

              • db100
                Member
                • Feb 2023
                • 61

                #8
                is it possible to trigger an item update from the http API, similarly to how that currently happens at the GUI level ?

                cheers

                Comment

                Working...