SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
net/zabbix/patches/patch-src_zabbix_agent_cpustat_c
Normal file
21
net/zabbix/patches/patch-src_zabbix_agent_cpustat_c
Normal file
|
@ -0,0 +1,21 @@
|
|||
Add ZBX_CPU_STATE_SPIN to monitor CP_SPIN
|
||||
|
||||
Index: src/zabbix_agent/cpustat.c
|
||||
--- src/zabbix_agent/cpustat.c.orig
|
||||
+++ src/zabbix_agent/cpustat.c
|
||||
@@ -697,6 +697,7 @@ read_again:
|
||||
counter[ZBX_CPU_STATE_NICE] = (zbx_uint64_t)all_states[CP_NICE];
|
||||
counter[ZBX_CPU_STATE_SYSTEM] = (zbx_uint64_t)all_states[CP_SYS];
|
||||
counter[ZBX_CPU_STATE_INTERRUPT] = (zbx_uint64_t)all_states[CP_INTR];
|
||||
+ counter[ZBX_CPU_STATE_SPIN] = (zbx_uint64_t)all_states[CP_SPIN];
|
||||
counter[ZBX_CPU_STATE_IDLE] = (zbx_uint64_t)all_states[CP_IDLE];
|
||||
}
|
||||
else
|
||||
@@ -717,6 +718,7 @@ read_again:
|
||||
counter[ZBX_CPU_STATE_NICE] = (zbx_uint64_t)one_states[CP_NICE];
|
||||
counter[ZBX_CPU_STATE_SYSTEM] = (zbx_uint64_t)one_states[CP_SYS];
|
||||
counter[ZBX_CPU_STATE_INTERRUPT] = (zbx_uint64_t)one_states[CP_INTR];
|
||||
+ counter[ZBX_CPU_STATE_SPIN] = (zbx_uint64_t)one_states[CP_SPIN];
|
||||
counter[ZBX_CPU_STATE_IDLE] = (zbx_uint64_t)one_states[CP_IDLE];
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue