NagiosGraph Memory Usage

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

NagiosGraph Memory Usage

Postby peterooney » Mon May 15, 2017 11:26 am

Good afternoon,

I'm currently using NagiosGraph to chart memory usage - however, in one instance, it's showing the maximum usage as the full amount of RAM, both physical (4GB) and virtual (6GB).

Is there any way in which I can monitor just the use of physical memory?

Cheers

Pete
peterooney
 
Posts: 283
Joined: Fri Jul 24, 2015 11:04 am

Re: NagiosGraph Memory Usage

Postby tacolover101 » Mon May 15, 2017 12:19 pm

hi Pete, this really depends on the plugin you're using, as it simply parses the perf data returned by it. i would take a look at the plugin you're using and see if it supports physical only.
User avatar
tacolover101
 
Posts: 326
Joined: Mon Apr 10, 2017 11:55 am

Re: NagiosGraph Memory Usage

Postby tgriep » Mon May 15, 2017 1:11 pm

Thanks @tacolover101 for the help. One more thing to look at is the plugin has an command line option to change the performance data output.
Some plugins have that feature.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 6164
Joined: Thu Oct 30, 2014 9:02 am

Re: NagiosGraph Memory Usage

Postby peterooney » Tue May 16, 2017 11:03 am

At the moment, I'm using check_nt, which combines physical and virtual, so I'm going to have to change to check_nrpe to see just physical, which with 500+ (mostly WIndows) hosts will be a fairly extensive exercise...

I've managed to get my Nagios master to communicate with one remote server by changing its nsclient.ini to a check_nrpe supporting version provided by your good selves that last time I was looking at this issue:
Code: Select all
[root@MyNagiosMaster libexec]# ./check_nrpe -H mytargethost
I (0.4.3.143 2015-04-29) seem to be doing fine...


I have Googled a solution that involves me downloading an additional plugin (check_mem) at http://xmodulo.com/monitor-server-memor ... cutor.html

It's getting late in the day - would I have to install check_mem on each of my remote hosts (and indeed, is this necessarily the best way of resolving my requirement)?

Thanks in advance

Pete
peterooney
 
Posts: 283
Joined: Fri Jul 24, 2015 11:04 am

Re: NagiosGraph Memory Usage

Postby tgriep » Tue May 16, 2017 12:52 pm

You shouldn't have to install a plugin on the Windows systems, the NSClient has a memory command in it so to check the Physocal Memory, you would run this.
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -c CheckMEM -a 'type=physical' MaxWarn=80% MaxCrit=90%
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 6164
Joined: Thu Oct 30, 2014 9:02 am

Re: NagiosGraph Memory Usage

Postby peterooney » Wed May 17, 2017 4:26 am

That's brilliant - thank you! :-)

Here's my final solution, if anyone's interested:
Code: Select all
define command{
command_name check_nrpe_physmem
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckMEM -a MaxWarn=80% MaxCrit=90% ShowAll=long type=physical
}
define service{
    use                  generic-service
    host_name            MN2GAM12099U
    service_description  NRPE Physical Memory Only
    check_command        check_nrpe_physmem
    }

if you change "type=physical" to "type=page", this reflects the TOTAL, rather than the PHYSICAL memory.

The thread can now be closed, and thanks for your assistance

Pete
peterooney
 
Posts: 283
Joined: Fri Jul 24, 2015 11:04 am

Re: NagiosGraph Memory Usage

Postby tmcdonald » Wed May 17, 2017 9:19 am

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Support Lead / Operations Engineer
 
Posts: 8722
Joined: Mon Sep 23, 2013 8:40 am


Return to Nagios Core

Who is online

Users browsing this forum: Bing [Bot] and 9 guests