logfetch questions
LOGFILE CONFIGURATION ENTRIES
A logfile configuration entry looks like this:
log:/var/log/messages:10240
The log:FILENAME:SIZE line defines the filename of the log, and the maximum amount of data (in bytes) to send to the Xymon server.
what is the MAX SIZE value possible - iow constrained by what ?
logfetch monitors the bottom X chunk of the file - true or false ?
if I get output like below - what can I conclude?
[msgs:/var/log/rmsupload.log] <...SKIPPED...> SIZE being set to 31856 200 SITE command was accepted local: /ftpstage/rms/rmsupload17896.t remote: 'tran.rmsrpt32(+1)' 227 Entering Passive Mode (161,195,160,202,88,21) 125 Storing data set TRAN.RMSRPT32.G0008V00
<...SKIPPED...> I had more data than could fit in the chunk? iow I may have missed interesting stuff!
SIZE being set to 31856
means what? how is this value decided?
Thanks!
On 27 September 2013 05:53, Bakkies Gatvol <bakgat8 at hotmail.com> wrote:
SIZE being set to 31856
This is from the FTP server you're using. Nothing to do with Xymon.
MAXBYTES is read into an "int" (signed) variable, and copied to another of type "off_t". I think the size of these types is architecture-dependent, but you can expect these to be at least 16 bytes, which should mean a number up to 32767.
I'm not a C programmer, so someone else might correct me. Also, there may be other constraints on how MAXBYTES is used.
J
participants (2)
-
bakgat8@hotmail.com
-
jlaidman@rebel-it.com.au