[Xymon] xymon freebsd memory calculations

Kris Persson kpersson at clarkebroadcasting.com
Fri May 4 21:30:51 CEST 2012


Brian Scott <Brian.Scott at ...> writes:

> Hi people,
> 
> I was just trying to track down why the memory used was showing 0% on my
> FreeBSD systems and have found an interesting bug.
> 
> The logic in xymond/client/freebsd.c is a little funny with fall back
> positions depending on what is supplied from the client, but essentially
> if there is no vmtotal section in the client data (old client) then the
> figure is used from meminfo which has been pretty good (but perhaps not
> perfect). If there is a section “Free Memory Pages” in the vmtoal section
> then that number is used in preference.
> 

I was unable to get your patch to work on my freebsd machines,  I found it 
easier to simply comment out the vm lines in the xymonclient-freebsd.sh file 
and my memory functions came back to life. 

/www/xymon/client/bin/xymonclient-freebsd.sh
#echo "[vmtotal]"
#sysctl vm.vmtotal

I use a mofified freebsd-meminfo taken from Ralf S. Engelschall freebsd-memory 
perl script.

I can provide the script as needed just email me.




More information about the Xymon mailing list