[Xymon] hpux-meminfo.c patch
henrik at hswn.dk
henrik at hswn.dk
Thu Mar 3 15:00:20 CET 2011
Hi Jason,
On Tue, 22 Feb 2011 08:15:14 -0600, Jason Fredricksen
<jasonajfredricksen at gmail.com> wrote:
> This patch for hpux-meminfo.c may help due to 11iv3 page sizes 4096
,8192
> ,16384 ,65536.
I was sent another solution back in December which replaces the
hpux-meminfo
utility with a bit of shell scripting:
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 original message is
http://lists.xymon.com/archive/2010-December/030100.html
from Earl Flack)
Can you confirm if this shell script works OK for you ?
I would much rather use standard shell-tools than a custom
C program that I have difficulty supporting.
Also, anyone with access to older HP/UX versions ? I would
be most interested to hear if Earl's shell version to get
the memory info works on other HP/UX versions as well.
Regards,
Henrik
More information about the Xymon
mailing list