First I'd like to say thank you to Henrik and the other Xymon developers for all their hard work on this program.
We are running Xymon 4.3.0 beta 2 client running on HP-UX 11iv3 Itanium with non default (4k) memory page sizes. We discovered a problem with Xymon memory reporting on HP-UX 11iv3 when we increased memory page sizes from 4k to 16k or 64k.
The Xymon program hpux-meminfo located in ~client/bin has incorrect reporting with HP-UX 11iv3 Itanium, for example:
On an HP-UX 11iv3 server with 32GB of memory (with about 15GB free) and 16k memory page size the hpux-meminfo program reports:
Total:8190 #Looks like the included hpux-meminfo grabs the wrong output lines. Free:3328
Here is the complete output of swapinfo -tm:
swapinfo -tm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 81920 0 81920 0% 0 - 1 /dev/vg00/lvol2 reserve - 3110 -3110 memory 97835 51005 46830 52% total 179755 54115 125640 30% - 0 -
Xymon bug id #3134680
Here is a script we created to replace the hpux-meminfo binary that comes with Xymon 4.3.0 beta 2.
#!/usr/bin/ksh
10 DEC 2010 Daniel Grahek
This script properly calculates memory values on HP-UX 11iv3 Itanium
systems #This script replaces the binary hpux-meminfo in client/bin directory. #version 1.0
Distributed under GPL v2 license.
FREE=/usr/sbin/swapinfo |grep ^memory |awk {'print $4'}
FREEREPORT=echo $FREE / 1024 |/usr/bin/bc
TOTAL=/usr/sbin/swapinfo |grep ^memory |awk {'print $2'}
TOTALREPORT=echo $TOTAL / 1024 |/usr/bin/bc
echo Total:$TOTALREPORT
echo Free:$FREEREPORT
The output from this script returns the following on the same system.
Total:32362 Free:14818
NOTICE: This e-mail, including attachments, contains information that may be confidential, protected by the attorney/client or other privileges, or exempt from disclosure under applicable law. Further, this e-mail may contain information that is proprietary and/or constitutes a trade secret. This e-mail, including attachments, constitutes non-public information intended to be conveyed only to the designated recipient of this communication, please be advised that any disclosure, dissemination, distribution, copying, or other use of this communication or any attached document is strictly prohibited. If you have received this communication in error, please notify the sender immediately by reply e-mail and promptly destroy all electronic and printed copies of this communication and attached documents.