Ad Widget

Collapse

Zabbix send exact CPU load when trigger activates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • somalan
    Junior Member
    • Oct 2017
    • 2

    #1

    Zabbix send exact CPU load when trigger activates

    Hi,

    I am looking for solution to send exact cpu load when trigger activates. Everything works, I just need Zabbix to send me exact load when triggers activates and action sends email. Any idea?

    Thank you, Radek Pulkrabek
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Add additional condition for system.cpu.load into your trigger expression which will be always true (for example system.cpu.load.last() > -1) and then you can use system.cpu.load item value in the action operation message.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • somalan
      Junior Member
      • Oct 2017
      • 2

      #3
      Hi,

      thanks for your reply. I mannaged to work around this issue by myself with this solution :
      I named trigger like this.

      CPU load {ITEM.LASTVALUE} on {HOST.NAME}

      I works just fine for me.

      Have a nice day, Radek Pulkrabek

      Comment

      • sby
        Member
        • Jan 2017
        • 59

        #4
        Hello,

        I try this also on my zabbix 3.2 i get only a error how can i add this trigger.

        Comment

        • kaspars.mednis
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2017
          • 349

          #5
          I seems you are missing closing bracket } on your trigger expression after second expressions last()

          regards,
          Kaspars

          Comment

          • sby
            Member
            • Jan 2017
            • 59

            #6
            What is wrong in my string:

            Incorrect trigger expression. Check expression part starting from " {Template OS Linux NO SWAP:system.cpu.load.last () }> -1".

            {Template OS Linux NO SWAP:system.cpu.load.last () }> -1

            regards,
            Byron

            Comment

            • kaspars.mednis
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2017
              • 349

              #7
              try removing unneeded spaces

              {Template OS Linux NO SWAP:system.cpu.load.last()}>-1

              regards,
              Kaspars

              Comment

              • sby
                Member
                • Jan 2017
                • 59

                #8
                Thank you: Now i get this.

                Incorrect item key "system.cpu.load" provided for trigger expression on "Template OS Linux NO SWAP".

                Regards,

                Byron

                Comment

                • kaspars.mednis
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2017
                  • 349

                  #9
                  Do you have the item exactly system.cpu.load on this template ?
                  without brackets or any parameters ?

                  There must be an item with key system.cpu.load to evaluate it in trigger expression
                  Template OS Linux NO SWAP:system.cpu.load.last()

                  Comment

                  • sby
                    Member
                    • Jan 2017
                    • 59

                    #10
                    Ah so i have no item setup so i what item do i need to setup.
                    I am very new with item's and triggers.

                    Comment

                    • sby
                      Member
                      • Jan 2017
                      • 59

                      #11
                      I see i have the item's on my zabbix.

                      Comment

                      • kaspars.mednis
                        Senior Member
                        Zabbix Certified Trainer
                        Zabbix Certified SpecialistZabbix Certified Professional
                        • Oct 2017
                        • 349

                        #12
                        Use any of them with all parameters in your expression. Exactly as it typed in item.
                        thats all

                        regards,
                        Kaspars

                        Comment

                        • sby
                          Member
                          • Jan 2017
                          • 59

                          #13
                          Thank you,

                          I try this and again i receive a error.


                          Is maybe 3.4 the problem i have update it to day to 3.4

                          Comment

                          Working...