Ad Widget

Collapse

How to custom alarm information?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nathan
    Member
    • Sep 2020
    • 32

    #1

    How to custom alarm information?

    Hello everyone,
    please tell me how to add the configuration items of the HostMetadata configuration item on the agent side to the alarm information through the alarm information?
    REALLY NEED TO HELP!
    Thanks for everyone
    Attached Files
    Last edited by Nathan; 11-01-2021, 09:56.
  • Nathan
    Member
    • Sep 2020
    • 32

    #2
    Yep,you are right
    And I knew it from manual, so what should I do? How to get a value from agent? No Hostname item

    Comment

    • Nathan
      Member
      • Sep 2020
      • 32

      #3
      thank you very much for your help
      The current situation is that I want to set a value on the agent side. This value may be very long. This value is a string of strings automatically generated by the script when installing the agent, and I want to quote this string in the alarm message. what should I do?
      It should be noted that the monitoring adopts active monitoring method. I imagined using macros or sending parameters to the server, but these are not good methods.
      thanks again

      Comment

      • Nathan
        Member
        • Sep 2020
        • 32

        #4
        Thank you so much, I solved the problem through asset management
        If you can, please remind me of the last question:
        Please go to this post: https://www.zabbix.com/forum/zabbix-...itor-the-same- mounted-disk
        Thank you again for your selfless help

        Comment

        • sherfyjane
          Junior Member
          • Jan 2021
          • 2

          #5
          Originally posted by cyber
          You can use in Trigger text values of items, what you use for trigger expression. Get the value from file into item and use it with your expression. Something trivial, that is always true and won't affect rest of the expression. strlen>0 or whatever...then you can use {ITEM.VALUEx} in alarm text. Not too manageable way, if you want to do it for everything and globally... Adding it to each and every trigger is just pain...
          If you send out notification with actions, then you could get this data into host inventory (read from file and populate inventory field) and use {INVENTORY.*} tags in forwarded event. In that case trigger itself wont have info but forwarded thing has.
          ya it's gone work with the asset management. Well i used to get the same issue but got resolved the trigger expression.

          Regards
          sherfy

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4807

            #6
            Do I get this correctly, you want to use things from Metadata in alarms generated by host?

            "Host metadata is used only at host autoregistration process (active agent)."
            So... You can do autoreg operations based on this data, but there is no option to use it directly in any alarms.

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4807

              #7
              You can use in Trigger text values of items, what you use for trigger expression. Get the value from file into item and use it with your expression. Something trivial, that is always true and won't affect rest of the expression. strlen>0 or whatever...then you can use {ITEM.VALUEx} in alarm text. Not too manageable way, if you want to do it for everything and globally... Adding it to each and every trigger is just pain...
              If you send out notification with actions, then you could get this data into host inventory (read from file and populate inventory field) and use {INVENTORY.*} tags in forwarded event. In that case trigger itself wont have info but forwarded thing has.

              Comment

              Working...