Memory values doubled
- GreatWolfResorts
- Posts: 48
- Joined: Tue Mar 15, 2011 11:12 am
- Location: Madison, WI
- Contact:
Memory values doubled
I just noticed this issue today while adding a few additional hosts to our Nagios XI system. It appears every single memory service check for all of our hosts show double the value of total memory as well as free/used memory. For example:
Memory Usage Ok 2h 54m 12s 1/5 07/21/2011 17:45:19 Memory usage: total:49127.68 Mb - used: 2053.91 Mb (4%) - free: 47073.77 Mb (96%)
This machine only has 24GB memory installed, with 1GB used.
System Details:
Linux Distribution: CentOS
Platform: Virtual
Version: Nagios XI 2011R1.5
Let me know any and all additional information you require. Thanks!
- Dan
Memory Usage Ok 2h 54m 12s 1/5 07/21/2011 17:45:19 Memory usage: total:49127.68 Mb - used: 2053.91 Mb (4%) - free: 47073.77 Mb (96%)
This machine only has 24GB memory installed, with 1GB used.
System Details:
Linux Distribution: CentOS
Platform: Virtual
Version: Nagios XI 2011R1.5
Let me know any and all additional information you require. Thanks!
- Dan
Nagios XI 5.2.5 | CentOS6.3 x86_64 | Virtual Instance on VMware vSphere 6
Re: Memory values doubled
Dan,
Are you using the same method of monitoring for all these systems, for example, are you using solely NRPE, NSClient++ or SNMP? Or is a mix of both?
Are you using the same method of monitoring for all these systems, for example, are you using solely NRPE, NSClient++ or SNMP? Or is a mix of both?
Nicholas Scott
Former Nagios employee
Former Nagios employee
- GreatWolfResorts
- Posts: 48
- Joined: Tue Mar 15, 2011 11:12 am
- Location: Madison, WI
- Contact:
Re: Memory values doubled
We're using NSClient++ version 0.3.8 (32 & 64 bit versions) to pull the data. That's pretty consistent across the board. I don't believe we're using SNMP or NRPE for any hosts at this time, at least with the memory checks.
check_xi_service_nsclient!MEMUSE!-w 90 -c 95
check_xi_service_nsclient!MEMUSE!-w 90 -c 95
Nagios XI 5.2.5 | CentOS6.3 x86_64 | Virtual Instance on VMware vSphere 6
Re: Memory values doubled
We tested the NSClient++ version 0.3.9 and were able to recreate the "Memory values doubled" problem on our test box. We will be looking into this issue and will be posting a bug report if necessary.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Memory values doubled
Can you post the command definition and the service definition where you're getting this error. There are two types of memory checks for windows, physical and page file usage. Not sure if that's the issue here or not.
- GreatWolfResorts
- Posts: 48
- Joined: Tue Mar 15, 2011 11:12 am
- Location: Madison, WI
- Contact:
Re: Memory values doubled
Command Definition: $USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
Service Definition: check_xi_service_nsclient!******!MEMUSE!-w 95 -c 100!!!!!
We're using password protection with the nsclient so I removed the actual password being used and replaced with a series of asterisks.
Service Definition: check_xi_service_nsclient!******!MEMUSE!-w 95 -c 100!!!!!
We're using password protection with the nsclient so I removed the actual password being used and replaced with a series of asterisks.
Nagios XI 5.2.5 | CentOS6.3 x86_64 | Virtual Instance on VMware vSphere 6
Re: Memory values doubled
It seems like this is a Nsclient++ issue. Even if we posted it on our tracker we wouldn't be able to fix it. You can probably check out the Nsclient++ forums.
I found a couple of posts, mentioning of the same (or similar) problems:
http://www.nsclient.org/nscp/discussion/topic/452#-1
http://www.nsclient.org/nscp/discussion/topic/295#-1
I found a couple of posts, mentioning of the same (or similar) problems:
http://www.nsclient.org/nscp/discussion/topic/452#-1
http://www.nsclient.org/nscp/discussion/topic/295#-1
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Memory values doubled
BTW, you may look into Monitoring Windows With WMI as an alternative. You will not have the "memory values doubled" problem. Check it out:
http://library.nagios.com/library/produ ... ent-for-xi
http://library.nagios.com/library/produ ... s-with-wmi
If you decide to go this route, make sure you have perl DateTime module installed on your Nagios server.
http://library.nagios.com/library/produ ... ent-for-xi
http://library.nagios.com/library/produ ... s-with-wmi
If you decide to go this route, make sure you have perl DateTime module installed on your Nagios server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
- GreatWolfResorts
- Posts: 48
- Joined: Tue Mar 15, 2011 11:12 am
- Location: Madison, WI
- Contact:
Re: Memory values doubled
Thanks for the info! I configured WMI to work with our NagiosXI setup, and it appears to do the trick. Just to update for those reading this post in the future, there are a couple options we have moving forward with this issue. One was the WMI method mentioned earlier. The second is the use of the NRPE protocol. I essentially created the following custom command:
check_xi_service_nrpe:
$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$ -a MaxWarn=$ARG2$% MaxCrit=$ARG3$% $ARG4$ $ARG5$
$ARG4$ = "type=physical"
Note: You will need to enable some NRPE commands in the nsc.ini file on the remote device. Specifically: allow_arguments=1
Alternatively, a full understanding of the check_nt MEMUSE command helps when reviewing the values returned. Windows refers to the sum of memory and swap files, that is, the entire available virtual memory. Windows regularly swaps program and data code from the main memory, even when it still has spare reserves. In this respect the load of the entire virual memory in Windows is the more important parameter to observe over simply physical or swap.
So in the end, the values returned weren't necessarily a bug in NagiosXI or nsclient++, but rather a view of the virtual memory of the machine.
Hope this helps!
check_xi_service_nrpe:
$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$ -a MaxWarn=$ARG2$% MaxCrit=$ARG3$% $ARG4$ $ARG5$
$ARG4$ = "type=physical"
Note: You will need to enable some NRPE commands in the nsc.ini file on the remote device. Specifically: allow_arguments=1
Alternatively, a full understanding of the check_nt MEMUSE command helps when reviewing the values returned. Windows refers to the sum of memory and swap files, that is, the entire available virtual memory. Windows regularly swaps program and data code from the main memory, even when it still has spare reserves. In this respect the load of the entire virual memory in Windows is the more important parameter to observe over simply physical or swap.
So in the end, the values returned weren't necessarily a bug in NagiosXI or nsclient++, but rather a view of the virtual memory of the machine.
Hope this helps!
Nagios XI 5.2.5 | CentOS6.3 x86_64 | Virtual Instance on VMware vSphere 6
Re: Memory values doubled
Thanks for your explanation on this! I posted your solution to our wiki so we can reference it again : )
http://support.nagios.com/wiki/index.ph ... es_Doubled
http://support.nagios.com/wiki/index.ph ... es_Doubled