Pagememory check is not showing correct output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dLans
Posts: 40
Joined: Tue May 27, 2014 1:54 am

Pagememory check is not showing correct output

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Pagememory check is not showing correct output

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked