Show all host to hostgroup and parent relations

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Show all host to hostgroup and parent relations

Post by cwscribner »

Hi all.

Is there a way to get a human readable list of all the host/hostgroup and parent host relationships? Perhaps a plugin or direct database query?
Last edited by cwscribner on Wed Sep 28, 2011 12:58 pm, edited 1 time in total.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Show all host to hostgroup and parent relations

Post by mguthrie »

You can look at the network status map and it will show a visual representation of these relationships. I don't think there's a list representation of this anywhere though.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Show all host to hostgroup and parent relations

Post by cwscribner »

Any ideas on how I might be able to obtain one? The status map is unreadable because of the amount of devices I have. I also tried hypermap and Nagvis but have the same issues with those. They're displying ~2500 devices in a very poor fashion.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Show all host to hostgroup and parent relations

Post by mguthrie »

I think the backend API has some of that data there, I'll take a peek at it early next week and see what it would take to create something like that.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Show all host to hostgroup and parent relations

Post by cwscribner »

Just wanted to follow up on this. Any ideas?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Show all host to hostgroup and parent relations

Post by mguthrie »

There is a backend API call to get an XML list of all parent hosts.
http://<youraddress>/nagiosxi/backend/?cmd=getparenthosts

As far as host to hostgroup relationships, the clearest visual representation of that will still probably be the "Hostgroup Overview."

As far as a human readable view of these relationships that's not a mapping tool, what are your thoughts on having something like the Nagios BPI view for those relationships. Currently Nagios BPI is a grouping tool for business processes, but we could probably experiment with parent->host and hostgroup->host relationships as well. Thoughts?
http://assets.nagios.com/downloads/nagi ... _demo.html
http://exchange.nagios.org/directory/Ad ... ce/details

Or if that's not quite what you're looking for, can you elaborate a little more if you were to have a "wishlist" for this?
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Show all host to hostgroup and parent relations

Post by cwscribner »

The API is somewhat helpful. I'll just have to figure out how to make it more usable...

As simplistic as this sounds, all I really need in the short term is a table: left column-hosts right column-parent device(s)

This same format would be perfect for the host/hostgroup relationships as well.

My Wishlist:
  • A working mapping tool (like the network status map v2.0) where you can manipulate devices and change their parents via drag-n-drop. Would also have an option to highlight the hostgroups and group devices by hostgroup.
  • A table printout to screen and PDF that allows parent/hostgroup manipulation via dropdowns
...possibly more to come.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Show all host to hostgroup and parent relations

Post by lmiltchev »

You can post your wishlist to our bug tracker as a "Feature Request".

http://tracker.nagios.com
Be sure to check out our Knowledgebase for helpful articles and solutions!
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Show all host to hostgroup and parent relations

Post by cwscribner »

I've already tried registering for the bug tracker 3 times and it has yet to work for me. It never sends a password. I successfully logged in one time but the password didn't work a second time. Is there any way you can set me up with a user name and password?

P.S. I've tried the forgot password/username links but the info never gets sent to me.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Show all host to hostgroup and parent relations

Post by mguthrie »

Yeah, sometimes the host IP that our tracker website gets stored on gets put onto a spam list, so the emails don't get out. We are looking into creating something like this. Not sure if it's of interested to you or not, but the nagiosql table in the mysql database has a table called "tbl_lnkHostToHost" that has host id's for all host parent->child relationships. That might be the easiest way to capture the info that you're looking for.
Locked