Hello.
And so, our condemnation for the implementation of the plugin is now moved to this forum.
Now the plugin is normally activated and does not show any errors if we do not add maps.
2018/01/12 10:58:54 - WEATHERMAP STATS: Weathermap 1.0.0dev run complete - Fri, 12 Jan 18 10:58:54 +0200: 0 maps were run in 0.00 seconds with 0 warnings.
2018/01/12 10:58:54 - WEATHERMAP Weathermap 1.0.0dev starting - Normal logging mode. Turn on DEBUG in Cacti for more information
After add map, we have many error on cacti log:
2018/01/12 12:44:07 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti10-plugin.php: 14 main)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 93 dispatchRequest)(/plugins/weathermap/lib/Weathermap/UI/UIBase.php: 136 handleDefaultView)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 245 drawFullMapView)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 454 drawOneFullMap)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 493 CactiErrorHandler)(/lib/functions.php: 4434 cacti_debug_backtrace)
2018/01/12 12:44:07 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$configfile in file: /var/www/data/cacti/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php on line: 493
2018/01/12 12:44:21 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'
2018/01/12 12:44:21 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler)(/lib/functions.php: 4472 cacti_debug_backtrace)
thrown in file: /var/www/data/cacti/plugins/weathermap/lib/Weathermap/Core/Map.php on line: 889
#6 {main}
#5 /var/www/data/cacti/poller.php(603): api_plugin_hook('poller_bottom')
#4 /var/www/data/cacti/lib/plugins.php(73): api_plugin_run_plugin_hook('poller_bottom', 'weathermap', 'weathermap_poll...', Array)
#3 /var/www/data/cacti/lib/plugins.php(170): weathermap_poller_bottom(Array)
#2 /var/www/data/cacti/plugins/weathermap/lib/Weathermap/Integrations/Cacti/cacti-plugin-poller.php(176): Weathermap\Poller\runMaps('/var/www/data/c...')
#1 /var/www/data/cacti/plugins/weathermap/lib/Weathermap/Poller/poller-common.php(85): Weathermap\Poller\MapRuntime->run()
#0 /var/www/data/cacti/plugins/weathermap/lib/Weathermap/Poller/MapRuntime.php(189): Weathermap\Core\Map->writeDataFile('/var/www/data/c...')
Stack trace:
2018/01/12 12:44:21 - ERROR PHP ERROR in Plugin 'weathermap': Uncaught Error: Call to undefined method Weathermap\Core\MapNode::my_type() in /var/www/data/cacti/plugins/weathermap/lib/Weathermap/Core/Map.php:889
2018/01/12 12:44:21 - WEATHERMAP Wrote map to /var/www/data/cacti/plugins/weathermap/output/081f1b096896a5713de6.png and /var/www/data/cacti/plugins/weathermap/output/081f1b096896a5713de6.thumb.png
2018/01/12 12:44:21 - WEATHERMAP About to write image file. If this is the last message in your log, increase memory_limit in php.ini () [WMPOLL01] : memory_get_usage() says 10.4MBytes used. Limit is 512M
2018/01/12 12:44:21 - WEATHERMAP Map: /var/www/data/cacti/plugins/weathermap/configs/ISTEC.conf -> /var/www/data/cacti/plugins/weathermap/output/081f1b096896a5713de6.html & /var/www/data/cacti/plugins/weathermap/output/081f1b096896a5713de6.png
2018/01/12 12:44:21 - WEATHERMAP Weathermap 1.0.0dev starting - Normal logging mode. Turn on DEBUG in Cacti for more information
Thanks to Cacti’s new exception handler, I think that’s actually only one error Should be resolved in #7587eca.
I am able to run maps in the poller without the plugin being disabled. Most of the user interface in Cacti is broken, but the poller does generate maps.
I can see that there is a lot more logging for things like missing fonts than there used to be. It’s not fatal, but just the way Cacti does things now.
I have pull the latest comment.
Now pliugin not disabled and map draw.
But on cacti log have error:
2018/01/15 09:38:00 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti10-plugin.php: 17 main)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 93 dispatchRequest)(/plugins/weathermap/lib/Weathermap/UI/UIBase.php: 136 handleDefaultView)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 245 drawFullMapView)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 462 drawOneFullMap)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 501 CactiErrorHandler)(/lib/functions.php: 4434 cacti_debug_backtrace)
2018/01/15 09:38:00 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$configfile in file: /var/www/data/cacti/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php on line: 501
2018/01/15 09:37:59 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti10-plugin.php: 17 main)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 93 dispatchRequest)(/plugins/weathermap/lib/Weathermap/UI/UIBase.php: 136 handleDefaultView)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 245 drawFullMapView)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 462 drawOneFullMap)(/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php: 501 CactiErrorHandler)(/lib/functions.php: 4434 cacti_debug_backtrace)
2018/01/15 09:37:59 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$configfile in file: /var/www/data/cacti/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiUserPlugin.php on line: 501
And on tab weathermap have php notice:
On browser console have this error:
main.js:1 GET http://localhost:8016/cacti/plugins/weathermap/weathermap-cacti10-plugin.php?action=maplist net::ERR_CONNECTION_REFUSED
(anonymous) @ main.js:1
e.exports @ main.js:1
e.exports @ main.js:1
Promise resolved (async)
r.request @ main.js:1
r.(anonymous function) @ main.js:1
(anonymous) @ main.js:1
(anonymous) @ main.js:1
(anonymous) @ main.js:1
(anonymous) @ main.js:1
value @ main.js:1
commitLifeCycles @ main.js:1
n @ main.js:1
c @ main.js:1
l @ main.js:1
y @ main.js:1
h @ main.js:1
updateContainer @ main.js:1
(anonymous) @ main.js:1
unbatchedUpdates @ main.js:1
dt @ main.js:1
render @ main.js:1
(anonymous) @ main.js:1
t @ main.js:1
(anonymous) @ main.js:1
t @ main.js:1
(anonymous) @ main.js:1
(anonymous) @ main.js:1
main.js:1 Uncaught (in promise) Error: Network Error
at e.exports (main.js:1)
at XMLHttpRequest.d.onerror (main.js:1)
e.exports @ main.js:1
d.onerror @ main.js:1
Promise rejected (async)
(anonymous) @ main.js:1
(anonymous) @ main.js:1
(anonymous) @ main.js:1
value @ main.js:1
commitLifeCycles @ main.js:1
n @ main.js:1
c @ main.js:1
l @ main.js:1
y @ main.js:1
h @ main.js:1
updateContainer @ main.js:1
(anonymous) @ main.js:1
unbatchedUpdates @ main.js:1
dt @ main.js:1
render @ main.js:1
(anonymous) @ main.js:1
t @ main.js:1
(anonymous) @ main.js:1
t @ main.js:1
(anonymous) @ main.js:1
(anonymous) @ main.js:1
And when I try overlib graph:
weathermap-cacti10-plugin.php?nostate=true:283 Uncaught ReferenceError: overlib is not defined
at HTMLAreaElement.onmouseover (weathermap-cacti10-plugin.php?nostate=true:283)
onmouseover @ weathermap-cacti10-plugin.php?nostate=true:283
weathermap-cacti10-plugin.php?nostate=true:283 Uncaught ReferenceError: nd is not defined
at HTMLAreaElement.onmouseout (weathermap-cacti10-plugin.php?nostate=true:283)
onmouseout @ weathermap-cacti10-plugin.php?nostate=true:283
weathermap-cacti10-plugin.php?nostate=true:302 Uncaught ReferenceError: overlib is not defined
at HTMLAreaElement.onmouseover (weathermap-cacti10-plugin.php?nostate=true:302)
onmouseover @ weathermap-cacti10-plugin.php?nostate=true:302
weathermap-cacti10-plugin.php?nostate=true:302 Uncaught ReferenceError: nd is not defined
at HTMLAreaElement.onmouseout (weathermap-cacti10-plugin.php?nostate=true:302)
onmouseout @ weathermap-cacti10-plugin.php?nostate=true:302
Hello.
I look that you update code.
I have pull the latest commit and have some information about latest commit.
I go to Weathermaps configs and look that page not have any information about maps.
I watch XHR data and look that json data have notice:
<br />
<b>Notice</b>: Undefined property: Weathermap\Integrations\Cacti\WeatherMapCacti10ManagementPlugin::$managementURL in <b>/var/www/data/cacti/plugins/weathermap/lib/Weathermap/Integrations/Cacti/WeatherMapCactiManagementPlugin.php</b> on line <b>180</b><br />
{"wm_version":"1.0.0dev","page_style":"thumbs","cycle_time":"auto","show_all_tab":false,"map_selector":true,"thumb_url":"weathermap-cacti10-plugin-mgmt.php?action=viewthumb","image_url":"weathermap-cacti10-plugin-mgmt.php?action=viewimage","editor_url":"weathermap-cacti10-plugin-editor.php","maps_url":"weathermap-cacti10-plugin-mgmt.php?action=dumpmaps","docs_url":"docs\/","management_url":null}
And on editor have error:
It’s really strange that you get these errors and I don’t! Fixed the first one anyway. I haven’t looked at the editor for a few months, so it will definitely have issues.
The Cacti UI will not be in a usable state for a while now.
Thanks for information.
I have pull your latest commit about 1 minute ago and now we dont have notice on XHR data
Hello. I have pull the latest code from master branch and on editor my browser console have next error:
Uncaught SyntaxError: Unexpected token <
jquery.min.js:2 jQuery.Deferred exception: fromplug is not defined ReferenceError: fromplug is not defined
at attach_click_events (http://noc/cacti/plugins/weathermap/editor-resources/editor.js:83:5)
at HTMLDocument.initJS (http://noc/cacti/plugins/weathermap/editor-resources/editor.js:59:9)
at j (http://noc/cacti/plugins/weathermap/vendor/jquery/dist/jquery.min.js:2:29999)
at k (http://noc/cacti/plugins/weathermap/vendor/jquery/dist/jquery.min.js:2:30313) undefined
r.Deferred.exceptionHook @ jquery.min.js:2
jquery.min.js:2 jQuery.Deferred exception: imlist is not defined ReferenceError: imlist is not defined
at HTMLDocument.initJS16 (http://noc/cacti/plugins/weathermap/editor-resources/editor16.js:13:17)
at j (http://noc/cacti/plugins/weathermap/vendor/jquery/dist/jquery.min.js:2:29999)
at k (http://noc/cacti/plugins/weathermap/vendor/jquery/dist/jquery.min.js:2:30313) undefined
r.Deferred.exceptionHook @ jquery.min.js:2
jquery.min.js:2 Uncaught ReferenceError: fromplug is not defined
at attach_click_events (editor.js:83)
at HTMLDocument.initJS (editor.js:59)
at j (jquery.min.js:2)
at k (jquery.min.js:2)
jquery.min.js:2 Uncaught ReferenceError: imlist is not defined
at HTMLDocument.initJS16 (editor16.js:13)
at j (jquery.min.js:2)
at k (jquery.min.js:2)
/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)
How are you accessing the editor? I just tried going directly to editor.php, and it all worked fine for me - icon dropdown population, no errors in console.
Clicked on the editor button from the map view.
On Githab @netniV found some mistake https://github.com/howardjones/network-weathermap/issues/126#issuecomment-362512937
In the words of Shaggy, ‘It wasn’t me’
Hi Everyone,
I am running some tests and using weathermap 0.98 standalone on cacti 1.x and well works quite good besides when CACTI works in BOOST mode.
Do you know if the current status of the plugin for cacti works well with boost while using the standalone version to produce a map? That would work nicely with me until cacti plugin gets finished.
Personal note : if I may I believe that if Howie would start a crowfounding project for this, it would be very satisfying for him, I’d be in in no time like I was for GNS3 when they did.
EDIT: I installed weathermap plugin for CACTI 1.x and installed well, created a map, just I am missing how to make it render through the polling cycle as the UI of the plugin doesn’t allow me to add it anyway