Google Maps Hostgroup Functionality

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jpelley
Posts: 44
Joined: Wed Jul 22, 2015 12:14 pm

Re: Google Maps Hostgroup Functionality

Post by jpelley »

This is great!!! But I just realized my testing is limited to changing 1 host at a time, for some ridiculous reason the "Bulk Modification" tool cannot change any variables from the "Misc Settings" tab of the Host (which is where coords are set)... I have 7000 hosts...
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Google Maps Hostgroup Functionality

Post by ssax »

I've updated the bulk modifications tool to include the stuff from the misc tab (except free variables).

*** Note: This will get reverted if you upgrade and will need to be reimplemented.
*** Make sure that you have known-good backups/vm snapshots before making any modifications

Replace these files with the ones I've attached:

Code: Select all

/usr/local/nagiosxi/html/includes/components/bulkmodifications/bulkmodifications.inc.php
/usr/local/nagiosxi/html/includes/components/bulkmodifications/step2.php
/usr/local/nagiosxi/html/includes/components/bulkmodifications/includes/bulkmods.js
bulkmods_with_misc.zip
Let me know if that works for you.
You do not have the required permissions to view the files attached to this post.
jpelley
Posts: 44
Joined: Wed Jul 22, 2015 12:14 pm

Re: Google Maps Hostgroup Functionality

Post by jpelley »

I will test this out today and get back to you, thanks so much!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Google Maps Hostgroup Functionality

Post by rkennedy »

You're welcome! Let us know how it works for you.
Former Nagios Employee
jpelley
Posts: 44
Joined: Wed Jul 22, 2015 12:14 pm

Re: Google Maps Hostgroup Functionality

Post by jpelley »

I've copied the files over and as you can see in the screenshot, the variables are selectable but there isn't an entry field to populate (just the text "Not implemented yet"). FYI I did "Select Hosts" and selected a batch of servers thinking this might trigger opening an entry field but it did not.
You do not have the required permissions to view the files attached to this post.
jpelley
Posts: 44
Joined: Wed Jul 22, 2015 12:14 pm

Re: Google Maps Hostgroup Functionality

Post by jpelley »

Also, please see screenshot; multiple hosts with same coords hover display only last added (or last alpha) on the GoogleMap (there are 10+ hosts with same coords in this example).
You do not have the required permissions to view the files attached to this post.
jpelley
Posts: 44
Joined: Wed Jul 22, 2015 12:14 pm

Re: Google Maps Hostgroup Functionality

Post by jpelley »

This is how Splunk utilizes the Google API after being fed Nagios core data (IDK if this helps).
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Google Maps Hostgroup Functionality

Post by ssax »

I will take a look at this in the morning, more than likely the last two posts will be a feature request.

Just for future reference, when you post multiple times (instead of updating your last post) it actually resets the counter on the post and actually reduces the priority in our system because it's based on time so it's better to edit your last post to include it.

Are you sure you copied over /usr/local/nagiosxi/html/includes/components/bulkmodifications/includes/bulkmods.js? That cause the issue you are showing.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Google Maps Hostgroup Functionality

Post by Fred Kroeger »

I've been looking for this type of functionality to display HostGroup info in GoogleMap.
I've installed the updated component and configured several hosts in one HostGroup with the same map coordinate.
In GoogleMap , I can only see one host entry for that Hostgroup. I was hoping that I would see a listing of all the hosts in that HostGroup and the Status balloon would show the worst status of any of the hosts

regards... Fred
jpelley
Posts: 44
Joined: Wed Jul 22, 2015 12:14 pm

Re: Google Maps Hostgroup Functionality

Post by jpelley »

I'll certainly make sure to follow the posting guidelines in the future. I did verify that I copied all of the files over (using the modified date to check). I agree that an improved GoogleMap UI is a feature request but I disagree that indicating there are multiple hosts under the current Google marker is any less than a fix to an overlooked design choice (otherwise the map is useless to anyone using it for site based/data center dashboards). I do not want to give the impression that I am ungrateful for the prompt responses I've received from Nagios, you guys have been great, I do however want to see NagiosXI components not only usable but also to reach their full potential.
Locked