mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/opsec-blogposts.git
synced 2025-06-08 16:09:33 +00:00
add code blocks
This commit is contained in:
parent
a70be9f6e9
commit
2490348b65
1 changed files with 4 additions and 0 deletions
|
@ -27,16 +27,20 @@ Simple threshold-based alert are reactive by nature, but their automated monitor
|
||||||
|
|
||||||
- Threshold-based: a [SMARTCTL](https://en.wikipedia.org/wiki/Smartctl) alert creating a notification when any hard drive within your infrastructure crosses a pre-failure threshold
|
- Threshold-based: a [SMARTCTL](https://en.wikipedia.org/wiki/Smartctl) alert creating a notification when any hard drive within your infrastructure crosses a pre-failure threshold
|
||||||
|
|
||||||
|
~~~
|
||||||
smartctl_device_attribute{attribute_flags_long=\~".*prefailure.*", attribute_value_type="value"}
|
smartctl_device_attribute{attribute_flags_long=\~".*prefailure.*", attribute_value_type="value"}
|
||||||
<=
|
<=
|
||||||
on (device, attribute_id, instance, attribute_name)
|
on (device, attribute_id, instance, attribute_name)
|
||||||
smartctl_device_attribute{attribute_flags_long=\~".*prefailure.*", attribute_value_type="thresh"}
|
smartctl_device_attribute{attribute_flags_long=\~".*prefailure.*", attribute_value_type="thresh"}
|
||||||
|
~~~
|
||||||
|
|
||||||
- Statistical (anomaly detection): CPU spike or under-use
|
- Statistical (anomaly detection): CPU spike or under-use
|
||||||
|
|
||||||
|
~~~
|
||||||
cpu_percentage_use > (avg_over_time(cpu_percentage_use[5m]) + (3* stddev_over_time(cpu_percentage_use[5m])))
|
cpu_percentage_use > (avg_over_time(cpu_percentage_use[5m]) + (3* stddev_over_time(cpu_percentage_use[5m])))
|
||||||
OR
|
OR
|
||||||
cpu_percentage_use < (avg_over_time(cpu_percentage_use[5m]) - (3* stddev_over_time(cpu_percentage_use[5m])))
|
cpu_percentage_use < (avg_over_time(cpu_percentage_use[5m]) - (3* stddev_over_time(cpu_percentage_use[5m])))
|
||||||
|
~~~
|
||||||
|
|
||||||
## Associated Risks
|
## Associated Risks
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue