Looking for "page too old" script
Got it working! Thanks!!!
FILE /var/www/inxwireless/network/output.png red mtime<1800
This is correct. From what the documentation states, of which I may be understanding it incorrectly, this is backwards.
Initially I did mtime>1800 based on what I read on the man page. The test went red "File was modified 31 seconds ago - should be >1800"
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Fri, Jul 29, 2011 at 4:31 PM, Tim McCloskey <tm at freedom.com> wrote:
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?
Just took another look at a working config....here's a couple notes. You don't need the whole [linux] class, you can use a [hostname] in client-local.cfg ... [your-hostname] file:/var/www/foo/bar/output.png ...
The stanza above with a matching FILE directive from hobbit-clients.cfg (both server side) works for me, on 4.2.0.
If you have this setup - sounds like you do - and it's not working you can Try touching the logfetch.$foo.cfg and logfetch.$foo.status files in the tmp dir on the client (create them however you need, just make sure to chown them to your hobbit user).
You should not need to populate the files, just create them. Example file... cat someclienthostname:~hobbit/client/tmp/logfetch.someclienthostname.cfg log:/some/path/to/somefile:10240 file:/bin/su
Tim
On 01-08-2011 17:46, Josh Luthman wrote:
Got it working! Thanks!!!
FILE /var/www/inxwireless/network/output.png red mtime<1800
This is correct. From what the documentation states, of which I may be understanding it incorrectly, this is backwards.
I must admit I had my doubts when coding this. But the idea is to read it as it is written: "File foo must have been modified LESS THAN 1800 seconds ago".
Regards, Henrik
The code makes more sense to me then the sentence explaining it in the man page. That's just me. Either way you only have two choices so it won't be a big mistake. On Aug 7, 2011 8:20 AM, "Henrik Størner" <henrik at hswn.dk> wrote:
On 01-08-2011 17:46, Josh Luthman wrote:
Got it working! Thanks!!!
FILE /var/www/inxwireless/network/output.png red mtime<1800
This is correct. From what the documentation states, of which I may be understanding it incorrectly, this is backwards.
I must admit I had my doubts when coding this. But the idea is to read it as it is written: "File foo must have been modified LESS THAN 1800 seconds ago".
Regards, Henrik
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
On 08/07/2011 01:53 PM, Josh Luthman wrote:
The code makes more sense to me then the sentence explaining it in the man page. That's just me. Either way you only have two choices so it won't be a big mistake.
On Aug 7, 2011 8:20 AM, "Henrik Størner" <henrik at hswn.dk <mailto:henrik at hswn.dk>> wrote:
On 01-08-2011 17:46, Josh Luthman wrote:
Got it working! Thanks!!!
FILE /var/www/inxwireless/network/output.png red mtime<1800
This is correct. From what the documentation states, of which I may be understanding it incorrectly, this is backwards.
I must admit I had my doubts when coding this. But the idea is to read it as it is written: "File foo must have been modified LESS THAN 1800 seconds ago".
Regards, Henrik
This would make sense if the file is being updated every 30 minutes. However, you may want to give it a 5 minute buffer to avoid timing false alarms, like "mtime<2100".
NB: I would have read this as "Turn red if the file is less than 30 minutes old" which would seem backwards but I'm reluctant to contradict the author of the program :-).
=G=
participants (3)
-
gjohnson@trantor.org
-
henrik@hswn.dk
-
josh@imaginenetworksllc.com