On 6 June 2012 15:46, Magda Stefan wrote:
> I've read that if I set the Timeout to -1 the load routine will be called
> every time a get request is received.
That is what you wanted, wasn't it?
> I've completely forgot about the .h file.Here is an archive with my folder.
OK - I've finally man
Sorry Dave,
I've completely forgot about the .h file.Here is an archive with my folder.
I've read that if I set the Timeout to -1 the load routine will be called every
time a get request is received.
subagg.tar.gz
Description: GNU Zip compressed data
--
On 6 June 2012 15:12, Magda Stefan wrote:
> I have some printfs to see what value cache_expired return and it seems that
> it's always 1.
Well, since you've set the expiry time to -1, then that's what you would expect!
> Here is my complete code:
>
> #include
> #include
> #include
> #includ
Hi Dave,
I have some printfs to see what value cache_expired return and it seems that
it's always 1.
The program will read the atr and owd values from two files located in /tmp and
named atr.out and owd.out.
in every file is only one line like 12345.6 and 64321.2.
Here is my complete code:
#i
On 6 June 2012 14:11, Magda Stefan wrote:
> One of my observations is that calling the cache_load routine from the
> cache_free will load the data again,
N!
The free hook is used to release the cached data.
The load hook is used to load a new set.
These are different tasks, and you should
On 31 May 2012 18:40, Magda Stefan wrote:
> I don't know why, but the subagent it's not reloading the data into
> the cache when a snmpget request is coming. It binds the values at the
> beginning but it's not changing them after the request.
> I've tried different methods to make it r