We have configured Nagios
with check_load
via 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
command) at that time.
Are there any nagios
NRPE
plug-ins for that?
Best Answer
You can do it with event handlers.
First, add an event handler for your Load average definition:
The
processes_snapshot
command is defined incommands.cfg
:And second, write an event handler script (
processes_snapshot.sh
):The command
processes_snapshot
is defined innrpe.cfg
on thexx
host as belows:PS: I haven't tested this config.