On Aug 1, 2011, at 4:38 PM, Henrik Størner wrote:
What does the "[realmem]" section look like ?
This is what it currently looks like (still red and reporting invalid numbers). The client is version 4.3.3, by the way. Server is 4.2.2-RC1 if it matters.
[realmem] realmem 16777216 Amount of usable physical memory in Kbytes False [freemem] 0 0 1051672 5471551 0 0 0 0 0 0 10 577 525 1 3 96 0 0.03 6.7 [swap] Total Paging Space Percent Used 4096MB 1%
All of this is in the "client data" linked to from the detailed status page. It would be nice to have an example both when it is green and when it is red.
It’s generally red, but here’s the same data from a nearly identical system that’s green. This one has more memory, but the configuration should be the same.
[realmem] realmem 33554432 Amount of usable physical memory in Kbytes False [freemem] 9 3 9838132 4694881 0 0 0 909 947 0 2836 50135 29272 50 11 38 1 2.90 96.7 [swap] Total Paging Space Percent Used 4096MB 3%
Thanks.
-- Rob McBroom <http://www.skurfer.com/>
On 02-08-2011 16:28, Rob McBroom wrote:
This is what it currently looks like (still red and reporting invalid numbers). The client is version 4.3.3, by the way. Server is 4.2.2-RC1 if it matters.
Ouch, that is an old server you have there ...
I cannot say that upgrading will fix it, but there has been some changes along the way to how the memory-parsing code works. It also means that it will be difficult to provide any kind of patches to test.
[realmem] realmem 16777216 Amount of usable physical memory in Kbytes False [freemem] 0 0 1051672 5471551 0 0 0 0 0 0 10 577 525 1 3 96 0 0.03 6.7 [swap] Total Paging Space Percent Used 4096MB 1%
Looks sane, and running it through my Linux/Intel test system here gives the correct result with 4.3.4.
The only possible bug I can see is that something weird happens when your compiler does the arithmetic because there are long int's and short int's involved. One thing you could try was to change the hobbitd/hobbitd_client.c file; in the "unix_memory_report()" function, remove the "unsigned" keyword from the declaration of the "memphyspct", "memswappct" and "memactpct" variables, and in the 4 "sprintf" commands below, change the "%11lu" formatting string to "%lld" (replace 'u' with 'd').
No idea if it helps, but it might. But I would strongly recommend upgrading your Xymon server to 4.3.4.
Regards, Henrik
participants (2)
-
henrik@hswn.dk
-
mailinglist0@skurfer.com