Ad Widget

Collapse

Temp sensor tigger issue

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • The-Tech
    Junior Member
    • Jan 2022
    • 29

    #1

    Temp sensor tigger issue

    I recently deployed 10 Rasp Pi in my data closets using DHT 11 to monitor both Temp and humidity which works well for the most part. My challenge is that due to the nature of the DHT11 and 22's I get the occasional false reading and Zabbix will them start sending out alerts. I would like to have the trigger alert after 5 min when the temp or humidity hits my threshold

    I am new to Zabbix so my trigger is simple. I am assuming that I need to change it to a avg ,5m but I am clearly missing something

    I have included screen shots but me basic problem express is as follows:

    Current Problem trigger last(/Hostname/DHT.room.temp,#3)>28 <== here is the temp is greater than 28 degree's send alert


    I tried to change to avg(/SMERTEMP01/[DHT.room.temp,#3],5m)>28 but I get expression errors


    Anyd assistance would be appreciated.





    Attached Files
  • Answer selected by Markku at 23-06-2025, 21:20.
    Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    avg(/Hostname/DHT.room.temp,5m)>28

    Markku

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #2
      avg(/Hostname/DHT.room.temp,5m)>28

      Markku

      Comment

      • The-Tech
        Junior Member
        • Jan 2022
        • 29

        #3
        Great, thanks

        Comment

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

          #4
          The-Tech Just mentioning (again) that #3 in last() works differently from avg(). last(/host/item,#3) means "3rd value from last", not "last three values". avg(/host/item,#3) means "average of last 3 values".

          Comment

          Working...