Page 1 of 1

nsclient++ help

Posted: Thu May 28, 2015 9:14 am
by klajosh2
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

Re: nsclient++ help

Posted: Thu May 28, 2015 9:18 am
by klajosh2
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

Re: nsclient++ help

Posted: Thu May 28, 2015 9:38 am
by jdalrymple
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:
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

Posted: Thu May 28, 2015 10:18 am
by klajosh2
thanks, I put together something using this powershell script and the original plugin

Re: nsclient++ help

Posted: Thu May 28, 2015 10:20 am
by tmcdonald
Are we all set to close this thread?

Re: nsclient++ help

Posted: Fri May 29, 2015 9:20 am
by klajosh2
yes, we can close