[ZBX-9858] Possible negative snmp_lastlogize in database Created: 2015 Sep 08 Updated: 2017 May 30 Resolved: 2015 Oct 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 2.4.6 |
Fix Version/s: | 2.0.16rc1, 2.2.11rc1, 2.4.7rc1, 3.0.0alpha3 |
Type: | Incident report | Priority: | Blocker |
Reporter: | Alexey Pustovalov | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | limits, snmptraps | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
Zabbix server uses snmptrap.log file which can be rotated by logrotate. One time Zabbix server wrote to database negative value of snmp trap file size. Which cause "Invalid argument" error more than 1000 ones per second. Zabbix server filled zabbix_server.log file up to 1.7TB just for 6-9 hours. An example: 10890:20150914:141532.174 cannot set position to [-2147482943] for [/tmp/snmptrapfmt.log]: [22] Invalid argument 10890:20150914:141532.174 cannot set position to [-2147482943] for [/tmp/snmptrapfmt.log]: [22] Invalid argument 10890:20150914:141532.174 cannot set position to [-2147482943] for [/tmp/snmptrapfmt.log]: [22] Invalid argument |
Comments |
Comment by Andris Zeila [ 2015 Sep 15 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9858 |
Comment by Andris Zeila [ 2015 Sep 15 ] |
(1) Documentation update:
asaveljevs The 2.4 page seemed to have an empty 6th item in "Log rotation" list. Fixed that. CLOSED. |
Comment by Aleksandrs Saveljevs [ 2015 Sep 17 ] |
Looks good, but please see r55630 before merging. wiper reviewed, thanks |
Comment by Andris Zeila [ 2015 Sep 18 ] |
Released in:
|
Comment by Andris Zeila [ 2015 Sep 21 ] |
(2) The file size limit must also be checked during reading. wiper RESOLVED in r55670 asaveljevs CLOSED |
Comment by Andris Zeila [ 2015 Sep 21 ] |
Released in:
|
Comment by Alexander Vladishev [ 2016 May 19 ] |
It caused regression in |