Hi, welcome to LQ!
There's no "best way", there's a lot of choices. The selection of which
will depend on your use-case. One machine, many? Monitoring intervals?
Flexibility? Extensibility? Types of alerts? Will mail suffice if the
process sending the mail dies because of memory exhaustion?
If you want a targeted response, provide more detailed input, please.
Cheers,
Tink
|