We have configured nagios with check_load NRPE plugin to monitor server load. It reports when load is high, but does not have option to take a snapshot top processes ( like top commmand) at that time.
Any good nagios NRPE plug-ins for that ?
You can do it with event handlers.
First, add an event handler for your Load average definition:
And second, write an event handler script (
PS: I haven't tested this config.
Here's what I did to get a process list snapshot directly in the notification emails, based on the idea by @quanta. It may contain paths specific to the way Nagios is installed on Debian/Ubuntu machines:
I haven't tried this with NRPE.