Ad Widget

Collapse

MySQL monitoring error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vsmjoao
    Junior Member
    • Oct 2020
    • 21

    #1

    MySQL monitoring error

    Hi, I'm trying to monitor a MySQL database using the standard template that Zabbix provides. However, I am experiencing some issues when I go to collect the data.

    I followed the entire tutorial on the Zabbix website (https://www.zabbix.com/br/integratio...7YMDTECwcScSOw) and it still doesn't work. When I do the collection test through mysql.ping, the error is returned: "Item does not allow parameters."


    I am using the following specifications to host the MySQL database:

    CentOS Linux release 8.4.2105
    mysql.x86_64 8.0.26-1.module_el8.4.0+915+de215114

    mysql-common.x86_64 8.0.26-1.module_el8.4.0+915+de215114
    mysql-errmsg.x86_64 8.0.26-1.module_el8.4.0+915+de215114
    mysql-server.x86_64 8.0.26-1.module_el8.4.0+915+de215114
    php-mysqlnd.x86_64 7.4.24-1.el8.remi
    php-pecl-mysql.x86_64 1.0.0-0.23.20190415.d7643af.el8.remi.7.4


    Click image for larger version

Name:	Screenshot_1.png
Views:	1657
Size:	11.8 KB
ID:	439785

    Click image for larger version

Name:	274140392_4781517398634504_8614539123403941879_n.jpg
Views:	1734
Size:	71.7 KB
ID:	439784
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by vsmjoao
    Hi, I'm trying to monitor a MySQL database using the standard template that Zabbix provides. However, I am experiencing some issues when I go to collect the data.

    I followed the entire tutorial on the Zabbix website (https://www.zabbix.com/br/integratio...7YMDTECwcScSOw) and it still doesn't work. When I do the collection test through mysql.ping, the error is returned: "Item does not allow parameters."
    The error message "Item does not allow parameters" strongly points to some kind of error with how the custom item type "mysql.ping" is configured. Based on the instructions you followed, that item (and probably some others) would be defined in the "template_db_mysql.conf" that you copied into /etc/zabbix/zabbix_agentd.d/ in Step 2. Verify that file is present on the client in question, verify it's readable by the zabbix agent. Make sure the agent on that system has been restarted, as recommended in Step 2.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      If it already says "Item does not allow parameters", then agent knows about UserParameter or it would say "Unsupported item key".
      So it something with the Userparameter, that it does not like...
      Last time I had to use UserParameters (but it was a while ago), I also had to add "UnsafeUserParameters=1" to agent config also, or it would fail with those wildcards...

      Comment

      • vsmjoao
        Junior Member
        • Oct 2020
        • 21

        #4
        I updated my Zabbix Agent to version 6.0 and the connection test went well. However, on Zabbix Server it still doesn't work. I think it must be something related to the version. My Zabbix Server is at Version 5.4.8. Is there any way around this?

        Click image for larger version

Name:	Screenshot_2.png
Views:	1646
Size:	5.8 KB
ID:	439907

        Click image for larger version

Name:	Screenshot_3.png
Views:	1667
Size:	125.0 KB
ID:	439906

        Comment

        Working...