Ad Widget

Collapse

how to use UserParameter ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BusteR81
    Senior Member
    • Apr 2007
    • 150

    #1

    how to use UserParameter ?

    added below to my conf and restarted agentd

    UserParameter=mysql.totalsize,mysqlshow --status zabbix | cut -d \| -f 7,9,10 -s --output-delimiter="" | awk '{total += $1+$2+$3} END {print total}'

    it works :

    ./zabbix_agentd -t mysql.totalsize
    mysql.totalsize [t|150396]

    Q: how do u use the above to create an item for my host (zabbix-server)
    tried the below using "Zabbix agent" + "int" but not supported

    script[mysql.totalsize]
    Userparameter[mysql.totalsize]
  • shrinivas.bura
    Junior Member
    • Jun 2007
    • 22

    #2
    check http://www.zabbix.com/manual/v1.1/tu..._parameter.php

    Comment

    • BusteR81
      Senior Member
      • Apr 2007
      • 150

      #3
      Originally posted by shrinivas.bura
      1.4.1 zabbix

      tried Key=mysql.totalsize
      tried key=mysql.totalsize
      Key=[mysql.totalsize]
      key=[mysql.totalsize]

      key[mysql.totalsize] can 'save' but returns Not supported

      However none works

      cheers
      Attached Files
      Last edited by BusteR81; 31-07-2007, 11:59.

      Comment

      • jmb
        Junior Member
        • Jul 2007
        • 14

        #4
        Hi,

        Remove the 'Key=' from the Key field.

        Greets jm

        Comment

        Working...