Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Hello,
I've been trying to install weathermap for Cacti 1.x but keep running into this error when I click on weathermap tab. Maybe some permission issue? /configs and /output are owned by apache.
Getting a blank page when I click on weathermap tab. If I dont click, I dont see any errors in logs.
2020/04/02 10:28:45 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/weathermap/weathermap-cacti-plugin.php[68]:readfile(), CactiErrorHandler())
2020/04/02 10:28:45 - ERROR PHP WARNING in Plugin 'weathermap': readfile(/var/www/html/cacti/plugins/weathermap/output//b585915ea3d2fa648dd0.): failed to open stream: No such file or directory in file: /var/www/html/cacti/plugins/weathermap/weathermap-cacti-plugin.php on line: 68
2020/04/02 10:25:09 - WEATHERMAP STATS: Weathermap 0.98a run complete - Thu, 02 Apr 20 10:25:09 +0300: 1 maps were run in 0 seconds with 0 warnings.
2020/04/02 10:25:09 - WEATHERMAP [Map 1] simple.conf: Wrote map to /var/www/html/cacti/plugins/weathermap/output/b585915ea3d2fa648dd0.png and /var/www/html/cacti/plugins/weathermap/output/b585915ea3d2fa648dd0.thumb.png
2020/04/02 10:25:09 - SYSTEM SYSLOG STATS: Time:0.02 Deletes:0 Incoming:0 Removes:0 XFers:0 Alerts:0 Alarms:0 Reports:0
2020/04/02 10:25:09 - SYSTEM MONITOR STATS: Time:0.0063 Reboots:0 DownDevices:0 Notifications:0 Purges:0
2020/04/02 10:25:09 - WEATHERMAP [Map 1] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
2020/04/02 10:25:09 - WEATHERMAP [Map 1] simple.conf: Map: /var/www/html/cacti/plugins/weathermap/configs/simple.conf -> /var/www/html/cacti/plugins/weathermap/output/b585915ea3d2fa648dd0.html & /var/www/html/cacti/plugins/weathermap/output/b585915ea3d2fa648dd0.png
2020/04/02 10:25:09 - WEATHERMAP Weathermap 0.98a starting - Normal logging mode. Turn on DEBUG in Cacti for more information
php-pear is installed.
Are ionCube PHP Loader + ionCube24 required? I see that those arent loaded.
I've updated the weathermap code on github to fix some of the issue mentioned in this thread as well as a pull request to fix some incompatbilitites with Thold.
TheWitness wrote: ↑Thu Apr 16, 2020 4:17 pm
Bring up your debug window in a new separate page, and then watch the "console" for JavaScript issues as it comes time for the page to refresh.
I've done this in IE and Chrome.
IE
SCRIPT438: Object doesn't support property or method 'reload'
map-cycle.js (148,17)
Chrome
map-cycle.js:148 Uncaught TypeError: that.reload is not a function
at map-cycle.js:148
This prevents the map from refreshing when not put in full screen mode. For some reason when in Full Screen mode it refreshes but the exact same error is still there. I think when you go Full Screen something else that is called is able to make the refresh happen. When I say fullscreen mode I am talking about the builtin icon on the weathermap page in the top left with the 4 green arrows going out in 4 directions.
It's been a while since I looked, but I think in fullscreen, I provide all the headers, including jquery etc, and in normal mode, Cacti does that. So it's probably related to that.
Looks like non full screen uses map-cycle.js and full screen uses jquery.min.js and idle-timer.min.js. I am probably wrong. I'm lookin in weathermap-cacti-plugin.php
Rno wrote: ↑Tue Mar 03, 2020 5:28 am
Anyone has a fix for the OVERLIBGRAPH function who is still not working ?
My 2 cents:
Add 'unsafe-eval' in lib/html.php and in include/global.php. Maybe changing html.php is enough.
The graphs are placed far from the cursor but at least are there.
Don't forget that this is quick and dirty/unsafe hack.
Thank you so much, this way is working although it's unsafe
Should this patch (adding 'unsafe-eval' to this 2 files) also work for Cacti 1.2.12? It seems the hover is still not working for me after a fresh install of cacti 1.2.12 on debian 10.4 (even with this unsafe-eval changes).
nicolatron wrote: ↑Mon Feb 03, 2020 10:57 am
Hello,
I'm not sure this is a weathermap plugin problem, but it seems the only place where i need this feature, so i'll check here first.
I can't horizontally scroll big maps, there is no scroll bars, resizing with control+wheel works ok, and I can visualize full map, vertical scrolling also works (mouse wheel).
I can horizontally scroll other web pages (like 4k jpg) with shift + mouse wheel, also tested with scrollanywhere plugin for firefox, same result.
If i get for instance manage devices, and change size (with ctrl+wheel) to the point where it doesn't fit screen i can't horizontally scroll neither.
Tested with firefox 68 and chrome (Versión 79.0.3945.130 (Build oficial) (64 bits)) in linux (both wayland and xwindows) and windows 7.
Test with 2 monitors resolutions 1680x1050 and 1600x900.
Cacti 1.2.8
Thanks
nicolatron wrote: ↑Mon Feb 03, 2020 10:57 am
I can't horizontally scroll big maps, there is no scroll bars, resizing with control+wheel works ok, and I can visualize full map, vertical scrolling also works (mouse wheel).
That worked like a charm, thank you very much!
Remember to reload browser cache for this change take effect. For firefox:
Hold down the Shift key and left-click the Reload button.
Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
Press "Command + Shift + R" (Mac)