[ZBX-6851] The EventID column does not display zero number in the frotend's History if an event, aquired using Windows Eventlog, has EventID=0. Created: 2013 Aug 06  Updated: 2024 Apr 10  Resolved: 2017 Mar 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.1.2
Fix Version/s: 2.2.18rc1, 3.0.9rc1, 3.2.5rc1, 3.4.0alpha1

Type: Incident report Priority: Minor
Reporter: Igors Homjakovs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: eventlog
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File eventid.jpg    
Team: Team A
Team: Team A
Sprint: Sprint 2, Sprint 3
Story Points: 1

 Description   

During implementation of the new Windows Eventlog 6 in Zabbix agent we discovered that if an event has EventID equal to zero then the zero number cannot be displayed in the EventID column in the frotnend's History. The attached pictures shows this fact.



 Comments   
Comment by richlv [ 2013 Aug 06 ]

we have several other places where zeroes cause problems, and there are other issues about it (that i can't find right now)

there was something about some function treating zeroes in a special way and then half of the frontend implementing workarounds for that...

Comment by richlv [ 2013 Aug 06 ]

volter knew about one issue, mentioning this : ZBXNEXT-1810

Comment by richlv [ 2013 Oct 04 ]

another related problem : ZBX-6358

Comment by richlv [ 2013 Oct 04 ]

another : ZBX-6348

Comment by Kim Jongkwon [ 2017 Mar 01 ]

I think we can show "zeros" for all this EventIDs.
I have never seen an EventID value does not exist on 'Windows Event Viewer'

See below for more information.

MSDN Quetes,

It may be necessary to check the possibility values irrespective of existence cases, but I believe it is not necessary to changing of the database. 'EventID' field were no problems when I confirmed in my environment. (WindowsXP, 10)

Source from /frontends/php/include/classes/screens/CScreenHistory.php
in Zabbix 2.2, to changed from '0' to '-'.

$row[] = ($data['logeventid'] == 0) ? '-' : $data['logeventid'];

To changed from '0' to ''(blank) in version since 3.0

               $row[] = ($data['logeventid'] != 0)
                  ? (new CCol($data['logeventid']))
                    ->addClass(ZBX_STYLE_NOWRAP)
                    ->addClass($color)
                  : '';
Comment by Valdis Murzins [ 2017 Mar 06 ]

(1) No translation strings changed.

sasha CLOSED

Comment by Valdis Murzins [ 2017 Mar 06 ]

Fixed in svn://svn.zabbix.com/branches/dev/ZBX-6851 (for version 2.2)
Fixed in svn://svn.zabbix.com/branches/dev/ZBX-6851_3.0 (for version 3.0)

Comment by Alexander Vladishev [ 2017 Mar 08 ]

Successfully tested with minor fix in r66241.

Comment by Valdis Murzins [ 2017 Mar 13 ]

Fixed in 2.2.18rc1 r66308,66313, 3.0.9rc1 r66310,66314, 3.2.5rc1 r66312,66315, 3.4.0alpha1 r66316

Comment by Alexander Vladishev [ 2017 Mar 13 ]

(2) Documentation:

vmurzins RESOLVED

sasha CLOSED with minor rewording. martins-v, please have a look.

martins-v Reviewed, also with some minor rewording.

Generated at Fri Apr 19 23:36:23 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.