Memory Monitoring of Service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Memory Monitoring of Service

Post by bsivavani »

Hi,

In one of production server, one particular service consuming more memory and crashing application.

We would like to monitor the memory usage of particular service and alert if memory reaches beyond 1200MB.

Kindly advice if any plugin or command available to monitor this ?
kyang

Re: Memory Monitoring of Service

Post by kyang »

Looks like this can be done using NSClient++ with check_process

Here's a related forum thread that should answer your question.

https://support.nagios.com/forum/viewto ... 16&t=44423

Let us know if you have any more questions.
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Memory Monitoring of Service

Post by bsivavani »

Hi,

I am able to get the output, but the current output displaying with working set (32.125MB), but I would like to display the memory with Private Working Set (memory showing in task manager 11MB).

[nagios@s930XXXXX ~]$ /usr/local/nagios/libexec/check_nrpe -u -H XXXXX -t 120 -c Check_Process -a process=nscp.exe "detail-syntax=%(exe) ws:%(working_set), handles: %(handles), user time:%(user)s" "top-syntax=%(status): %(problem_list)" "warn=working_set > 5M" "crit=working_set > 10M"
CRITICAL: nscp.exe ws:33685504, handles: 449, user time:22s|'nscp.exe ws_size'=32.125MB;5;10
[nagios@s930XXXXX ~]$

Kindly let me know if it is possible to check against private working set ?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Memory Monitoring of Service

Post by npolovenko »

@bsivavani, You may need to use a custom plugin for that or find one on the Nagios Exchange. Here are two plugins that I've found so far, but there are probably more.
https://exchange.nagios.org/directory/P ... ss/details
https://exchange.nagios.org/directory/P ... ry/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Memory Monitoring of Service

Post by bsivavani »

Thanks for your help. We are able to monitor process memory using plugin memused_process.ps1.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Memory Monitoring of Service

Post by tmcdonald »

Glad to hear it! Are we alright to close this up then?
Former Nagios employee
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Memory Monitoring of Service

Post by bsivavani »

Please close this request.
kyang

Re: Memory Monitoring of Service

Post by kyang »

Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!
Locked