Ad Widget

Collapse

Method of testing a trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KenvM
    Junior Member
    • Aug 2007
    • 3

    #1

    Method of testing a trigger

    Is there an easy way to test the evaluation of a trigger, beyond waiting for it to respond to the data and activate?

    Maybe some sort of command line tool that returns the results?

    Thanks,

    -Ken
  • oliverm
    Senior Member
    • May 2006
    • 155

    #2
    Yeah, i'd like to see a TEST button by some things, alerts etc.

    Comment

    • CeeEss
      Senior Member
      Zabbix Certified Specialist
      • Nov 2007
      • 103

      #3
      As this is still not present in 1.5, i really hope it will make it into 1.6!

      On a similar note, how can i monitor *successful* trigger evaluation? Made some changes, adding an additional OR'd condition to a couple of tiggers and now i'm not getting the false positives i was previously receiving ... but is the trigger being correctly eval'd? I don't know and i'd hate to find out the hard way.

      Comment

      • nelsonab
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2006
        • 1233

        #4
        I agree, this is becoming a requirement. Evaluating complex triggers is a "royal pain in the arse"(tm).

        Perhaps a "trigger inspector" would be a good idea. A screen which will allow you to see what the values are in the trigger. That would go a ways to help debug.
        RHCE, author of zbxapi
        Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
        Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

        Comment

        • ngarnier
          Junior Member
          • Mar 2008
          • 21

          #5
          You can use zabbix_sender to send the "good" value to your item and so test your trigger.

          Comment

          • CeeEss
            Senior Member
            Zabbix Certified Specialist
            • Nov 2007
            • 103

            #6
            Should have said my triggers are based on SNMP-obtained values, not agentd data. The system in question is also not a UNIX host - it's a hardware device with an SNMP agent in firm/software. Can trigger evaluation be directed to zabbix-server.log in 1.6?

            thanks

            Comment

            • nelsonab
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2006
              • 1233

              #7
              As I understand it the sender will work for that. I haven't been able to get it to work but I'm trying to do some crazy stuff. :-) However it looks like it has the ability to input a value into any key no matter what the source.
              RHCE, author of zbxapi
              Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
              Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

              Comment

              • CeeEss
                Senior Member
                Zabbix Certified Specialist
                • Nov 2007
                • 103

                #8
                ok ...

                How would one construct a pure-SNMP event using zabbix_sender? Feel free to jump in here, Zabbix (or write me).

                -k --key <Key> Specify metric name (key) we want to send

                huh?

                Comment

                Working...