Well, what I do is this:
I store my data in a file somewhere on the Zenoss server the Zenoss user 
has access to. You could probably use the perf/device directory for 
instance.

Then I store out the data like so
echo foobar > file
This way it overwrites the value in the file (and I use one file per 
variable for simple parsing etc, though you could get far more fancy if 
you wanted to) each update so it's like a variable...

At the start, or somewhere in the script, I read back in the value like so:
VARIABLE=`cat file`

Does this help?
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



feldman wrote, On 1/26/2009 5:08 AM:
>> i can collect informations like time into a file on my device.
> 
> 
> What I want to do is to trace file changes over time. So what I would like to 
> do is to be able to keep a trace of check_http output over time.
> As you explained me, there is no persistency of "size" variables when you 
> launch a custom command.
> Ok, so your suggestion was to store the variable content anywhere (for 
> example on the host checked).
> 
> For now, what I still don't know how to do is when you launch a check_http 
> request, how do you get its result for storing the size variable. The only 
> thing I get so far  is a print of the check_http output.
> 
> I hope this is clear enough now...
> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=30483#30483
> 
> -------------------- m2f --------------------
> 
> 
> 
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to