Ad Widget

Collapse

MySQL monitor failing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sprsad18
    Junior Member
    • Dec 2015
    • 7

    #1

    MySQL monitor failing

    Hi All,

    I have configured MySQL & also setup Zabbix to monitor the MySQL process.
    But I'm not able to successfully achieve MySQL monitoring.

    Can someone please help.

    Sorry this is my 1st week with Zabbix, & not much aware of lot of things here.
    Do let me know if you need any info to debug & solve this issue.

    Error shown in Zabbix:
    ================
    Received value [sh: mysqladmin: command not found0] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]

    From Linux shell:
    ============
    [root@neuro01 apache-tomcat-7.0.62]# which mysql
    /usr/local/sbin/mysql
    [root@neuro01 apache-tomcat-7.0.62]# which mysqladmin
    /usr/local/sbin/mysqladmin
    [root@neuro01 apache-tomcat-7.0.62]# mysql -uroot -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 50047
    Server version: 5.5.46-log MySQL Community Server (GPL)

    Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.

    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

    mysql>


    Thanks,
    Prasad
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    hello and welcome to zabbix!

    HOW would you like to monitor you mysql-database? can you please post you item config or a screenshot?
    Debian-User

    Sorry for my bad english

    Comment

    • sprsad18
      Junior Member
      • Dec 2015
      • 7

      #3
      >HOW would you like to monitor you mysql-database?

      Want to see if MySQL process is up & running.

      If possible, if MySQL is not dishonouring the user queries, or not going unresponsive.

      Usage stats of MySQL, the cpu, memory etc.

      >can you please post you item config or a screenshot?
      PFA
      Attached Files

      Comment

      • shinguz
        Junior Member
        • Apr 2012
        • 4

        #4
        FromDual Performance Monitor for MySQL (fpmmm)

        You can try our MySQL Performance Monitor which reports to Zabbix:

        Comment

        • Steveo
          Member
          • Jun 2013
          • 31

          #5
          Did you configure the the Agent UserParameter section correctly? I have no issue monitoring our mySQL.

          Comment

          • sprsad18
            Junior Member
            • Dec 2015
            • 7

            #6
            I have no issues monitoring the other OS parameters like CPU,Memory etc
            Attached Files

            Comment

            • Steveo
              Member
              • Jun 2013
              • 31

              #7
              The mySQL UserParameter section is not configured by default in the zabbix_server.conf, you need to make sure it is enabled and configure it to match your installation.

              Comment

              • sprsad18
                Junior Member
                • Dec 2015
                • 7

                #8
                Thanks for the useful info.
                I'm trying to add the mysql userparameters
                But it fails with below error message


                [root@neuro01 ~]# /etc/init.d/zabbix-agent restart
                Shutting down Zabbix agent: [FAILED]
                Starting Zabbix agent: zabbix_agentd [34997]: ERROR: cannot add user parameter "mysql.ping,/usr/local/mysql/bin/mysqladmin -uroot -proot ping|grep alive|wc -l": key "mysql.ping" already exists
                [FAILED]

                [root@neuro01 ~]# grep "mysql.ping" /etc/zabbix/zabbix_agentd.conf
                UserParameter=mysql.ping,/usr/local/mysql/bin/mysqladmin -uroot -proot ping|grep alive|wc -l
                [root@neuro01 ~]#

                Comment

                • sprsad18
                  Junior Member
                  • Dec 2015
                  • 7

                  #9
                  BTW, I got the steps to configure mysql, from below link

                  Comment

                  • Colttt
                    Senior Member
                    Zabbix Certified Specialist
                    • Mar 2009
                    • 878

                    #10
                    please try
                    Code:
                     grep -R "mysql.ping" /etc/zabbix/*
                    on the screenshot i see "mysql command not found" did you install the mysql-client on the machine?
                    Debian-User

                    Sorry for my bad english

                    Comment

                    • sprsad18
                      Junior Member
                      • Dec 2015
                      • 7

                      #11
                      Thanks a lot. My query is solved.
                      Zabbix server is able to monitor MySQL smoothly.

                      Wish you Merry Christmas & a very Happy New Year (in advance)

                      Comment

                      Working...