Ad Widget

Collapse

No support for Application.MySQL in 1.1beta6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krusty
    Senior Member
    • Oct 2005
    • 222

    #1

    No support for Application.MySQL in 1.1beta6

    Hi, i want to use the items from Application.MySQL. I have added the items to my zabbixserver host to get infromation about the mysql database. But even i changed the status to monitored and i refesh the page i got not supported. Have anyone an idea why?
    For your infromation i uncomment the following lines in zabbix_agentd.conf

    Code:
    UserParameter=mysql.ping,mysqladmin -uroot -ppassword ping|grep alive|wc -l
    UserParameter=mysql.uptime,mysqladmin -uroot -ppassword status|cut -f2 -d":"|cut -f1 -d"T"
    UserParameter=mysql.threads,mysqladmin -uroot -ppassword status|cut -f3 -d":"|cut -f1 -d"Q"
    UserParameter=mysql.questions,mysqladmin -uroot -ppassword status|cut -f4 -d":"|cut -f1 -d"S"
    UserParameter=mysql.slowqueries,mysqladmin -uroot -ppassword status|cut -f5 -d":"|cut -f1 -d"O"
    UserParameter=mysql.qps,mysqladmin -uroot -ppassword status|cut -f9 -d":"
    UserParameter=mysql.version,mysql -V
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Have you restarted ZABBIX agent?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • krusty
      Senior Member
      • Oct 2005
      • 222

      #3
      Originally posted by Alexei
      Have you restarted ZABBIX agent?
      Yes, do you mean zabbix_agent oder zabbix_agentd? I restarted zabbix_agentd.

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Yes, I mean zabbix_agentd. Can you run these command in command line under user 'zabbix'?
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • krusty
          Senior Member
          • Oct 2005
          • 222

          #5
          i got this error

          Code:
          zabbix@suse:/var/lib/mysql> /etc/init.d/zabbix_agentd start
          Starting zabbix_agentd startproc: cannot stat /proc/24995/exe: Permission denied
                                                                                failed
          zabbix@suse:/var/lib/mysql>
          but if i look with ps -A the prozesstree, i see that zabbix_agentd is running.

          Code:
          24997 ?        00:00:00 zabbix_agentd
          24998 ?        00:00:00 zabbix_agentd
          24999 ?        00:00:00 zabbix_agentd
          25000 ?        00:00:00 zabbix_agentd
          25001 ?        00:00:00 zabbix_agentd
          25002 ?        00:00:00 zabbix_agentd

          Comment

          • elkor
            Senior Member
            • Jul 2005
            • 299

            #6
            well, that's kind of odd.
            can you stop it?

            what user are you doing this as? zabbix should be started as root as it assumes the zabbix user after startup.

            Comment

            • krusty
              Senior Member
              • Oct 2005
              • 222

              #7
              Originally posted by elkor
              well, that's kind of odd.
              can you stop it?
              yes i can stop it but i can't start it.

              Originally posted by elkor
              what user are you doing this as? zabbix should be started as root as it assumes the zabbix user after startup.
              i use user zabbix

              Comment

              • elkor
                Senior Member
                • Jul 2005
                • 299

                #8
                start it as root (or use sudo to root) and see if you still have problems

                Comment

                • krusty
                  Senior Member
                  • Oct 2005
                  • 222

                  #9
                  yes i have the same problem

                  Comment

                  • yopito
                    Junior Member
                    • Sep 2005
                    • 7

                    #10
                    No support for Application.MySQL in 1.1beta6: invalid data type

                    Hello,

                    I have the same problem with the use of mysql.qps as defined below in zabbix_agentd.conf (this is the default value supplied by the zabbix distribution):

                    Code:
                    UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
                    In fact, the zabbix_agentd binary is working nice, but it seems to send this data as string and not as number:

                    Code:
                    % zabbix_agentd -p |grep "mysql.qps"
                    mysql.qps                                     [[B]s[/B]| 24.599]
                    And my ZABBIX server expects "numeric (float)" as data type ....

                    The same happens with mysql.threads, that make me think that the zabbix_agentd send every UserParameter returns as string datas .....

                    Does it means that the ZABBIX server does not handle well UserParameter "functions" or is it coming from zabbix_agentd ???

                    my 0.02 EUR

                    Regards,

                    Yopito

                    Comment

                    • yopito
                      Junior Member
                      • Sep 2005
                      • 7

                      #11
                      Re: No support for Application.MySQL in 1.1beta6: invalid data type

                      sorry,

                      I forgot to post the relevant error of zabbix_server in my previous post:

                      Code:
                      22911:20060217:085457 Type of received value [ 31.904] is not suitable for [mysql.qps@amnesix]
                      Perharps is it the space " " just before the value (31.904) that let think zabbix server that this is not a numeric (float) value ?

                      Comment

                      • sfds

                        #12
                        Originally posted by yopito
                        Perharps is it the space " " just before the value (31.904) that let think zabbix server that this is not a numeric (float) value ?
                        Hello
                        I solved this problem adding another cut at the end of the lines

                        Example
                        Code:
                        UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"| cut -f2 -d" "
                        It worked for me on FC4 and Zabbix 1.1beta6

                        Comment

                        • krusty
                          Senior Member
                          • Oct 2005
                          • 222

                          #13
                          i will check it on monday. Thanks for your tip.

                          Comment

                          • ryanboyce
                            Junior Member
                            • Apr 2006
                            • 2

                            #14
                            Fixed custom User Parameters for MySQL

                            Using v1.1beta8

                            The User Parameters for MySQL monitoring in a default install in zabbix_agentd.conf didn't work. To get them to work I had to change them to this:

                            UserParameter=mysql.ping[*],/usr/local/mysql/bin/mysqladmin -uXXXX -pXXXX ping|grep alive|wc -l]


                            And then in the front end my key is:
                            mysql.ping[*]
                            mysql.slowqueries[*]
                            etc. etc.

                            Comment

                            Working...