Ad Widget

Collapse

zabbix - custom checks?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cbidwell
    Senior Member
    • Aug 2006
    • 127

    #1

    zabbix - custom checks?

    Hi all, I would like to enter a script, not sure if this is a standard zabbix option or if it needs to be created as a custom script, but if one of my zabbix clients goes offline, I'd like to be noted every 5 minutes or so how long that client has been unreachable.

    Also, with regards to CPU %, I get emails as soon as it spikes to a certain percentage. How can I modify this so that I only get an email if it stays spiked for >5 minutes?

    Thanks,
    Chris
  • Tom
    Junior Member
    Zabbix Certified Specialist
    • Nov 2007
    • 13

    #2
    Hi,

    For the CPU spikes you could use the function min() or max().

    {host:system.cpu.load[all,avg1].min(600)}>5

    So it only alerts if the minimum CPU load was higher than 5 for the last 600 seconds.
    You can also define the number of checks instead of seconds by prefixing the parameter with a # like:

    {host:system.cpu.load[all,avg1].min(#10)}>5

    Comment

    • cbidwell
      Senior Member
      • Aug 2006
      • 127

      #3
      Thanks for that info! It's working nicely, however, I have both Linux and BSD systems that I'm monitoring and it doesn't seem to work on the BSD systems. I haven't yet checked to see if it's available for BSD yet...I'm thinking not.



      Thanks again

      Comment

      Working...