Dear kind Cacti Masters
I am facing some issue which is not working graph of Hourly(1 Minute Average) on Graph Addition Wizard.
When I created some graphs of Hourly(1 Minute Average) on Graph Addition Wizard, following error was come up on the attachment.
Notice: Undefined offset: 4 in /var/www/cacti/plugins/reports/reports_edit.php on line 479
Also if I check out some 1 Minute Average graph on "Preview Report".
it said
Notice: Undefined offset: 4 in /var/www/cacti/plugins/reports/functions.php on line 74
I changed some parameters on reports_edit.php and functions.php.
But I could not make it.....
(When I changed some syntax on them, it was getting worse to come up other error messages....)
I appreciate if you would provide me your strong advice
Graph Addition Wizard for Hourly(1 Minute Average)on Reports
Moderators: Developers, Moderators
Graph Addition Wizard for Hourly(1 Minute Average)on Reports
- Attachments
-
- error_functions.JPG (33.68 KiB) Viewed 6307 times
-
- error_reports_edit.JPG (23.38 KiB) Viewed 6307 times
did you ever get this figured out?
I have a similar issue in that i have the same templates applied to all hosts yet reporting on host ID 3 is fine while host ID 6 gives me a similar error to yours ... If I select the default graph (instead of the one i want), it seems to work.
bug in graph selection on reports plugin?
here's my error:
PHP Notice: Undefined offset: 5 in /var/www/html/cacti/plugins/reports/reports_edit.php on line 479, referer: http://192.168.167.10/cacti/plugins/reports/reports.php
I have a similar issue in that i have the same templates applied to all hosts yet reporting on host ID 3 is fine while host ID 6 gives me a similar error to yours ... If I select the default graph (instead of the one i want), it seems to work.
bug in graph selection on reports plugin?
here's my error:
PHP Notice: Undefined offset: 5 in /var/www/html/cacti/plugins/reports/reports_edit.php on line 479, referer: http://192.168.167.10/cacti/plugins/reports/reports.php
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Did either of you guys import the reports.sql file included ? You probably have two reports_ tables in Cacti.
Drop these, and then run the enclosed reports.sql instead. I personally don't have this error, and this is how I did it.
Regds
Drop these, and then run the enclosed reports.sql instead. I personally don't have this error, and this is how I did it.
Regds
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Yeah I did import the reports.sql and I only have one table of each (reports and reports_data)
Is the rra_id supposed to be 0? I guess I could manually change the local_graph_id to the graph I want?
mysql returns for both tables:
mysql> select * from reports
-> ;
+----+---------------------------------------+------+--------+-----------------------+--------+----------+---------+
| id | name | hour | minute | email | rtype | lastsent | daytype |
+----+---------------------------------------+------+--------+-----------------------+--------+----------+---------+
| 1 | 24 Hour Storage Report (BUGS IN THIS) | 9 | 0 | trentt@nothing.com | attach | 0 | 1 |
+----+---------------------------------------+------+--------+-----------------------+--------+----------+---------+
1 row in set (0.00 sec)
mysql> select * from reports_data;
+----+----------+--------+----------------+--------+------+-------+------+--------+
| id | reportid | hostid | local_graph_id | rra_id | type | item | data | gorder |
+----+----------+--------+----------------+--------+------+-------+------+--------+
| 1 | 0 | 5 | 29 | 0 | 7 | graph | | 1 |
| 2 | 0 | 5 | 28 | 0 | 2 | graph | | 1 |
| 3 | 0 | 5 | 28 | 0 | 1 | graph | | 1 |
| 11 | 1 | 6 | 37 | 0 | 1 | graph | | 4 |
| 10 | 1 | 5 | 29 | 0 | 1 | graph | | 3 |
| 9 | 1 | 4 | 22 | 0 | 1 | graph | | 2 |
| 8 | 1 | 3 | 15 | 0 | 1 | graph | | 1 |
| 12 | 1 | 10 | 64 | 0 | 1 | graph | | 5 |
+----+----------+--------+----------------+--------+------+-------+------+--------+
8 rows in set (0.00 sec)
Is the rra_id supposed to be 0? I guess I could manually change the local_graph_id to the graph I want?
mysql returns for both tables:
mysql> select * from reports
-> ;
+----+---------------------------------------+------+--------+-----------------------+--------+----------+---------+
| id | name | hour | minute | email | rtype | lastsent | daytype |
+----+---------------------------------------+------+--------+-----------------------+--------+----------+---------+
| 1 | 24 Hour Storage Report (BUGS IN THIS) | 9 | 0 | trentt@nothing.com | attach | 0 | 1 |
+----+---------------------------------------+------+--------+-----------------------+--------+----------+---------+
1 row in set (0.00 sec)
mysql> select * from reports_data;
+----+----------+--------+----------------+--------+------+-------+------+--------+
| id | reportid | hostid | local_graph_id | rra_id | type | item | data | gorder |
+----+----------+--------+----------------+--------+------+-------+------+--------+
| 1 | 0 | 5 | 29 | 0 | 7 | graph | | 1 |
| 2 | 0 | 5 | 28 | 0 | 2 | graph | | 1 |
| 3 | 0 | 5 | 28 | 0 | 1 | graph | | 1 |
| 11 | 1 | 6 | 37 | 0 | 1 | graph | | 4 |
| 10 | 1 | 5 | 29 | 0 | 1 | graph | | 3 |
| 9 | 1 | 4 | 22 | 0 | 1 | graph | | 2 |
| 8 | 1 | 3 | 15 | 0 | 1 | graph | | 1 |
| 12 | 1 | 10 | 64 | 0 | 1 | graph | | 5 |
+----+----------+--------+----------------+--------+------+-------+------+--------+
8 rows in set (0.00 sec)
<img class='graphimage' id='graph_28' src='graph_image.php?action=view&local_graph_id=28&rra_id=7' border='0' alt='fileserver00 - Used Space - C: Label: Seri'>
So that is the correct the graph I want emailed ...
I manually set the info in reports_data to:
id=13 reportid=1 hostid=5 local_graph_id=2 rra_id=7 type=7(WHAT IS THIS SUPPOSED TO BE?) item=graph data= gorder=6
it just prints an empty graph for me with the wrong timelines as well ...
So that is the correct the graph I want emailed ...
I manually set the info in reports_data to:
id=13 reportid=1 hostid=5 local_graph_id=2 rra_id=7 type=7(WHAT IS THIS SUPPOSED TO BE?) item=graph data= gorder=6
it just prints an empty graph for me with the wrong timelines as well ...
Who is online
Users browsing this forum: No registered users and 4 guests