Ad Widget

Collapse

UserParameter datatype

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • keptyn
    Junior Member
    • Jun 2011
    • 2

    #1

    UserParameter datatype

    I've problem with correct definition and using of UserParameter.

    I've defined in zabbix_agentd.conf a parameter:

    UserParameter=dw.rpt_tbs_pcent_free,/etc/zabbix/externalscripts/rpt_tbs_pcent_free.sh

    When I start above script it works:
    [oracle@mis ~]$ /etc/zabbix/externalscripts/rpt_tbs_pcent_free.sh
    49.59
    [oracle@mis ~]$


    When I ask deamon it replies:
    [oracle@mis bin]$ ./zabbix_agentd -t dw.rpt_tbs_pcent_free
    dw.rpt_tbs_pcent_free [t|49.59]
    [oracle@mis bin]$


    I added parameter (
    Type: Zabbix agent
    Key: dw.rpt_tbs_pcent_free
    Type of information: Numeric (float)
    Units: %
    ) and I tried to show it on a graph.

    The graph legend says: no data.
    Item configuration is changed to: Not supported.

    I suppose that a problem may be effect of getting value as text [t|49.59]. Is it possible? Can I fix it?

    TIA
    --
    k
  • keptyn
    Junior Member
    • Jun 2011
    • 2

    #2
    I've solved this problem.
    There was a mistake inside sh script and Zabbix console has got a text value with error description.

    Command:
    ./zabbix_agentd -t dw.rpt_tbs_pcent_free
    still displays:
    dw.rpt_tbs_pcent_free [t|49.59]
    but the graph is OK and data is available.
    --
    k

    Comment

    Working...