No % value reported when calculating memory usage
Posted: Wed Jul 01, 2020 12:47 pm
A Nagios XI 5.4.8 server monitors a CentOS 7 VM that has a Nagios NRPE v3.2.1 agent installed. The Nagios XI server received the memory usage from the Nagios NRPE agent on this VM but the free memory% value was not reported (%). Then a CRITICAL condition was created. It should have reported a 62% usage.
$ /usr/local/nagios/libexec/check_nrpe -H 133.3.148.99 -t 30 -c check_mem -a '-w 20 -c 10 -n'
CRITICAL - 12369 / 19916 MB (%) Free Memory, Used: 7433 MB, Shared: 352 MB, Buffers + Cached: 4183 MB | total=19916MB free=12369MB used=7433MB shared=352MB buffers_and_cached=4183MB
What caused this problem? Thanks!
$ /usr/local/nagios/libexec/check_nrpe -H 133.3.148.99 -t 30 -c check_mem -a '-w 20 -c 10 -n'
CRITICAL - 12369 / 19916 MB (%) Free Memory, Used: 7433 MB, Shared: 352 MB, Buffers + Cached: 4183 MB | total=19916MB free=12369MB used=7433MB shared=352MB buffers_and_cached=4183MB
What caused this problem? Thanks!