Linux System Check_Mem output Shows Negative Value
Posted: Thu Feb 09, 2017 9:49 am
We have identified that Redhat OS 7 servers memory usage output getting negative value. Please find the status below.
We are currently using Check_mem script on agent end. In this script calculating Real memory Usage value getting from “free” command (Real memory value is not a Used memory value). Please find the Real Memory Value calculation below.
Real Memory Value= Total Used(573424) - Total Buffer Ram(6716180) - Total Ram Caching(not available, But taking Available value)
Script is getting the wrong value (Available Value)
So We should be modified the script on agent end, to avoid confusion in future we have raised a case with vendor to provide the script for both version( Rhel 6 & 7)
We are currently using Check_mem script on agent end. In this script calculating Real memory Usage value getting from “free” command (Real memory value is not a Used memory value). Please find the Real Memory Value calculation below.
Real Memory Value= Total Used(573424) - Total Buffer Ram(6716180) - Total Ram Caching(not available, But taking Available value)
Script is getting the wrong value (Available Value)
So We should be modified the script on agent end, to avoid confusion in future we have raised a case with vendor to provide the script for both version( Rhel 6 & 7)