Update supervision.md
This commit is contained in:
parent
a539b88a4d
commit
b9572b3821
|
@ -15,44 +15,6 @@ On obtient un ticket à noter dans l'issue. Il sera redemandé plus tard.
|
|||
|
||||
sudo apt install icinga2 monitoring-plugins monitoring-plugins-contrib
|
||||
|
||||
## Modifier la configuration de la sonde de mémoire vive (pour corriger un bug)
|
||||
|
||||
<details>
|
||||
<summary>/usr/share/icinga2/include/plugins-contrib.d/operating-system.conf</summary>
|
||||
|
||||
object CheckCommand "mem" {
|
||||
command = [ PluginContribDir + "/check_memory" ]
|
||||
|
||||
arguments = {
|
||||
"-u" = {
|
||||
set_if = "$mem_used$"
|
||||
description = "Check USED memory"
|
||||
}
|
||||
"-f" = {
|
||||
set_if = "$mem_free$"
|
||||
description = "Check FREE memory"
|
||||
}
|
||||
"-C" = {
|
||||
set_if = "$mem_cache$"
|
||||
description = "Count OS caches as FREE memory"
|
||||
}
|
||||
"-w" = {
|
||||
value = "$mem_warning$"
|
||||
description = "Percent free/used when to warn"
|
||||
}
|
||||
"-c" = {
|
||||
value = "$mem_critical$"
|
||||
description = "Percent free/used when critical"
|
||||
}
|
||||
}
|
||||
|
||||
vars.mem_used = false
|
||||
vars.mem_free = false
|
||||
vars.mem_cache = false
|
||||
}
|
||||
|
||||
</details>
|
||||
|
||||
## Connecter notre agent au serveur de supervision
|
||||
|
||||
sudo icinga2 node wizard
|
||||
|
|
Loading…
Reference in New Issue