ZABBIX BUGS AND ISSUES

The problem with logrt and russian utf8

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.3
  • Fix Version/s: 1.8.10
  • Component/s: Server (S)
  • Environment:
    Fedora 10, PostgreSQL 8.3.4, Zabbix 1.8.3
  • Zabbix ID:
    Reviewed 2.0

Description

google translate result :
-----------------------------------------------------------------------
Monitoring logs used by logrt.

 In a controlled log found this line:

 Sep 29 14:05:53 zabbix-160 passwd: PAM unable to dlopen (/ lib64/security/pam_gnome_keyring.so): / lib64/security/pam_gnome_keyring.so: can not open shared object file: No such file or directory

 In the server log file Zabbix (zabbix_server.log) on ​​this line we get:

  12754:20101005:151411.938 [Z3005] Query failed: [0] PGRES_FATAL_ERROR: ERROR: invalid byte sequence for encoding "UTF8": 0xd027
 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".
  [Update items set lastclock = 1286277245, prevvalue = lastvalue, lastvalue = 'Sep 29 14:05:53 zabbix-160 passwd: PAM unable to dlopen (/ lib64/security/pam_gnome_keyring.so): / lib64/security/pam_gnome_keyring.so : can not open shared object file: No such file. ', lastlogsize = 4524, mtime = 1285754770 where itemid = 24 998;
 ]
  12754:20101005:151411.939 [Z3005] Query failed: [0] PGRES_FATAL_ERROR: ERROR: current transaction is aborted, commands ignored until end of transaction block
  [Insert into history_log (id, itemid, clock, timestamp, source, severity, value, logeventid) values ​​(74,24998,1286277245,0,'', 0, 'Sep 29 14:05:53 zabbix-160 passwd: PAM unable to dlopen (/ lib64/security/pam_gnome_keyring.so): / lib64/security/pam_gnome_keyring.so: can not open shared object file: No such file or directory ', 0);
 ]
  12754:20101005:151411.939 [Z3005] Query failed: [0] PGRES_FATAL_ERROR: ERROR: current transaction is aborted, commands ignored until end of transaction block
  [Select distinct t.triggerid, t.type, t.value, t.error, t.expression, f.itemid from triggers t, functions f, items i where i.status not in (3) and i.itemid = f . itemid and t.status = 0 and f.triggerid = t.triggerid and f.itemid in (24 998) order by t.triggerid]

 Judging from the log, the server Zabbix cut Russian letter 'l' (utf8 code 0xd0bb) in half, then attributed to the first 0xd0 single quotation mark (code 0x27) and got the code 0xd027, which is not a valid code utf8.

 As a result, the lines similar to those specified in the journal Zabbix does not fall.


original :
-----------------------------------------------------------------------
Используется мониторинг логов с помощью logrt.

В контролируемом логе встречается такая строка:

Sep 29 14:05:53 zabbix-160 passwd: PAM unable to dlopen(/lib64/security/pam_gnome_keyring.so): /lib64/security/pam_gnome_keyring.so: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога

В логе сервера Zabbix (zabbix_server.log) на эту строку получаем:

 12754:20101005:151411.938 [Z3005] Query failed: [0] PGRES_FATAL_ERROR:ERROR: invalid byte sequence for encoding "UTF8": 0xd027
HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".
 [update items set lastclock=1286277245,prevvalue=lastvalue,lastvalue='Sep 29 14:05:53 zabbix-160 passwd: PAM unable to dlopen(/lib64/security/pam_gnome_keyring.so): /lib64/security/pam_gnome_keyring.so: невозможно открыть разделяемый объектный файл: Нет такого файла и.',lastlogsize=4524,mtime=1285754770 where itemid=24998;
]
 12754:20101005:151411.939 [Z3005] Query failed: [0] PGRES_FATAL_ERROR:ERROR: current transaction is aborted, commands ignored until end of transaction block
 [insert into history_log (id,itemid,clock,timestamp,source,severity,value,logeventid) values (74,24998,1286277245,0,'',0,'Sep 29 14:05:53 zabbix-160 passwd: PAM unable to dlopen(/lib64/security/pam_gnome_keyring.so): /lib64/security/pam_gnome_keyring.so: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога',0);
]
 12754:20101005:151411.939 [Z3005] Query failed: [0] PGRES_FATAL_ERROR:ERROR: current transaction is aborted, commands ignored until end of transaction block
 [select distinct t.triggerid,t.type,t.value,t.error,t.expression,f.itemid from triggers t,functions f,items i where i.status not in (3) and i.itemid=f.itemid and t.status=0 and f.triggerid=t.triggerid and f.itemid in (24998) order by t.triggerid]

Судя по логу, сервер Zabbix обрезал русский символ 'л' (utf8 код 0xd0bb) надвое, потом к первому 0xd0 приписал символ одинарной кавычки (код 0x27) и получил код 0xd027, который не является корректным кодом utf8.

В итоге, строки, аналогичные указанной, в журнал Zabbix не попадают.

Activity

Hide
Aleksandrs Saveljevs added a comment -

Related issue: ZBX-3043.

Show
Aleksandrs Saveljevs added a comment - Related issue: ZBX-3043.
Hide
Alexander Vladishev added a comment -

Already fixed in version 1.8.10. See ZBX-4424 for more details.

Show
Alexander Vladishev added a comment - Already fixed in version 1.8.10. See ZBX-4424 for more details.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: