What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

PRTG Message "The given key was not present in the dictionary."

Votes:

0

Hi, I have a problem with my MySQL sensor with the error "The given key was not present in the dictionary." Previously it looked fine but now I didn't see my live MySQL graph dashboard. Any idea how I can fix it?

DB host : MariaDB version 10.6

Thanks

mysql prtg sensor

Created on Feb 3, 2022 2:23:42 PM



5 Replies

Votes:

0

Hello, I'm afraid our current mysql connector does not support mariadb 10.6 due to the change in the charset definitions in mariadb 10.6. There's a bug on their side. Have a look here:

- https://jira.mariadb.org/browse/MDEV-26105
- https://github.com/mysql/mysql-connector-net/pull/41/files

The Sensor is not able to connect to mariadb 10.6 without that fix being merged I'm afraid.

Created on Feb 4, 2022 10:57:47 AM by  Timo Dambach [Paessler Support]



Votes:

0

Hello,

the main problem is not mariaDB but the .Net connector. MariaDB just introduced a new datatype.

The patch Timo linked was declined, because the programmer didn't accept the oracle license. But another patch that did the same changes was accepted and merged into version 8.28.

https://github.com/mysql/mysql-connector-net/commit/16ad749586b0e5eb1aad127e3744096692e4a6ae

So now Paessler needs to use a client version >= 8.28 to gain support for mariaDB >= 10.6 .

best regards Benedikt

Created on Mar 15, 2022 8:34:31 AM



Votes:

1

Hello Benedikt,

Yes, you are right. We need to use a client version >= 8.28 to gain support for mariaDB >= 10.6. This is already planned for the upcoming PRTG version 22.x.76 which will be released next month (April 2022).

Created on Mar 18, 2022 8:10:12 AM by  Timo Dambach [Paessler Support]



Votes:

0

Just a quick question, would this affect MySQL Version 8.0.29? Reason for the question is we have a MySQL v2 sensor giving the "The given key was not present in the dictionary." error out of the blue, but looks like an upgrade to the MySQL package on the server updated this morning.

CentOS Linux release 7.9.2009

[root@cloud snmp]# grep -i updated /var/log/yum.log | grep mysql
Apr 26 04:41:48 Updated: mysql-community-common-8.0.29-1.el7.x86_64
Apr 26 04:41:51 Updated: mysql-community-client-plugins-8.0.29-1.el7.x86_64
Apr 26 04:41:52 Updated: mysql-community-libs-8.0.29-1.el7.x86_64
Apr 26 04:41:54 Updated: mysql-community-client-8.0.29-1.el7.x86_64
Apr 26 04:41:54 Updated: mysql-community-icu-data-files-8.0.29-1.el7.x86_64
Apr 26 04:42:07 Updated: mysql-community-server-8.0.29-1.el7.x86_64
Apr 26 04:42:08 Updated: mysql-community-devel-8.0.29-1.el7.x86_64
Apr 26 04:42:08 Updated: mysql-community-libs-compat-8.0.29-1.el7.x86_64
Apr 26 04:42:21 Updated: mysql-shell-8.0.29-1.el7.x86_64

Created on Apr 26, 2022 2:25:19 PM

Last change on Apr 27, 2022 6:37:59 AM by  Felix Wiesneth [Paessler Support]



Votes:

0

As we updated the MySQL data library that PRTG uses to version 8.0.28, it should not affect version 8.0.29.

You might also find further information to this error in the log files of the affected sensor. For this you can activate the "Store Result" option in the sensor settings. You'll then find the logs on the corresponding probe at "C:\ProgramData\Paessler\PRTG Network Monitor\Logs\sensors".

If you want us to take a closer look as well, feel free to reach out to us directly per mail at [email protected].

Created on Apr 27, 2022 7:25:41 AM by  Timo Dambach [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.