Page 1 of 1

Pagememory check is not showing correct output

Posted: Tue Sep 02, 2014 7:51 am
by dLans
Goodday everyone,

System information:

NagiosXI 2014R1.4
Red Hat Enterprise Linux Server release 6.5 (Santiago), 64-bit virtualised in Hyper-V 2008 R2.
Manual installation of XI

Either my pagememory check has stopped working a long time ago or I'm misinterpreting the information below. I was working on a server with relatively low disk space on the C:\ drive. I noticed that the pagefile took up 24GB from the 50GB that the C:\ has to offer. I double checked the system properties and found that the pagefile has a initial size and maximum size of 24GB. So the above information is just expected. However the below output suggest that the page memory I have is 48GB and I'm still in the safe zone (Server has 24GB page size and a fixed 24GB through Hyper-V as RAM).

Code: Select all

 ./check_nrpe -H ***.***.***.*** -c CheckMEM -a MaxWarn=80 MaxCrit=90 ShowAll type=page
CRITICAL: page file: Total: 48G - Used: 37.8G (78%) - Free: 10.2G (22%) > critical|'page file %'=78%;99;99 'page file'=40631877632B;80;90;0;51537231872
After realising I didn't add the '%' I ran the check again:

Code: Select all

 ./check_nrpe -H ***.***.***.*** -c CheckMEM -a MaxWarn=80% MaxCrit=90% ShowAll type=page
OK: page file: 37.8G|'page file %'=78%;80;90 'page file'=37.817G;38.398;43.198;0;47.998
Information regarding memory:
Page: min = 24 max = 24
Physical: min = 24 max = 24
Current usage of the physical memory according to Windows: 21.6 GB (90%). With an usage of 37.8 according to Nagios the only conclusion I can draw here is that my actual page size usage is 37.8 - 21.6 = 16.2GB out of 24GB. Still green, but not the 78% the system is trying to make me believe. If the usage was really 78% I would have a pagefile usage of 18.72GB (24/100 * 78 = 18.72). BUT if you consider the total memory usge of 48GB versus the 37.8GB in use then yes the 78% is correct.

Can anyone assist me in getting my correct pagememory reads? If you see any errors, in the command I enter or my calculations please correct me.

Thanks!

Kind Regards,
Dennis

Re: Pagememory check is not showing correct output

Posted: Tue Sep 02, 2014 4:52 pm
by Box293
I came across these issues some time ago ... it annoyed me that much I decided to write a plugin for it.

http://exchange.nagios.org/directory/Pl ... le/details

This plugin returns values not percentages, so it makes things very clear.

Let me know if this solves your woes.