Hi,
I am monitoring a windows server with nsclient++ plugin. I am checking the cpu-load and memory-usage of the windows
server with this plugin. Recently I receive high memory peaks and cpu-load peaks. These error lasts only till the next check, then
it disappears.
The command I use to monitor the server: check_nrpe!-c alias_cpu
nsclient++ config:
alias_cpu = check_cpu "warn=load > 85" "crit=load > 95"
How can I configure nsclient++ to send in the notification message the top 5 processes which generates the load?
(eg. when warn or critical criteria was hit, or continously... )
thanks,
klajosh
nsclient++ help
Re: nsclient++ help
I found this link:
https://exchange.nagios.org/directory/A ... ls/details
but can I achieve the same without the modification of the original plugin?
thanks,
klajosh
https://exchange.nagios.org/directory/A ... ls/details
but can I achieve the same without the modification of the original plugin?
thanks,
klajosh
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: nsclient++ help
I don't think that functionality is built into nsclient++, you'd have to check directly with the developer to find out.
Alternatively though you could run an external script:
http://ss64.com/ps/get-process.html has this as a clear example of what you're trying to do:
Alternatively though you could run an external script:
http://ss64.com/ps/get-process.html has this as a clear example of what you're trying to do:
Get-Process | PowerShell | SS64.com wrote:List the top 5 processes using the most CPU time:
Code: Select all
PS C:> Get-Process | sort CPU | select -last 5
Re: nsclient++ help
thanks, I put together something using this powershell script and the original plugin