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.
zorrosam wrote:
only for clarify. In your opinion which is the best way for generate the api key?
my server has a private ip address and is natted in internet with a private one.
Cacti is only accessible from the private LAN.
The public ip doesn't have a dns record registered.
Which is the ip that i have to use for generate the api key?
let me know.
zorro
If I remember correctly, I used the localIP address. For my local test website, I put "localhost" in as the sitename to generate the API key.
The CSS error is not a big one. That is just telling you that the "Border-Radius" was not used anywhere on the page so it was dropped.
nobi67 wrote:Following your suggestion to zorrosam I opened the console on Firefox when displaying the map with and without templates. What I got was the following:
Errore: invalid regular expression flag b
File sorgente: http://dvbb0mo1/cacti/plugins/gpsmap/gpsmap.php
Riga: 167, Colonna: 93
Codice sorgente:
<b>Notice</b>: Undefined offset: 1 in <b>C:\cacti\plugins\gpsmap\includes\customicons.php</b> on line <b>9</b><br />
no map displayed;
non using templates no errors and the map is displayed.
I hope this may be helpfull.
Thanks.
I'm looking for the cause of the regular expression error. but the line number doesn't make much sense. Are you selecting an icon for all three properties in the template?
ok ...
two cases now
1) my prod installation (0.87d) now works. I have deleted all the custom templates ... the map is generated and the xml populated correctly (the XML was populated even before ... the problem was only on the display of the icons maybe). So the problem maybe is in the code of the new function for generate icons templates.
2) my test installation (0.87e) doesn't work. After i have deleted the XML i can create the newer one ... but only empty ... without any coordinates.
I have deleted the custom templates ... ma the result is the same. No icons on the map even if i have populated my hosts with the coordinates.
I made a few changes to the customicons.php, this will help get rid of some of the undefined offsets. Still trying to figure out the regular expression error.
I'm still trying to find out about those other errors.
I changed some of the way the displays work just in case the % for the width was throwing things off. I'm kinda fishing in the dark, I hope this it.
I made a few changes to the customicons.php, this will help get rid of some of the undefined offsets. Still trying to figure out the regular expression error.
I'm still trying to find out about those other errors.
I changed some of the way the displays work just in case the % for the width was throwing things off. I'm kinda fishing in the dark, I hope this it.
no way in my test installation
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MS-RTC LM
Timestamp: Wed, 28 Apr 2010 10:14:14 UTC
armstrongzhao wrote:After installed the plugin, I can't change, create or edit devices. There is a note: Error:save Failed.
But when I uninstall the plugin, cacti works fine. I can edit devices again.
My OS is win2003, cacti 0.8.7e, PA 2.6 GPSmap 1.53
Its as if the latitude and longitude columns in the host table did not get added. Not really sure why that happened as they are in the database.php to be added. The column adds are at line 18 in database.php
Did you comment out the gpsmap_setup_database() in setup.php on line 39? It is safe to leave that uncommented, it will not erase anything. Previously that had to be commented to keep from overwriting data, that is not the case now.
Just the standard plug here, I don't have any real working experience with Windows IIS based hosts. So I don't have a whole lot of insight as to why that wouldn't work.
I made a few changes to the customicons.php, this will help get rid of some of the undefined offsets. Still trying to figure out the regular expression error.
I'm still trying to find out about those other errors.
I changed some of the way the displays work just in case the % for the width was throwing things off. I'm kinda fishing in the dark, I hope this it.
no way in my test installation
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MS-RTC LM
Timestamp: Wed, 28 Apr 2010 10:14:14 UTC
I'm looking as to why that isn't working, especially given the line number points to the function gload(); which is the event that tells it to output the map. What is confusing, is the character number. There isn't that many characters in that line. If you can give me any other information or error material, that would be helpful. Is there any errors in your PHP error log? If you have Firefox, there is a utility/extension called firebug, it has a better built in javascript debugging engine.
ok this is odd. I downloaded from the first page and setup the plugin in the usual way. Everything went ok and I had pins on the map which changed colour etc.
Then I saw that version 1.53 was out on page 8 so replaced mine with this and now I have no icons. Have changed the permissions on the XML folder to everyone read/write to make sure it's not a permissions problem but still no joy.
Anyone have any ideas as it's driving me up the wall now?
I'm beginning to wonder if it has something to do with the PHP memory limit setting. I'll run some test when I get home. I know if you have large sets of data, you might be going over the memory limit for that php session, thus causing it to fail.
trungtano wrote:When I try to generate API key with my company then push it in GPS API key in cacti it sad:
The Google Maps API server rejected your request. This could be because the API key used on this site was registered for a different web site. You can generate a new key for this web site at http://code.google.com/apis/maps/.
anybody know why?? Because my company web site have just resisted few days ago! Who stolen my web site ???
I got also this kind of problem!!!
I use last 1.5 version and tried a lot and also applied suggestion to trungtano :"Make sure you copy the entire API key. if you just double click then copy you will usually only get half of the API Key. ALSO for some reason I have found that google can be particular about the differences between: www.domain.com and domain.com
Use the one that most suites you.
".
Possible solutions?
Regards
Alessio
Cacti Version 0.8.8c production / 0.8.8c test W2008 -- Plugin:Weathermap - Monitor - CAMM 1.6.7 :) - Nectar - GPS Map
Try using the IP address that you use to connect to the machine. This can have significance if the machine is external vs internal.
So if I connect to my cacti install by going to http://domain.com/cacti/ but my internal DNS resolves that address to an internal IP address, then you will need to put in your internal IP address when requesting a API Key.