Ad Widget

Collapse

[1.6.1pre] casting of userparams type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tekknokrat
    Senior Member
    • Sep 2008
    • 140

    #1

    [1.6.1pre] casting of userparams type

    I have put these userparam together which give me temp. of cpu:

    UserParameter=up.sensor,sensors|sed -n '/Core 0/p'|sed 's/Core 0: *+\([0-9]\{1,3\}\)\.\([0-9]\{1,3\}\).*/\1.\2/'

    zabbix_get receives correct:

    $ zabbix_get -s 192.168.2.185 -k 'up.sensor'

    37.0
    But when looking in latest data it shows me:

    Temperature of Core 0 16 Oct 16:57:41 39
    which is only the trunced value. Type is numeric (float).

    zabbix_agent shows me
    Code:
    $ zabbix_agent -c /etc/zabbix/zabbix_agentd.conf -t 'up.sensor'
    up.sensor                                     [t|37.0]
    zabbix_agentd even shows me ZBX_NOTSUPPORTED:

    Code:
    $ zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t 'up.sensor'
    up.sensor                                     [m|ZBX_NOTSUPPORTED]
    Is the seperator autodetermined when using UserParams or do I have a mistake in my config? I would like to have graphs based on the whole values, sry too be pedantic.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    For some reason ZABBIX 1.6 agent does not process user parameters with -t options. This will be fixed.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      this was fixed at some point, but later (accidentally ?) reverted. see http://www.zabbix.com/forum/showthread.php?t=11560
      Zabbix 3.0 Network Monitoring book

      Comment

      Working...