[Xymon] Looking for "page too old" script

Josh Luthman josh at imaginenetworksllc.com
Fri Jul 29 21:41:38 CEST 2011


Tim,

I have that right now.  But I don't see how the server is going to know what
the file meta data is unless it's sent to the server somehow.

At this time, probably about half an hour after I added it, the test is
still white.  I'm almost 100% sure hobbit-clients.cfg changes doesn't
require a restart.

Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373


On Fri, Jul 29, 2011 at 2:34 PM, Tim McCloskey <tm at freedom.com> wrote:

> If your system is setup to store the client data on the central server you
> can have something like the following in hobbit-clients.cfg.
>
> HOST=somehost GROUP=optional-some-group
> FILE /some/path/tofile.ext SIZE<55M and SIZE>0 red
>
> Client-local can take a host name too -- I think....
>
>
>
> ________________________________________
> From: Josh Luthman [josh at imaginenetworksllc.com]
> Sent: Friday, July 29, 2011 11:24 AM
> To: Tim McCloskey
> Cc: xymon at xymon.com
> Subject: Re: [Xymon] Looking for "page too old" script
>
> The page is set to expire immediately and usually the cache problems are
> the browser/client.  At least in my experience.
>
> On hobbit-clients.cfg for the host (it has proc tests already) I added:
>
> FILE   /var/www/foo/bar/output.png red mtime<1800 #go red if file older
> than 30 minutes
>
> How do I get the client to send the details about this file?  From reading
> the man page I need to specify client-local.cfg but I am not sure what goes
> in this.  I'm pretty sure I want:
>
> file:/var/www/foo/bar/output.png
>
> Do I put this under [linux]?  If I do this, will it only have the clients
> with an appropriate FILE check or ask this file of every linux box?
>
> Josh Luthman
> Office: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
>
>
> On Fri, Jul 29, 2011 at 11:58 AM, Tim McCloskey <tm at freedom.com<mailto:
> tm at freedom.com>> wrote:
> couple random thoughts:
> Would HTTP cache control headers help in this regard?  You can poll a page
> via wget or some other mechanism and look at the page headers, that won't
> tell you if the image is old but if the page is regenerated on each image
> update it may work... If you have shell access to the server:/image.file you
> could test the mac times...  Or, toss in some logic to catch the bugz :)
> ________________________________________
> From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [
> xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Josh
> Luthman [josh at imaginenetworksllc.com<mailto:josh at imaginenetworksllc.com>]
> Sent: Friday, July 29, 2011 7:40 AM
> To: xymon at xymon.com<mailto:xymon at xymon.com>
> Subject: [Xymon] Looking for "page too old" script
>
> I have a tsch script that does some things, manipulates and image and such
> and posts it on a web site.  Occasionally, I have found a bug or two where
> the image stops updating.  I don't know this until it is too late.  Is there
> any sort of technique or custom script that will poll a website and see if
> something is to old?  I'm at a bit of a loss as to how to correctly indicate
> a problem and hoping there is something I can start from already.
>
> Thanks in advance!
>
> Josh Luthman
> Office: 937-552-2340<tel:937-552-2340>
> Direct: 937-552-2343<tel:937-552-2343>
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110729/19142a42/attachment.html>


More information about the Xymon mailing list