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.
FreeBSD Free Memory/Swap
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 1 guest