my GPSMAP was not working anymore after upgradine to the latest release of Cacti. No device shows up at the map which is correctly loaded.
The problem is the (I guess newly integrated) cross site request forgery library (csrf-magic).
When you look at the html code generated from gpsmap.php, at the bootom you see the code messed up. A Quick fix (I did'nt have time to look for a better solution) is to not use the csrf-magic library. (As I use cacti only in a intranet I have no problem living without it).
Just comment out the following lines in your "include/global.php" file (from line 226 onwards):
Code: Select all
/* cross site request forgery library */
//include_once($config["include_path"] . "/csrf/csrf-magic.php");
//function csrf_startup() {
// global $config;
// csrf_conf('rewrite-js', $config['url_path'] . 'include/csrf/csrf-magic.js');
//}
Hans