Ad Widget

Collapse

how to test agent UserParameter from zabbix server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uknet80
    Member
    • Apr 2010
    • 55

    #1

    how to test agent UserParameter from zabbix server

    Hello friends,

    On agent machine there is UserParameter (UserParameter=mysql.qps,mysqladmin -uroot@localhost status|cut -f9 -d":")

    How can I send command through zabbix server terminal to check if mysql.qps is parameter is correct?

    thanks
  • f.koch
    Member
    Zabbix Certified Specialist
    • Feb 2010
    • 85

    #2
    Hi,

    you can:

    zabbix-server>zabbix_get -s <servername | ip> -p 10050 -k "mysql.qps"


    rgds flo

    Comment

    • uknet80
      Member
      • Apr 2010
      • 55

      #3
      Originally posted by f.koch
      Hi,

      you can:

      zabbix-server>zabbix_get -s <servername | ip> -p 10050 -k "mysql.qps"


      rgds flo

      thanks for your suggestion it worked.

      Comment

      • tasbirnitole
        Junior Member
        • Sep 2015
        • 12

        #4
        I have a
        Code:
        UserParameter = mount.check,/home/zabbix/mount.check.sh
        that runs a script having following command

        Code:
        test -d /mnt/test && echo 0
        to check if the mount exist or not.
        While checking it from the zabbix server with mentioned command as follows:

        Code:
        zabbix_get -s 192.168.201.18 10050 -k "mount.check"
        it shows:

        Code:
        ZBX_NOTSUPPORTED
        Please help, I actually need to create an item with trigger whenever the mount is not working.

        Thanks in advance.

        Comment

        Working...