nsclient++ help

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
klajosh2
Posts: 38
Joined: Thu Jan 16, 2014 5:22 am

nsclient++ help

Post 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
klajosh2
Posts: 38
Joined: Thu Jan 16, 2014 5:22 am

Re: nsclient++ help

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: nsclient++ help

Post 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
klajosh2
Posts: 38
Joined: Thu Jan 16, 2014 5:22 am

Re: nsclient++ help

Post by klajosh2 »

thanks, I put together something using this powershell script and the original plugin
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nsclient++ help

Post by tmcdonald »

Are we all set to close this thread?
Former Nagios employee
klajosh2
Posts: 38
Joined: Thu Jan 16, 2014 5:22 am

Re: nsclient++ help

Post by klajosh2 »

yes, we can close
Locked