Ad Widget

Collapse

Monitoring unit .timer

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Greg94
    Junior Member
    • Nov 2025
    • 2

    #1

    Monitoring unit .timer

    Hi Everyone,

    I have got a general question about creating a proper item and trigger for monitoring e.g certbot.timer which there is Ubuntu system.
    I found a few solution to that, but unfortunately doensn't work.

    I want to monitor service certbot.timer that check this timer is up.

    Have you got any ideas?

    BR,
    Greg
  • Answer selected by Greg94 at 18-12-2025, 10:12.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    • Greg94Greg94 commented
      Today, 14:35
      Ok and what's next? Could you provide me what exactly have item and trigger for it ?
    Oh come on... little reading of docs does not hurt anyone... besides, there is no conditions defined for trigger

    Comment


    • Greg94
      Greg94 commented
      Editing a comment
      Hi,
      Yes, you're right. Thank you.

      Regards
  • Greg94
    Junior Member
    • Nov 2025
    • 2

    #2
    I want to add, I use with Zabbix in version 7.0.21.

    Comment

    • PavelZ
      Senior Member
      • Dec 2024
      • 162

      #3
      If you want to monitor the certbot, wouldn't it be easier to check the end result the certificate expiration time? Zabbix already has a template for this.

      Comment


      • Greg94
        Greg94 commented
        Editing a comment
        Hi,
        No, I want to monitor a service (certbot.timer).
    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4806

      #4


      systemd.unit.info[certbot.timer] (agent2 is required)

      Comment


      • Greg94
        Greg94 commented
        Editing a comment
        Ok and what's next? Could you provide me what exactly have item and trigger for it ?
    • troffasky
      Senior Member
      • Jul 2008
      • 565

      #5
      Doesn't return much useful information unfortunately, presumably this is why it is not part of factory template.

      # zabbix_agent2 -t systemd.unit.info[certbot.timer]
      systemd.unit.info[certbot.timer] [s|active]


      Comment

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

        #6
        Originally posted by troffasky
        Doesn't return much useful information unfortunately, presumably this is why it is not part of factory template.

        # zabbix_agent2 -t systemd.unit.info[certbot.timer]
        systemd.unit.info[certbot.timer] [s|active]

        What do you mean "factory template"? "Linux by agent"? There is no services monitoring at all... and what is useful? Active state should show, that thing is working? No? Wasn't that the main question?
        Even tho... if such timer/service is not present IMHO it should not return "inactive"..
        But you can also use systemd.unit.get.... for some more info...

        Comment

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

          #7
          • Greg94Greg94 commented
            Today, 14:35
            Ok and what's next? Could you provide me what exactly have item and trigger for it ?
          Oh come on... little reading of docs does not hurt anyone... besides, there is no conditions defined for trigger

          Comment


          • Greg94
            Greg94 commented
            Editing a comment
            Hi,
            Yes, you're right. Thank you.

            Regards
        • troffasky
          Senior Member
          • Jul 2008
          • 565

          #8
          Originally posted by cyber

          What do you mean "factory template"? "Linux by agent"? There is no services monitoring at all...
          The official templates shipped with Zabbix. The Systemd template does not reference timers.
          Originally posted by cyber
          and what is useful? Active state should show, that thing is working? No? Wasn't that the main question?
          "Active" is returned when a timer exists and is enabled; more useful would be exit status, did it actually run within the scheduled time range.

          Originally posted by cyber

          Even tho... if such timer/service is not present IMHO it should not return "inactive"..
          Yep :-(​

          Comment

          Working...