Ad Widget

Collapse

How to check system uptime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • petroj02
    Junior Member
    • Feb 2019
    • 4

    #1

    How to check system uptime

    Hello guys, I am new at zabbix so I would be glad for any help.
    I am trying to figure out how to monitoring uptime on my device via trigger. The way It should work is, that trigger should give me feedback when uptime connection is less then 24 hours.
    So far I have tried something like this, but I am not sure it works properly the way I want to.

    device.sysUpTime.last(#1440)}<24h - 1440 because i read uptime value from device every minute

    Any advance how to do it correctly?

    thanks for help.

  • aigars.kadikis
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2018
    • 208

    #2
    Hello petroj02,

    The uptime metric is just a counter which starts to count seconds from 0 when the device gets restarted. It should work just like
    Code:
    device.sysUpTime.last()}<24h
    or
    Code:
    device.sysUpTime.last()}<86400
    This means the trigger will be in PROBLEM state for the whole first day. And it will get automatically resolved when the second day starts.

    Out of the box in Zabbix, these triggers are labelled as Informative you can check out those already inside templates "Template OS Linux" or "Template OS Windows":
    Code:
    {Template OS Windows:system.uptime.change(0)}<0
    Regards,

    Comment

    Working...