Hello,
I've just noticed that in src/zabbix_agent/active.h, the "lastlogsize" member of the "metric_type" structure is defined as an integer. This variable is supposed to remember the last position in the log file, up until the log was already transferred to the zabbix_server. This variable is used in functions like fseek(), instead of a "long". For example in src/zabbix_agent/logfiles.c:
fseek(f,*lastlogsize,SEEK_SET)
The question is: isn't "lastlogsize" (defined as an int) reducing the size of the log file that can be monitored? Shouldn't it be defined as a "long"?
Thanks,
bogdan
I've just noticed that in src/zabbix_agent/active.h, the "lastlogsize" member of the "metric_type" structure is defined as an integer. This variable is supposed to remember the last position in the log file, up until the log was already transferred to the zabbix_server. This variable is used in functions like fseek(), instead of a "long". For example in src/zabbix_agent/logfiles.c:
fseek(f,*lastlogsize,SEEK_SET)
The question is: isn't "lastlogsize" (defined as an int) reducing the size of the log file that can be monitored? Shouldn't it be defined as a "long"?
Thanks,
bogdan