Memory Usage reporting incorrectly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
asurint
Posts: 6
Joined: Wed Apr 04, 2012 3:12 pm

Memory Usage reporting incorrectly

Post by asurint »

I am running Nagios XI ver 2011 2.1 as a vm (downloaded virtual appliance from nagios.org). The host OS is cent OS 6.2
I am running nsclient++ 3.9.330 on windows clients.
nagios is reporting memory usage incorrectly (using check_xi_service_nsclient), reporting double the physical ram. It seems to be doing this on 32 and 64 bit hosts. I have been reading on it (not an uncommon problem) and cannot find a solution that will work for us.
I have tried configuring check_nrpe, but have yet to get that working either.

Any advice would be greatly appreciated as our alerting is not accurate at this time.

Thanks in advance,
Mark
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Memory Usage reporting incorrectly

Post by scottwilkerson »

With the check you describe it report ALL memory combined physical and paged.

The resolution to this is to use check_nrpe with NSClient++ checkmem found in this thread.
support.nagios.com/forum/viewtopic.php?f=7&t=5411&p=24099#p24099
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
asurint
Posts: 6
Joined: Wed Apr 04, 2012 3:12 pm

Re: Memory Usage reporting incorrectly

Post by asurint »

I followed the instructions you linked to, but it's still not working. I can test it using the check_nrpe and it says it's fine, but it won't report actual values when they are added to the command. I get the error message CHECK_NRPE: Received 0 Bytes from daemon. Check remote server logs for error messages.

Any help would be appreciated.

Thanks,
Mark
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Memory Usage reporting incorrectly

Post by scottwilkerson »

what is the exact command you are running?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
asurint
Posts: 6
Joined: Wed Apr 04, 2012 3:12 pm

Re: Memory Usage reporting incorrectly

Post by asurint »

I configured a couple using the configuration wizard
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$

Then tried this ussing ssh to connect to the nagios server
/usr/local/nagios/libexec/check_nrpe -H 172.20.31.150 -c check_mem -a '-w 90 -c 98'

I tried different arguments at the end, but they all return the error posted above.

Thanks for your help!
Mark
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Memory Usage reporting incorrectly

Post by lmiltchev »

On your windows machine:

Open the NSC.ini file and make sure you have the following line under [External Alias]:

Code: Select all

alias_mem=checkMem MaxWarn=90% MaxCrit=98% ShowAll=long type=physical
Restart the nsclient++ service.

On your nagios server:

Test the following command in the command line:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <windows_machine_IP> -t 30 -c alias_mem
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
asurint
Posts: 6
Joined: Wed Apr 04, 2012 3:12 pm

Re: Memory Usage reporting incorrectly

Post by asurint »

That line was un commented in the nsc.ini file. I did add the =long after showall and restart the service
When I ran the command from the nagios server I received the same error
Check_nrpe: Received 0 bytes from the daemon

Thanks,
Mark
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Memory Usage reporting incorrectly

Post by yancy »

asurint,

can you verify if check_nrpe is working at all with the following command:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <windows_machine_IP>
Regards,

-Yancy
asurint
Posts: 6
Joined: Wed Apr 04, 2012 3:12 pm

Re: Memory Usage reporting incorrectly

Post by asurint »

That seems to work, responds seem to be doing fine.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Memory Usage reporting incorrectly

Post by scottwilkerson »

In the modules section of the NSC.ini do you have

Code: Select all

CheckExternalScripts.dll
This is required.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked