@cryptotaxi247 / netdata-1 / commits / 0041eeee3

health: remove ram_in_swap alarm (#10789)

Ilya Mashchenko committed Mar 17, 2021 at 19:40 UTC 0041eeee3a4505a7c8be3d260fb64f041d82ee5c
2 files changed +3 -17
health/health.d/swap.conf
-12
@@ -15,18 +15,6 @@
15 info: the amount of memory swapped in the last 30 minutes, as a percentage of the system RAM
16 to: sysadmin
17
18 - alarm: ram_in_swap
19 - on: system.swap
20 - os: linux
21 - hosts: *
22 - calc: $used * 100 / ( $system.ram.used + $system.ram.cached + $system.ram.free )
23 - units: % of RAM
24 - every: 10s
25 - warn: $this > (($status >= $WARNING) ? (40) : (50))
26 - delay: up 30s down 15m multiplier 1.5 max 1h
27 - info: the swap memory used, as a percentage of the system RAM
28 - to: sysadmin
29 -
18 alarm: used_swap
19 on: system.swap
20 os: linux freebsd
web/api/exporters/shell/README.md
+3 -5
@@ -38,14 +38,12 @@ echo ${NETDATA_SYSTEM_CPU_VISIBLETOTAL}
38
39 # what about alarms?
40 set | grep "^NETDATA_ALARM_SYSTEM_SWAP_"
41 -NETDATA_ALARM_SYSTEM_SWAP_RAM_IN_SWAP_STATUS=CRITICAL
42 -NETDATA_ALARM_SYSTEM_SWAP_RAM_IN_SWAP_VALUE=53
41 NETDATA_ALARM_SYSTEM_SWAP_USED_SWAP_STATUS=CLEAR
42 NETDATA_ALARM_SYSTEM_SWAP_USED_SWAP_VALUE=51
43
46 -# let's get the current status of the alarm 'ram in swap'
47 -echo ${NETDATA_ALARM_SYSTEM_SWAP_RAM_IN_SWAP_STATUS}
48 -CRITICAL
44 +# let's get the current status of the alarm 'used swap'
45 +echo ${NETDATA_ALARM_SYSTEM_SWAP_USED_SWAP_STATUS}
46 +CLEAR
47
48 # is it fast?
49 time curl -s 'http://localhost:19999/api/v1/allmetrics' >/dev/null