Memory Usage reporting incorrectly
Memory Usage reporting incorrectly
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
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
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
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
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
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
what is the exact command you are running?
Re: Memory Usage reporting incorrectly
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
$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
On your windows machine:
Open the NSC.ini file and make sure you have the following line under [External Alias]:
Restart the nsclient++ service.
On your nagios server:
Test the following command in the command line:
Hope this helps.
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=physicalOn 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_memBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Memory Usage reporting incorrectly
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
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
asurint,
can you verify if check_nrpe is working at all with the following command:
Regards,
-Yancy
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>-Yancy
Re: Memory Usage reporting incorrectly
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
In the modules section of the NSC.ini do you have
This is required.
Code: Select all
CheckExternalScripts.dll