Cacti / plugin_reportit

ReportIt Plugin for Cacti
GNU General Public License v2.0
7 stars 8 forks source link

syntax error, unexpected '|' in .../funct_calculate.php(531) : eval()'d code on line 1 #84

Open vishnubraj opened 4 years ago

vishnubraj commented 4 years ago

I am getting below error while running a particular report. Can you please check this. the same template is used for other reports and works fine. One particular report is giving this issue.



 Memory:  System: 512MB    Used: 6.25MB(1.22%)   Peak: 6.37MB(1.24%)

        ******* Interpretation *******
Array
(
    [0] => f_xth(95)*800/maxValue
    [1] => f_xth(95)*800/maxValue:traffic_in
    [2] => f_xth(95)*800/|query_NAN|
    [3] => f_xth(95)*800/|query_NAN|
    [4] => f_xth(95)*800/|query_NAN|
    [5] => f_xth(95)*800/|query_NAN|
    [6] => f_xth(95)*800/|query_NAN|
    [7] => f_xth( $data[$rra_index][$i], $cache[$i][2][$rra_index], 95)*800/|query_NAN|
)

PHP Parse error:  syntax error, unexpected '|' in /usr/share/cacti/plugins/reportit/lib/funct_calculate.php(531) : eval()'d code on line 1```
netniV commented 4 years ago

What settings do you have in place for the report?

vishnubraj commented 4 years ago

Below are the settings i have.. Sorry for the late responce

Screenshot 2019-08-08 at 3 12 39 PM Screenshot 2019-08-08 at 3 12 15 PM Screenshot 2019-08-08 at 3 11 54 PM
netniV commented 4 years ago

Can you export the report template and upload it here?

vishnubraj commented 4 years ago

reportit_templates_export_20190919_110141.xml.txt

Sorry for the late response.. Please find the attached template.. Please rename it to .xml