FreeBSD Free Memory/Swap

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
junkmail
Posts: 7
Joined: Wed Nov 19, 2008 11:26 am

FreeBSD Free Memory/Swap

Post by junkmail »

I am working on modifying the linux_memory.pl script to provide the same functions for a FreeBSD server using Cacti-0.8.6j and I have run into a problem that I cannot work out:

My script returns a single value for an input of 'SwapFree:'. When I run it standalone from a command line or by su to the cactus user and running `/usr/local/bin/php /usr/local/share/cacti/poller.php` the value is correct.

When the poller is run from the crontab, however, the value recorded is exactly double.

Easy enough to just halve the value before outputting it but I would like to understand why (how?) it is happening.

Anybody know what's causing this behavior?

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest