Page 1 of 2
Memory Usage reporting incorrectly
Posted: Fri Jul 13, 2012 11:45 am
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
Re: Memory Usage reporting incorrectly
Posted: Fri Jul 13, 2012 2:05 pm
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
Re: Memory Usage reporting incorrectly
Posted: Wed Aug 15, 2012 2:34 pm
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
Re: Memory Usage reporting incorrectly
Posted: Wed Aug 15, 2012 2:53 pm
by scottwilkerson
what is the exact command you are running?
Re: Memory Usage reporting incorrectly
Posted: Wed Aug 15, 2012 3:49 pm
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
Re: Memory Usage reporting incorrectly
Posted: Wed Aug 15, 2012 4:10 pm
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.
Re: Memory Usage reporting incorrectly
Posted: Wed Aug 15, 2012 4:24 pm
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
Re: Memory Usage reporting incorrectly
Posted: Wed Aug 15, 2012 4:55 pm
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
Re: Memory Usage reporting incorrectly
Posted: Thu Aug 16, 2012 8:27 am
by asurint
That seems to work, responds seem to be doing fine.
Re: Memory Usage reporting incorrectly
Posted: Thu Aug 16, 2012 9:49 am
by scottwilkerson
In the modules section of the NSC.ini do you have
This is required.