Google Map - New Features Added

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
briannd81
Posts: 31
Joined: Sun May 03, 2015 5:41 pm

Google Map - New Features Added

Post by briannd81 »

I've added 2 new features to Google Map and would like to distribute the code to anyone who's interested in using them. What is the recommended path?

- Markers Status: can be set to All or Down
- Page Refresh: can be set to 10, 30, 60 seconds or None

Both of these options can be selected via drop down as can be seen in the screenshot.
google_map_features_added.png
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Google Map - New Features Added

Post by tmcdonald »

Providing us with a diff file against the posted version might be easiest:

https://exchange.nagios.org/directory/A ... nt/details
Former Nagios employee
briannd81
Posts: 31
Joined: Sun May 03, 2015 5:41 pm

Re: Google Map - New Features Added

Post by briannd81 »

I have uploaded 2 files. Please remember to rename the .txt extension to .php before use.

map2.php - This is the alternate version of map.php that provides both of these features

buildmarkers2.inc.php - Pins the "red" markers to the host devices that are down

Both should go to the same directory where the original map.php resides. I name map2.php so one may test out these features without overriding the original map.php file.

Note: I'm looking for an alternate implementation to update the markers without doing a "browser refresh". I tried calling "initialize()" method but it did NOT update the markers. Any feedback on this is greatly appreciated.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Google Map - New Features Added

Post by lmiltchev »

Thanks, briannd81! Our developers will be looking into the code that you submitted.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked