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'
But when looking in latest data it shows me:
which is only the trunced value. Type is numeric (float).
zabbix_agent shows me
zabbix_agentd even shows me 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.
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
Temperature of Core 0 16 Oct 16:57:41 39
zabbix_agent shows me
Code:
$ zabbix_agent -c /etc/zabbix/zabbix_agentd.conf -t 'up.sensor' up.sensor [t|37.0]
Code:
$ zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t 'up.sensor' up.sensor [m|ZBX_NOTSUPPORTED]
Comment