Ad Widget

Collapse

Is the ray (JSON) discovery rule results stored in the database?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cdslaughter
    Member
    • Jun 2018
    • 69

    #1

    Is the ray (JSON) discovery rule results stored in the database?

    I have need to do additional post processing of discovery results after a discover rule has been run.
    I need to use the results of a discovery rule to drive a script on the zabbix server. Does anyone know if the results of a discovery rule are stored in the database after they have been processed?

    I am looking at the zabbix source code to see if I can find the portion that collects and processes discovery rules to see if I can find this answer there, but I have not had any lock locating that section of code..

    If you know if the discovery rules results are stored in the database, could you let me know what table/tables it might be in?

    Carl
    Last edited by cdslaughter; 12-02-2019, 22:24.
  • cdslaughter
    Member
    • Jun 2018
    • 69

    #2
    In looking at the database for the discovery rule, I can see that it is of type 4. Other items that are type for are stored in the history_text table in the database. From what I can tell, the discovery results are not stored here, I was hoping they were somewhere else that I was missing.

    Carl

    Comment

    • Semiadmin
      Senior Member
      • Oct 2014
      • 1625

      #3
      Hi, Carl.
      There aren't any LLD results in a database. But if you need to save an LLD JSON, you may create text item with the same LLD key. In this case, there will be no LLD filters, but there will be a possibility for preprocessing. If you need both LLD and item on the host you have to slightly change an item key.

      Comment

      • cdslaughter
        Member
        • Jun 2018
        • 69

        #4
        Originally posted by Semiadmin
        Hi, Carl.
        There aren't any LLD results in a database. But if you need to save an LLD JSON, you may create text item with the same LLD key. In this case, there will be no LLD filters, but there will be a possibility for preprocessing. If you need both LLD and item on the host you have to slightly change an item key.
        Thank you for the response. I had come to the same conclusion. I has to create an alias for the vfs.fs.discovery on all my hosts so that I could leave my existing discovery rule running and still have the new one..

        I am hoping that perhaps they at some point offer additional post processing of discovery results via something like a custom script.. I am trying to create individual macros on each host, seting their individual name based on the "vfs.fs.discovery" results. Right now I am running a script when I get the results of the "vfs.fs.discovery" alias.

        Carl

        Comment

        Working...