Page 2 of 4

Re: Google Maps Hostgroup Functionality

Posted: Thu Nov 12, 2015 9:34 am
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...

Re: Google Maps Hostgroup Functionality

Posted: Thu Nov 12, 2015 5:17 pm
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.

Re: Google Maps Hostgroup Functionality

Posted: Mon Nov 16, 2015 1:31 pm
by jpelley
I will test this out today and get back to you, thanks so much!

Re: Google Maps Hostgroup Functionality

Posted: Mon Nov 16, 2015 1:40 pm
by rkennedy
You're welcome! Let us know how it works for you.

Re: Google Maps Hostgroup Functionality

Posted: Mon Nov 16, 2015 1:42 pm
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.

Re: Google Maps Hostgroup Functionality

Posted: Mon Nov 16, 2015 2:18 pm
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).

Re: Google Maps Hostgroup Functionality

Posted: Mon Nov 16, 2015 2:24 pm
by jpelley
This is how Splunk utilizes the Google API after being fed Nagios core data (IDK if this helps).

Re: Google Maps Hostgroup Functionality

Posted: Mon Nov 16, 2015 5:55 pm
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.

Re: Google Maps Hostgroup Functionality

Posted: Mon Nov 16, 2015 9:02 pm
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

Re: Google Maps Hostgroup Functionality

Posted: Tue Nov 17, 2015 2:18 pm
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.