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.
spiffydudex wrote:
You have to remember that the data values are updated with your poller, not immediately. In order to get a coverage overlay, you will need to put devices in a group ID that is not 0. So, create a map template for the Motorola AP device type, set it as AP to True. Now when you edit the device properties you should get an extra box for Radius, Start and Stop degree. Radius will be automatically calculated to the furthest non-AP device in the group. If you do not have any other devices in the group, a radius of 0 will be used,(no devices to map distance). You can set a static radius if so desired. (I will have to check the code to see if this works without having any other devices in the group).
If setting a static radius does not work, I will do a bit of checking to see why the static radius is not being compliant. My suggestion for the time being is to include a dummy SM (even at the same coordinates as the AP or slightly off by a degree point) this will allow the radius generation portion of the code to work.
As for the saving issues, I will look into those, I didn't change much code in the setup file, so this is news to me.
I was playing with it for a good three hours. I understand that the map is updated at the end of each poller run. I did try setting a group other than zero. I do have a map template for device type Canopy AP that is set to AP=true. I do have start/stop degrees and a fixed radius value defined for each host. Since I'm not monitoring SMs, I guess that's the issue. I just figured it would do the radius overlay using the radius defined per host. That would be great if you could get it working that way!
Let me know if you need me to look deeper into the settings save issue, just tell me what to do and where to look (I'm not a code guy).
spiffydudex wrote:
You have to remember that the data values are updated with your poller, not immediately. In order to get a coverage overlay, you will need to put devices in a group ID that is not 0. So, create a map template for the Motorola AP device type, set it as AP to True. Now when you edit the device properties you should get an extra box for Radius, Start and Stop degree. Radius will be automatically calculated to the furthest non-AP device in the group. If you do not have any other devices in the group, a radius of 0 will be used,(no devices to map distance). You can set a static radius if so desired. (I will have to check the code to see if this works without having any other devices in the group).
If setting a static radius does not work, I will do a bit of checking to see why the static radius is not being compliant. My suggestion for the time being is to include a dummy SM (even at the same coordinates as the AP or slightly off by a degree point) this will allow the radius generation portion of the code to work.
As for the saving issues, I will look into those, I didn't change much code in the setup file, so this is news to me.
I was playing with it for a good three hours. I understand that the map is updated at the end of each poller run. I did try setting a group other than zero. I do have a map template for device type Canopy AP that is set to AP=true. I do have start/stop degrees and a fixed radius value defined for each host. Since I'm not monitoring SMs, I guess that's the issue. I just figured it would do the radius overlay using the radius defined per host. That would be great if you could get it working that way!
Let me know if you need me to look deeper into the settings save issue, just tell me what to do and where to look (I'm not a code guy).
I'm not sure what is going on with you not being able to save. On my test install everything works and the values are changed in the DB. Later today I am going to do a new cacti install (start 100% clean) and see what happens. I have confirmed the issue with the static radius not being set.
tosage wrote:Hello, thanks for the new version of the module.
My First feedback :
Nothing displaying on the map
Thanks for any advice
Please check your XML folder. Is there an all.xml? If so, is it populated with entries?
spiffydudex wrote:
You have to remember that the data values are updated with your poller, not immediately. In order to get a coverage overlay, you will need to put devices in a group ID that is not 0. So, create a map template for the Motorola AP device type, set it as AP to True. Now when you edit the device properties you should get an extra box for Radius, Start and Stop degree. Radius will be automatically calculated to the furthest non-AP device in the group. If you do not have any other devices in the group, a radius of 0 will be used,(no devices to map distance). You can set a static radius if so desired. (I will have to check the code to see if this works without having any other devices in the group).
If setting a static radius does not work, I will do a bit of checking to see why the static radius is not being compliant. My suggestion for the time being is to include a dummy SM (even at the same coordinates as the AP or slightly off by a degree point) this will allow the radius generation portion of the code to work.
As for the saving issues, I will look into those, I didn't change much code in the setup file, so this is news to me.
I was playing with it for a good three hours. I understand that the map is updated at the end of each poller run. I did try setting a group other than zero. I do have a map template for device type Canopy AP that is set to AP=true. I do have start/stop degrees and a fixed radius value defined for each host. Since I'm not monitoring SMs, I guess that's the issue. I just figured it would do the radius overlay using the radius defined per host. That would be great if you could get it working that way!
Let me know if you need me to look deeper into the settings save issue, just tell me what to do and where to look (I'm not a code guy).
I'm not sure what is going on with you not being able to save. On my test install everything works and the values are changed in the DB. Later today I am going to do a new cacti install (start 100% clean) and see what happens. I have confirmed the issue with the static radius not being set.
tosage wrote:Hello, thanks for the new version of the module.
My First feedback :
Nothing displaying on the map
Thanks for any advice
Please check your XML folder. Is there an all.xml? If so, is it populated with entries?
Yep i have a lot of xml, kml and -top.html file in the XML folder
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
Yep in the al.xml i have one marker
I tested with Firefox Seven 10.2 or Internet Explorer 9 Seven
Cacti Version - 0.8.8a
Plugin Architecture - 3.1
Poller Type - spine
Server Info - Linux
Web Server - Apache/2.2.22 (Ubuntu)
PHP - 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli)
MySQL - 5.5.29-0ubuntu0.12.04.2
RRDTool - 1.4.7
spiffydudex wrote:
As for the saving issues, I will look into those, I didn't change much code in the setup file, so this is news to me.
I know I had issues with not being able to save any settings in cacti 0.8.7i until I applied the patch for it here -> http://www.cacti.net/download_patches.php not sure if this is linked
spiffydudex wrote:
As for the saving issues, I will look into those, I didn't change much code in the setup file, so this is news to me.
I know I had issues with not being able to save any settings in cacti 0.8.7i until I applied the patch for it here -> http://www.cacti.net/download_patches.php not sure if this is linked
i have problem and it took me forever to figure it out, the port that Apache listens on is 88, i was not seeing the pin onthe google map but i was able to hover over and get the info. then when i inspect html , it is because it is looking for the graphic on port 80, not 88. i think i found the file to correct this but i am unsure how to add a port number to the string can anyone help.
[20:42:04.315] GET http://xx.xx.xx.xx:88/plugins/gpsmap/XML/all.xml [HTTP/1.1 200 OK 57ms]
[20:42:04.840] GET http://xx.xx.xx.xx/plugins/gpsmap/image ... /Green.png [HTTP/1.1 404 Not Found 52ms]
second line tries from port 80 not 88
is the proper file to fix this located in /var/www/cacti/plugins/gpsmap/includes/polling/iconskml.php
maybe this line:
deekdeek wrote:Hi i have cacti Version 0.8.7i with gpsmaps 1.70
i have problem and it took me forever to figure it out, the port that Apache listens on is 88, i was not seeing the pin onthe google map but i was able to hover over and get the info. then when i inspect html , it is because it is looking for the graphic on port 80, not 88. i think i found the file to correct this but i am unsure how to add a port number to the string can anyone help.
[20:42:04.315] GET http://xx.xx.xx.xx:88/plugins/gpsmap/XML/all.xml [HTTP/1.1 200 OK 57ms]
[20:42:04.840] GET http://xx.xx.xx.xx/plugins/gpsmap/image ... /Green.png [HTTP/1.1 404 Not Found 52ms]
second line tries from port 80 not 88
is the proper file to fix this located in /var/www/cacti/plugins/gpsmap/includes/polling/iconskml.php
maybe this line:
deekdeek wrote:Hi i have cacti Version 0.8.7i with gpsmaps 1.70
i have problem and it took me forever to figure it out, the port that Apache listens on is 88, i was not seeing the pin onthe google map but i was able to hover over and get the info. then when i inspect html , it is because it is looking for the graphic on port 80, not 88. i think i found the file to correct this but i am unsure how to add a port number to the string can anyone help.
[20:42:04.315] GET http://xx.xx.xx.xx:88/plugins/gpsmap/XML/all.xml [HTTP/1.1 200 OK 57ms]
[20:42:04.840] GET http://xx.xx.xx.xx/plugins/gpsmap/image ... /Green.png [HTTP/1.1 404 Not Found 52ms]
second line tries from port 80 not 88
is the proper file to fix this located in /var/www/cacti/plugins/gpsmap/includes/polling/iconskml.php
maybe this line:
In the icons.php file there is a line $iconlist .= "".$icon.".image = 'http://".$server.$url_path."plugins/gpsmap/images/icons/".$icon.".".$tail."';\n";
we changed this line to the line below and now everything works fine: $iconlist .= "".$icon.".image = 'http://".$server.$url_path."/cacti/plugins/gpsmap/images/icons/".$icon.".".$tail."';\n";
I have a problem with this plugin. I can't view host on the map. All xml and other files is generated correctly, when i exporting kml file directly to google maps it show me my devices. All icons urls is ok. I don't know what is wrong.
I tested with Firefox 13, Internet Explorer 9.0.4, Chrome 19.0.1084.52, Opera 11.64 on Windows 7 and on Linux Ubuntu.
I have all set up fine and nothing is showed on the map.
I fund this in the logs:
PHP Notice: Undefined variable: v in /var/www/cacti/plugins/gpsmap/includes/setup/database.php on line 45, referer: http://10.15.0.21/cacti/plugins.php
PHP Warning: file_get_contents(./plugins/gpsmap/XML/all-top.html): failed to open stream: No such file or directory in /var/www/cacti/plugins/gpsmap/gpsmap.php on line 20
PHP Warning: file_get_contents(./plugins/gpsmap/XML/all-top.html): failed to open stream: No such file or directory in /var/www/cacti/plugins/gpsmap/gpsmap.php on line 20, referer: http://10.15.0.21/cacti/host.php?action=edit&id=1
any idea?
Nothing in the XML folder even if the permissions are set corrently...
cacti 0.8.8a, gpsmap 1.7
semakka wrote:I have all set up fine and nothing is showed on the map.
I fund this in the logs:
PHP Notice: Undefined variable: v in /var/www/cacti/plugins/gpsmap/includes/setup/database.php on line 45, referer: http://10.15.0.21/cacti/plugins.php
PHP Warning: file_get_contents(./plugins/gpsmap/XML/all-top.html): failed to open stream: No such file or directory in /var/www/cacti/plugins/gpsmap/gpsmap.php on line 20
PHP Warning: file_get_contents(./plugins/gpsmap/XML/all-top.html): failed to open stream: No such file or directory in /var/www/cacti/plugins/gpsmap/gpsmap.php on line 20, referer: http://10.15.0.21/cacti/host.php?action=edit&id=1
any idea?
Nothing in the XML folder even if the permissions are set corrently...
cacti 0.8.8a, gpsmap 1.7
thanks
S
I'll update to the latest Cacti and see if I can figure out what is going on. It may take me a little bit of time, all I have are IIS boxes around me...My beloved Linux and Apache have gone missing for the time being. If it works in IIS, I'll get a VM or something that runs Debian up and going.
Seems to be an issue in HTML/XML creation portion. When in doubt try chmod 777 on the XML folder. Not the best, but its worth a shot. Also, remember that the update occurs with the poller.