[ZBX-17806] Errornous Error Shown in Latest Data Created: 2020 May 26  Updated: 2020 Sep 17

Status: Reopened
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 5.0.0
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Max Ried Assignee: Kristians Pavars
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Server is Debian 10, Zabbix 5.0
Proxy is Ubuntu 20.04, Proxy 5.0, Agent2 5.0


Attachments: PNG File image-2020-06-02-09-00-44-758.png     File zabbix_server.log.gz    
Issue Links:
Duplicate
is duplicated by ZBX-17963 Single quote shown as error in templa... Closed

 Description   

Steps to reproduce:

  1. I have no clue. I first noticed the issue after I setup a zabbix proxy to monitor hosts which were formerly monitored via VPN.

Result:
Latest Data of the proxies which are monitored by themselves works, and gets updated properly, but shows the read exclamation mark with a message of just a single '. This is also visible in highest debug level, as you can see in the following example:

{{ 15019:20200526:085009.596 itemid:33227 hostid:10307 key:'agent.ping'}}
{{ 15019:20200526:085009.596 type:0 value_type:3}}
{{ 15019:20200526:085009.596 interfaceid:30}}
{{ 15019:20200526:085009.596 state:0 error:'''}}
{{ 15019:20200526:085009.596 flags:0 status:0}}
{{ 15019:20200526:085009.596 valuemapid:10}}
{{ 15019:20200526:085009.596 lastlogsize:0 mtime:0}}
{{ 15019:20200526:085009.596 delay:'1m' nextcheck:1590475847 lastclock:1590475787}}
{{ 15019:20200526:085009.596 data_expected_from:1590475748}}
{{ 15019:20200526:085009.596 history:1 history_sec:604800}}
{{ 15019:20200526:085009.596 poller_type:255 location:0}}
{{ 15019:20200526:085009.596 inventory_link:0}}
{{ 15019:20200526:085009.596 priority:1 schedulable:1}}
{{ 15019:20200526:085009.596 units:'' trends:1}}

It is also reflected by the database:

MariaDB [zabbix]> SELECT * FROM item_rtdata WHERE itemid = 33227;
+--------+-------------+-------+-------+-------+
| itemid | lastlogsize | state | mtime | error |
+--------+-------------+-------+-------+-------+
| 33227  | 0           | 0     | 0     | '     |
+--------+-------------+-------+-------+-------+
1 row in set (0.001 sec)

I have two hosts that are affected, and both of them are active Zabbix Proxies sqlite3 behind NAT with Agent2 monitoring themselves, and sending the data to the Zabbix server.



 Comments   
Comment by Kristians Pavars [ 2020 May 29 ]

Hi,

Thanks for reaching out to public bug tracker.

 

Can you please list all the templates that are assigned to this agent2 host? Are they stock templates from 5.0 without any modifications?

Can you please attach a screenshot of the error as seen on item? Is this custom item?

 

Also are there any other items which show single quote in the error message? You can check this in database with query: 

SELECT hosts.hostid,items.key_ FROM item_rtdata
JOIN items ON (items.itemid=item_rtdata.itemid)
JOIN hosts ON (hosts.hostid=items.hostid)
WHERE item_rtdata.error="'";
Comment by Max Ried [ 2020 May 30 ]

Hi Kristians,

there are 210 items returned from your sql query of which are >200 stock Zabbix templates. The hosts are Raspberry Pis with Ubuntu. The affected items come from all templates, and all items are affected. The Zabbix Agent2 and Proxy where compiled by me, as you don't have arm ubuntu builds in your repository, but I compiled them using the source packages available from the correct Ubuntu repository, and I did not apply any patches. Besides, it's working properly besides showing these "error". Interestingly, no other host is affected. I pretty sure I deleted the templates when upgrading Zabbix, and imported the 5.0 templates from git.

Template App Zabbix Proxy
Template Module ICMP Ping
Template OS Linux by Zabbix agent

 

 

Comment by Kristians Pavars [ 2020 Jun 02 ]

Hi Max,

 

Can you please share some screenshots of the mentioned error? 

Which Ubuntu version are you using? I will see if I can replicate this 

 

Thanks,

Kristians

Comment by Max Ried [ 2020 Jun 02 ]

Hi Kristians,

I was positive I attached a screenshot...  They are running 20.04 arm64, respectively 20.04 armhf.

 

Comment by Kristians Pavars [ 2020 Jun 02 ]

Thanks for the screenshot, quite a lot of those errors.

Where is your proxy installed? On the same Pi or somewhere else? What settings have you configured for the proxy?

 

 

Comment by Max Ried [ 2020 Jun 02 ]

These are the configuration files. The Agent2 is installed on the same device as the proxy.
 

# grep -vE "^#|^$" /etc/zabbix/zabbix_agent2.conf
PidFile=/var/run/zabbix/zabbix_agent2.pid
LogFile=/var/log/zabbix/zabbix_agent2.log
LogFileSize=0
Server=127.0.0.1
ListenIP=127.0.0.1
ServerActive=127.0.0.1
Include=/etc/zabbix/zabbix_agent2.d/*.conf
ControlSocket=/tmp/agent.sock
TLSConnect=psk
TLSAccept=psk
TLSPSKIdentity=psk
TLSPSKFile=/etc/zabbix/psk
DenyKey=system.run[*]
 
# grep -vE "^#|^$" /etc/zabbix/zabbix_proxy.conf
Server=<fqdn>
LogType=system
LogFile=/var/log/zabbix/zabbix_proxy.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_proxy.pid
SocketDir=/var/run/zabbix
DBName=/var/lib/zabbix/zabbix_proxy
DBUser=zabbix
ProxyOfflineBuffer=14
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
ExternalScripts=/usr/lib/zabbix/externalscripts
FpingLocation=/usr/bin/fping
Fping6Location=/usr/bin/fping6
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1
TLSConnect=psk
TLSAccept=psk
TLSPSKIdentity=psk
TLSPSKFile=/etc/zabbix/psk
Comment by Kristians Pavars [ 2020 Jun 03 ]

Hi Max,

 

I was unable to reproduce this issue and I don't see any errors like you do, everything seems to be working fine. With that said I don't think this is a bug with proxy or server but rather something Agent2 related. We have an arm build for Raspbian which works the same as other Zabbix installations that you can get from our repositories and as far as I know it doesn't have any issues.

I would suggest maybe to do a clean install of Zabbix from source. Run

make uninstall

 

from source code directory and after wards check and clear any remaining zabbix binaries in /usr/bin/ /usr/sbin/ /usr/local/etc /etc/zabbix/ or wherever you installed it. Also don't forget to clear the database also by dropping it or just deleting/ renaming db file. And after that do a fresh install again following the documentation https://www.zabbix.com/documentation/current/manual/installation/install

 

And in case you were upgrading existing installation you can check the docs here: https://www.zabbix.com/documentation/current/manual/installation/upgrade/sources

 

Also make sure that Zabbix Server and Zabbix Proxy are the same versions.

 

Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to [email protected] for commercial support or consultancy services. Alternatively, you can also use our IRC channel or community forum (https://www.zabbix.com/forum) for assistance. With that said, I will be closing this ticket. Thank you for understanding. 

Comment by Max Ried [ 2020 Jun 03 ]

Hi Kristians,

Thank you for your answer.

Actually, I can't find Agent2 as an arm build in your repository at all. It doesn't seem as if it exists. Additionally, I'd like to install it from your tarball, but unfortunately it is outdated, and your git doesn't have a 5.0.1 tag or branch. As you requested, I should try with the same versions of zabbix-server and zabbix-proxy, but I won't downgrade my production zabbix-server just for this test.

 

Besides, how doesn't this qualify as a bug? It's at least a cosmetic one.

Regards,
Max

Comment by Kristians Pavars [ 2020 Jun 03 ]

Hi Max,

 

Apologies, yes it seems that Zabbix Agent 2 is missing from Raspbian repository, it should be added soon. Also you can download source code for 5.0.1 from here: https://github.com/zabbix/zabbix/releases/tag/5.0.1 

 

As for why it doesn't qualify as a bug - this issue should be reproducible with the same results and that was not the case using Zabbix Agent 2 5.0.0 and Zabbix proxy 5.0.0 compiled from source  (https://cdn.zabbix.com/zabbix/sources/stable/5.0/zabbix-5.0.0.tar.gz) on Ubuntu 20.04 arm64 with Zabbix Server 5.0.1 running elsewhere. If it were a problem with source code, then this issue should affect more than just arm platform builds. This seems to be something more specific to your environment which would fall under commercial support and services and not a public bug.

 

Regards,
Kristians

Comment by Don Harrop [ 2020 Jun 20 ]

I'm using Zabbix 5.0 server and agent compiled from source without a proxy.  I have two custom templates for monitoring ZoL (ZFS on Linux) and MySQL.  All of the discovered items showed a single quote in the 'info' column as seen in the attached screenshot.  Some items were Zabbix Trapper and some were Zabbix Agent. 

This occurred after upgrading from 4.4 to 5.0  A database query that removes the single quote from item_rtdata.error clears the appearance of error in the UI.

I can also confirm that it is reproduce-able though.  If I unlink and clear the template, then link again as new, the issue returns.  Perhaps this is template related?  Let me know if I can provide any further detail.

Comment by Kristians Pavars [ 2020 Jul 03 ]

Hi don

Can you please confirm what flags are you using when compiling from sources? On what OS is this happening?

 

Thanks,
Kristiāns

Comment by Don Harrop [ 2020 Jul 06 ]

Zabbix was installed from sources on Gentoo with the following configuration options:

$ ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/zabbix-5.0.1 --htmldir=/usr/share/doc/zabbix-5.0.1/html --libdir=/usr/lib64 --enable-agent --enable-ipv6 --disable-java --enable-proxy --enable-server --disable-static --with-libcurl --without-ldap --without-libxml2 --with-mysql --without-unixodbc --with-openipmi --without-oracle --without-postgresql --with-net-snmp --without-sqlite3 --without-ssh2 --with-openssl

No LLD macros or preprocessor steps were used.

Versions of Zabbix dependencies are:

dev-db/mysql-connector-c-6.1.11-r2
dev-libs/libevent-2.1.10
dev-libs/libpcre-8.43
dev-libs/openssl-1.1.0k
net-analyzer/net-snmp-5.8-r1
net-misc/curl-7.65.3
sys-devel/gcc-9.3.0
sys-libs/gdbm-1.18.1
sys-libs/glibc-2.30-r8
sys-libs/openipmi-2.0.27-r1
sys-libs/zlib-1.2.11-r2

This is not a fresh installation, however.  It was an upgrade from Zabbix 4.4.  Post upgrade I ran into the unsupported charset or collation for tables error and followed steps identified by the following bug report in order to resolve.

ZBX-17357

I have also since found that creating a new single item produces the same results.

Comment by Don Harrop [ 2020 Aug 30 ]

This error still occurs after upgrading to Zabbix 5.0.3.  I have enabled DebugLevel=5 and am attaching the zabbix_server.log.gz file.  "test.client.discovery" and "test_bytes_received" are patterns you can search for to see debug output regarding this issue.  This test discovery is incredibly simple.  No preprocessing, LLD macros, filters, or overrides are being used.  test_bytes_received is of type "Zabbix trapper" so no data is collected for it.

Comment by Don Harrop [ 2020 Sep 17 ]

In troubleshooting I have created a new database and updated zabbix_server.conf to use it.  The problem does not occur with a new database and the same binaries.  This issue doesn't seem to be related to compile time options or libraries.

Generated at Mon Jun 02 17:23:21 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.