[ZBX-17963] Single quote shown as error in templated discovery items. Created: 2020 Jun 25  Updated: 2020 Jul 06  Resolved: 2020 Jul 03

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

Type: Incident report Priority: Trivial
Reporter: Don Harrop Assignee: Zabbix Support Team
Resolution: Duplicate Votes: 0
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 5.0.1 Server
Zabbix 5.0.1 Agent
PHP-FPM 7.3.7 or PHP-FPM 7.4.7
Apache 2.4.39


Attachments: PNG File Screenshot1.png     PNG File Screenshot2.png     Text File configuration_options.txt     PNG File discovery_item_preprocessing.png     PNG File discovery_item_prototype.png     PNG File discovery_lld_macros.png     PNG File discovery_preprocessing.png     PNG File discovery_rule.png     File test.sh    
Issue Links:
Duplicate
duplicates ZBX-17806 Errornous Error Shown in Latest Data Reopened

 Description   

Single quote is shown as error on templated discovery and discovery items.  Seen in the info column of items configuration.  Similar to ZBX-17806.

Steps to reproduce:

  1. Create new template
  2. Create new discovery
  3. Create new discovery item
  4. Assign template to host

Additional Notes:

  • I'm using a custom user parameter that executes a shell script for discovery.
  • UserParameter=test.client.discovery,/etc/zabbix/scripts/test.sh discover
  • Attaching test.sh
  • My discovery items are "Zabbix Trapper".  Does not poll, yet still has same error.

Result:
See screenshot...



 Comments   
Comment by Kristians Pavars [ 2020 Jul 03 ]

Hi don

 

Thanks for reaching out to public bug tracker.

Unfortunately I couldn't reproduce this issue (on Zabbix 5.0.1/ centos 8/ nginx).

Have you installed Zabbix from packages or from sources?

 

Can you attach screenshots of your Discovery configuration? And have you added LLD macros or any preprocessing steps?

 

Thanks,
Kristiāns

Comment by Kristians Pavars [ 2020 Jul 03 ]

Let's continue this thread in the other ticket ZBX-17806 since it came first

Comment by Don Harrop [ 2020 Jul 04 ]

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/glibc-2.30-r8
sys-libs/glibc-2.30-r8
sys-libs/openipmi-2.0.27-r1
sys-libs/zlib-1.2.11-r2

Attaching additional screenshots of discovery configuration.

Generated at Fri Apr 04 10:22:17 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.