linux OOM (memoria insuficiente) ¿notificación asesina por correo electrónico?

Esta respuesta describes the out of memory killer on Linux.

Is there a way to get notified when the OOM killer has killed something? Email is preferable. One might do this with a watchdog, but I wonder what the easiest and most robust way is.

preguntado el 08 de enero de 11 a las 16:01

2 Respuestas

The "logwatch" program will periodically mail you all log lines it's configured to be interested in.

It can be configured to email you about an OOM (unless it runs out of memory itself).

Email notifications aren't a good substitute for proper monitoring from an external system as a machine which has no free memory will not normally be able to send email.

Also, if your system is important, then email is probably too slow to get a response from Ops (especially out of hours)

Respondido el 09 de enero de 11 a las 18:01

a machine which has no free memory will not normally be able to send email – the process could be killed because it exceeded its own limit of memory (think cgroups) not necessarily because the system as a whole is out of memory. - Piotr Dobrogost

You can read and interpret the kernel log, as syslog records it to /var/log/, and act upon it.

Respondido el 08 de enero de 11 a las 20:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.