Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up the points #9

Open
sam-chapp opened this issue Feb 28, 2019 · 14 comments
Open

Setting up the points #9

sam-chapp opened this issue Feb 28, 2019 · 14 comments

Comments

@sam-chapp
Copy link

I have added the api key and link and have put the longitude and latitude of our location we want but its not showing has anyone got any setup guides or tutorials?

@netniV
Copy link
Member

netniV commented Mar 1, 2019

You must make sure to add the device template that you wish to appear on the map to Templates -> Map

@sam-chapp
Copy link
Author

You must make sure to add the device template that you wish to appear on the map to Templates -> Map

I have done that however it still doesnt show what would the Group ID be?

@netniV
Copy link
Member

netniV commented Mar 4, 2019

There isn't much to this plugin.

  1. make sure you have lng/lat on your device
  2. make sure the device template is in the table of desired templates for the map
  3. make sure the poller has been running and generated the maps.

That last one has proven tricky as at the moment you don't get stats in the cacti log for this plugin. However, you should get output in the XML/ directory. If you want to make sure the poller is running, remove it all and it should recreate it.

@sam-chapp
Copy link
Author

https://puu.sh/CUVTP/334d61457c.png
https://puu.sh/CUVUE/59ef7e10b2.png

Im not too sure about this: "make sure the poller has been running and generated the maps." XML ?? Do you have any screenshots?

@netniV
Copy link
Member

netniV commented Mar 4, 2019

Do you have any data in your XML folder?

@netniV
Copy link
Member

netniV commented Mar 4, 2019

If not, make sure the website has write permissions to that folder (if you have SELinux enabled, you will likely have to make sure the correct context has been set to).

@sam-chapp
Copy link
Author

sam-chapp commented Mar 4, 2019

I see the XML folder there is just an index.php file

@sam-chapp
Copy link
Author

Is it the file inside ""/usr/share/cacti/plugins/gpsmap/"" ?

@netniV
Copy link
Member

netniV commented Mar 4, 2019

OK, that would suggest that either you haven't enabled the maps plugin fully, or it doesn't have write access to the XML folder when running as the poller user. (normally run from /etc/cron.d/cacti)

@sam-chapp
Copy link
Author

OK, that would suggest that either you haven't enabled the maps plugin fully, or it doesn't have write access to the XML folder when running as the poller user. (normally run from /etc/cron.d/cacti)

I have made the folder 777 perm and have set the cacti to 777 in cron.d

@netniV
Copy link
Member

netniV commented Mar 4, 2019

Yeah, you didn't need to do that from cron.d's cacti file. It reads it as a configuration file, not to run as a script.

So if your permissions are there and cacti is polling, do you have SELinux enabled?

@sam-chapp
Copy link
Author

Yeah, you didn't need to do that from cron.d's cacti file. It reads it as a configuration file, not to run as a script.

So if your permissions are there and cacti is polling, do you have SELinux enabled?

I believe we just have a basic centos 6 server

@Eduardo251
Copy link

hello i do have the same issue however cacti is generating more files in the XML folder but it isnt displaying anithing in the map page but a singe ip

her are some screenshots:
snipboard.io/jSMsP8.jpg
snipboard.io/johza3.jpg

@TheWitness
Copy link
Member

You might have to help yourself on this one. I'm not using it as the API and key requirements drive me nuts. If you figure things out, submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants