Ad Widget

Collapse

Website certificate by Zabbix agent 2 - New Item

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • grefabu
    Member
    • Jul 2019
    • 33

    #1

    Website certificate by Zabbix agent 2 - New Item

    Hi,

    I want to create an new Item to the template Website certificate by Zabbix agent 2:

    Days until expire

    The Item should calculate the days until the Certificates expire, I want to use it on the honeycomb Dashboard for coloring the buttons over an treshold.

    Bye

    Gregor
  • Answer selected by grefabu at 13-12-2024, 14:43.
    Brambo
    Senior Member
    • Jul 2023
    • 245

    Code:
    (last(//cert.not_after) - now()) / 86400
    In a calculated item should do the trick.

    Comment

    • Brambo
      Senior Member
      • Jul 2023
      • 245

      #2
      Code:
      (last(//cert.not_after) - now()) / 86400
      In a calculated item should do the trick.

      Comment

      • grefabu
        Member
        • Jul 2019
        • 33

        #3
        Originally posted by Brambo
        Code:
        (last(//cert.not_after) - now()) / 86400
        In a calculated item should do the trick.
        Thank you, it could so easy when you know what to do,...

        Comment

        • grefabu
          Member
          • Jul 2019
          • 33

          #4
          Hi,

          sorry for the late reply:
          I use the Template 'Website certificate by Zabbix agent 2'
          I Add a calculate Item with the given formula:
          Click image for larger version

Name:	grafik.png
Views:	125
Size:	48.9 KB
ID:	496724

          Then I Create a dashboard with honey combs:
          Click image for larger version

Name:	grafik.png
Views:	71
Size:	32.5 KB
ID:	496725

          and this advanced Settings:
          Click image for larger version

Name:	grafik.png
Views:	81
Size:	33.0 KB
ID:	496726

          Now I've an nice coloured Dashbord ;-)

          Comment

          Working...