[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:
Duplicate
is duplicated by ZBX-10367 Too many error with snmp traps causin... Closed

 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:

  • pre-2.0.16rc1 r55639
  • pre-2.2.11rc1 r55640
  • pre-2.4.7rc1 r55641
  • pre-3.0.0alpha3 r55642
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:

  • pre-2.0.16rc1 r55675
  • pre-2.2.11rc1 r55676
  • pre-2.4.7rc1 r55677
  • pre-3.0.0alpha3 r55678
Comment by Alexander Vladishev [ 2016 May 19 ]

It caused regression in ZBX-10819

Generated at Fri Apr 19 09:45:18 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.