Hi,
I've just installed the Weathermap 0.97a plugin on Cacti 0.8.8 / PA 3.1. I've run into the following error in I'm unsure how to resolve. I tried installing this same plugin in a test install I have of 0.8.7i / PA3.1 and had no issue at all. The plugin architecture seems to be ok and I can see a couple references to weathermap in the plugin_realms table in MySQL.
Any ideas?
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\cacti\plugins\weathermap\weathermap-cacti-plugin.php on line 824
Call Stack
# Time Memory Function Location
1 0.0032 622080 {main}( ) ..\weathermap-cacti-plugin.php:0
2 0.1072 7307240 weathermap_get_valid_tabs( ) ..\weathermap-cacti-plugin.php:260
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\cacti\plugins\weathermap\weathermap-cacti-plugin.php on line 824
Call Stack
# Time Memory Function Location
1 0.0032 622080 {main}( ) ..\weathermap-cacti-plugin.php:0
2 0.1086 7306896 weathermap_thumbview( ) ..\weathermap-cacti-plugin.php:269
3 0.1110 7307976 weathermap_tabs( ) ..\weathermap-cacti-plugin.php:419
4 0.1110 7307976 weathermap_get_valid_tabs( ) ..\weathermap-cacti-plugin.php:838
PHP error with weathermap-cacti-plugin.php
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: PHP error with weathermap-cacti-plugin.php
Do the weathermap_maps and weathermap_data tables exist?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Re: PHP error with weathermap-cacti-plugin.php
Hi,
Thanks for getting back to me. Doesn't appear so, attached image is of the cacti sql db from both copies, one of the left is from cacti 0.8.8 and the right 0.8.7. Interestingly, though I'm not getting the php error in the 0.8.7 version, I can't seem to add / edit anything in the weathermap plugin, presumably because of no weathermap tables being present.
Thanks for getting back to me. Doesn't appear so, attached image is of the cacti sql db from both copies, one of the left is from cacti 0.8.8 and the right 0.8.7. Interestingly, though I'm not getting the php error in the 0.8.7 version, I can't seem to add / edit anything in the weathermap plugin, presumably because of no weathermap tables being present.
Re: PHP error with weathermap-cacti-plugin.php
Hey,
Did you manage to fix the problem? Seems I have the same with cacti 0.8.8a and weathermap 0.97a, activating the plugin does not create the database/tables needed for it to work. I can use the editor, but I am unable to create maps.
Thanks!
l.
[edit]
I install the plugin by copying the weathermap directory into plugins/ then do the "Install Old Plugin" available in the "Plugin management" page. It gets properly loaded and I can see "WEATHERMAP" tab in cacti, but nothing happens since the database table creation process does not work.
Cacti user has permissions to create tables:
Host: localhost
Db: cacti
User: cacti
Select_priv: Y
Insert_priv: Y
Update_priv: Y
Delete_priv: Y
Create_priv: Y
Drop_priv: Y
Grant_priv: N
References_priv: Y
Index_priv: Y
Alter_priv: Y
Create_tmp_table_priv: Y
Lock_tables_priv: Y
Create_view_priv: Y
Show_view_priv: Y
Create_routine_priv: Y
Alter_routine_priv: Y
Execute_priv: Y
Event_priv: Y
Trigger_priv: Y
Did you manage to fix the problem? Seems I have the same with cacti 0.8.8a and weathermap 0.97a, activating the plugin does not create the database/tables needed for it to work. I can use the editor, but I am unable to create maps.
Thanks!
l.
[edit]
I install the plugin by copying the weathermap directory into plugins/ then do the "Install Old Plugin" available in the "Plugin management" page. It gets properly loaded and I can see "WEATHERMAP" tab in cacti, but nothing happens since the database table creation process does not work.
Cacti user has permissions to create tables:
Host: localhost
Db: cacti
User: cacti
Select_priv: Y
Insert_priv: Y
Update_priv: Y
Delete_priv: Y
Create_priv: Y
Drop_priv: Y
Grant_priv: N
References_priv: Y
Index_priv: Y
Alter_priv: Y
Create_tmp_table_priv: Y
Lock_tables_priv: Y
Create_view_priv: Y
Show_view_priv: Y
Create_routine_priv: Y
Alter_routine_priv: Y
Execute_priv: Y
Event_priv: Y
Trigger_priv: Y
Re: PHP error with weathermap-cacti-plugin.php
Found the solution in:
http://forums.cacti.net/viewtopic.php?f=16&t=46431
along with adding the weathermap_settings
http://forums.cacti.net/viewtopic.php?f=16&t=46431
along with adding the weathermap_settings
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: PHP error with weathermap-cacti-plugin.php
This will be fixed in 0.97b - nearly ready!
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 3 guests