Well, with Zencommand - that is if you're running a shell script you've 
created, you need to understand that it's run new each time it is run by 
Zenoss - so a variable won't persist. What I've done is just echo to a 
file and cat into a variable ...
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



feldman wrote, On 1/22/2009 1:05 PM:
> Hello, 
> 
> I'm trying to monitor file on an http server and trigger an event when the 
> filesize has changed.
> 
> I use the check_http plugin.
> 
> So, what I'm trying to do is to launch check_http every x seconds, store the 
> collected size in a variable and test the size against previously stored size.
> 
> I tried to do that in the zenoss core environnement (not bash). What i tried 
> to do is to write a bash script in the Command Template form of 
> template/custom commands.
> 
> For now, what I can do is launch the proper check_http command, collet size, 
> display graph_size. 
> WHat i can't do is collect size variable in the script, store it and compare 
> it...I really don't understand why...
> 
> Is there a proper way to do it ?
> 
> Many thanks
> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=30376#30376
> 
> -------------------- 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