-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
Affects Version/s: 7.0.24rc1, 7.4.8rc1, 8.0.0alpha2 (master)
-
Component/s: Frontend (F)
-
S26-W06/07
-
0.5
Steps to reproduce:
- Start Zabbix server ang agent
- Import the host -> test-host.yaml

- Open Monitoring -> Hosts -> test -> graphs, validate that pie graph with function last is displayed
- Open Data collection -> Hosts -> test -> Items
- Open Item -> item1
- Change the Type of information to Text, add preprocessing (Regular expression):
Parameters: 1 Output: text
- Update the item
- Open Monitoring -> Hosts -> test -> graphs
Result:
Console error is displayed, graph is broken
Error:
TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /home/zabbix/workspace/7.0/ui/include/classes/graphdraw/CPieGraphDraw.php:261
Stack trace:
#0 /home/zabbix/workspace/7.0/ui/include/classes/graphdraw/CPieGraphDraw.php(261): abs()
#1 /home/zabbix/workspace/7.0/ui/include/classes/graphdraw/CPieGraphDraw.php(636): CPieGraphDraw->selectData()
#2 /home/zabbix/workspace/7.0/ui/chart6.php(133): CPieGraphDraw->draw()
#3 {main}
Expected:
The expected result need to be confirmed with PO team. Currently the non-numeric data is passed for some functions of pie widget, which might cause the issues.
Most likely "No data" should be displayed, when item's type of information is changed to non-numeric one.