Page 1 of 1

Memory Monitoring of Service

Posted: Mon Jan 29, 2018 9:01 am
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 ?

Re: Memory Monitoring of Service

Posted: Mon Jan 29, 2018 11:57 am
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.

Re: Memory Monitoring of Service

Posted: Wed Jan 31, 2018 10:21 am
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 ?

Re: Memory Monitoring of Service

Posted: Wed Jan 31, 2018 2:21 pm
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

Re: Memory Monitoring of Service

Posted: Mon Feb 05, 2018 4:59 am
by bsivavani
Thanks for your help. We are able to monitor process memory using plugin memused_process.ps1.

Re: Memory Monitoring of Service

Posted: Mon Feb 05, 2018 10:59 am
by tmcdonald
Glad to hear it! Are we alright to close this up then?

Re: Memory Monitoring of Service

Posted: Tue Feb 06, 2018 7:08 am
by bsivavani
Please close this request.

Re: Memory Monitoring of Service

Posted: Tue Feb 06, 2018 10:09 am
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!