1
0
Fork 0
forked from infra/ansible

Zabbix: Update base template to allow sundries01 to be more flexible on CPU usage alerts

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
Greg Sutcliffe 2025-10-27 11:08:49 +00:00
commit 368c6c9b51
Signed by: gwmngilfen
SSH key fingerprint: SHA256:dNHcz65ApR68w2TkCIAXDBdt4oNL62Fyx48U7dXWuk0
2 changed files with 7 additions and 3 deletions

View file

@ -16,7 +16,8 @@ virt_install_command: "{{ virt_install_command_one_nic }}"
vmhost: vmhost-x86-03.rdu3.fedoraproject.org
volgroup: /dev/vg_guests
zabbix_macros:
CPU.UTIL.TIME: 45m
# 90% of the 250000 factor between the 10Mb/s Zabbix thinks
# it has, and the 25Gb/s the vmhost actually has
'IF.UTIL.MAX:"tun0"': 225000
LOAD_AVG_PER_CPU.MAX.TIME: 30m
LOAD_AVG_PER_CPU.MAX.TIME: 45m

View file

@ -235,9 +235,9 @@ zabbix_export:
value: cpu
triggers:
- uuid: e299778a6fcc4805bd5806f3b2ffe1c2
expression: 'min(/Linux by Zabbix agent active/system.cpu.util,5m)>{$CPU.UTIL.CRIT}'
expression: 'min(/Linux by Zabbix agent active/system.cpu.util,{$CPU.UTIL.TIME})>{$CPU.UTIL.CRIT}'
name: 'Linux: High CPU utilization'
event_name: 'Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)'
event_name: 'Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for {$CPU.UTIL.TIME})'
opdata: 'Current utilization: {ITEM.LASTVALUE1}'
priority: WARNING
description: 'CPU utilization is too high. The system might be slow to respond.'
@ -1588,6 +1588,9 @@ zabbix_export:
- macro: '{$CPU.UTIL.CRIT}'
value: '90'
description: 'Critical threshold of CPU utilization expressed in %.'
- macro: '{$CPU.UTIL.TIME}'
value: 5m
description: 'Time before warning of critical threshold of CPU utilization'
- macro: '{$IF.ERRORS.WARN}'
value: '2'
description: 'Warning threshold of error packet rate. Can be used with interface name as context.'