Google Map (turn off clickable links)

Discuss new project and feature ideas here.
See labs.nagios.com for new projects under development.

Google Map (turn off clickable links)

Postby rbarnhart » Tue Oct 03, 2017 1:47 pm

I set up google map as a popout link, is there a way to keep it simple by turning off the links to host detail and the link for changing the :"set map defaults".

The idea is to provide a basic up down outage map for customers, but do not want them to be able to link down into stuff or change the layout...

Basically only want them to be able to zoom in and out that is it....to see if site is up or down on google earth,,,, I did try guest with auto login and read only but one can click down pretty far into the software....

Thanks,.
rbarnhart
 
Posts: 3
Joined: Tue Oct 03, 2017 1:36 pm

Re: Google Map (turn off clickable links)

Postby dwhitfield » Tue Oct 03, 2017 4:55 pm

Please go to http://YOURSERVER/nagiosxi/admin/components.php and see what version of the Google Maps component you are running. If it's not 1.5.0, please use the "Check for Updates" button at the top, and then upgrade that component. Feel free to update others too.

Also, for clarity, you mention Google Map in the subject and then Google Earth. I am obviously assuming above that the mention of Google Earth is a typo (and I feel pretty secure in that assumption since I'm not aware of any Google Earth integration), but I just want to be sure before moving forward.

Lastly, can you post a screenshot of the pop up you are talking about? When I click on Google Maps there is no pop up, so we're probably in different places.
Need additional support for CentOS or ubuntu? Try OpenLogic: https://www.openlogic.com/talk-to-expert

We can write Nagios plugins for you!

We are hiring: https://www.perforce.com/careers
dwhitfield
Former Nagios Staff
 
Posts: 4577
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN

Re: Google Map (turn off clickable links)

Postby rbarnhart » Wed Oct 04, 2017 8:13 am

Sorry Not google earth (google maps) and plugin is up to date, here is the screen shot,i circled in red items i would like to be able to remove I just would like to know if it is possible to remove
the clickable links and access to the Host Status details.... Basically would like the option to just show good status and bad status only with ability to zoom it, no extended information on the pop-out...

thanks,
Attachments
nagios ps.png
rbarnhart
 
Posts: 3
Joined: Tue Oct 03, 2017 1:36 pm

Re: Google Map (turn off clickable links)

Postby kyang » Wed Oct 04, 2017 10:44 am

Since this is a component and there are no options to hide the links, it's most likely something that would require editing the PHP code for that google map component.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kyang
Support Tech
 
Posts: 1792
Joined: Tue Jul 25, 2017 3:35 pm

Re: Google Map (turn off clickable links)

Postby rbarnhart » Wed Oct 04, 2017 10:46 am

I'm not really a programmer, but is editing the PHP code something that can be scripted or implemented with a procedure?
rbarnhart
 
Posts: 3
Joined: Tue Oct 03, 2017 1:36 pm

Re: Google Map (turn off clickable links)

Postby mcapra » Wed Oct 04, 2017 11:12 am

Lines 111-112 of googlemap/buildmarkers.inc.php:
Code: Select all
111                       "<p><a href=\"../xicore/status.php?show=hostdetail&host={$hostdata['host_name']}\">" .
112                       "{$hostdata['host_name']} Details</a></p>" .


Should be all you'd need to remove. Though that wouldn't persist through updates to the Google Maps component; The changes would be overwritten when the Google Maps component is updated. The custom includes component would allow you to write some Javascript that could permanently remove those links (and be persistent through updates), but it'd be more code than the simple 2-line change mentioned above.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3600
Joined: Thu May 05, 2016 3:54 pm

Re: Google Map (turn off clickable links)

Postby kyang » Wed Oct 04, 2017 11:20 am

Thanks @mcapra!
Beat me to it, but yes remove those lines and update as he suggested.
Note: I also removed line 131 and 132 in that file.
Code: Select all
131                        "<p><a href=\"../xicore/status.php?show=hostdetail&host={$hostdata['host_name']}\">" .
132                        "{$hostdata['host_name']} Details</a></p>" .


Here's my example of when I removed those lines in the buildmarkers PHP file.

2.PNG
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kyang
Support Tech
 
Posts: 1792
Joined: Tue Jul 25, 2017 3:35 pm


Return to Nagios Ideas

Who is online

Users browsing this forum: No registered users and 2 guests