In the last post I described how to create a custom memory monitor using a Script Monitor.  The Script Monitor, while functional, may not be desirable as the "Value" returned does not fit into default Threshold/Alert configurations.  Which basically means the monitor can run, but cannot be Alerted upon.

Instead, by editing RedHatEnterpriseLinux.config, located on the SiS host (E:\SiteScope\templates.os dir), we can define the command being executed to determine the REAL "Physical memory used %" for RHEL systems.

Solution:

  • Open the RedHatEnterpriseLinux.config file, locate the following:

#
id=physicalMemory
command=/usr/bin/free -b
total=2
free=4
matchLine=Mem:
#

  • Replace that with the following:

#
id=physicalMemory
command=echo `free | grep - | awk '{ print $4 }'`" "`free | grep Mem
|awk '{ print $2 }'`
total=2
free=1
#

  • Restart SiteScope Server

This monitor will now show the correct Physical memory used % for RHEL systems.