List of monitored hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

List of monitored hosts

Post by BanditBBS »

I remember seeing a forums post before about someone wanting a list to export of all monitored hosts. At the time I did not chime in(I don't think I did) as I didn't need that feature. Well, guess what! I know it isn't a current feature, are features locked in for the next major release yet? if so, I guess I'll try and write my first XI Component....gulp!

Is there any documentation for writing components yet, or am I just going to open one and play around? Also, is a custom component the proper route I should take?

Thanks!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: List of monitored hosts

Post by abrist »

The Backend API can give you and XML file of all hosts:

Code: Select all

http://<ip of XI sever>/nagiosxi/backend/?cmd=gethosts&brevity=3
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: List of monitored hosts

Post by BanditBBS »

Awesome, that works for me. Save the xml and import into Excel and it looks great!

Wow, abrist gave me good news....is the world ending?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: List of monitored hosts

Post by abrist »

BanditBBS wrote:Wow, abrist gave me good news....is the world ending?
hahaha - I am not always the harbinger of doom. But you should withhold judgement as learning about the backend api will just lead to more ideas which lead to more development, etc. At some point in this process I am sure I will bear some more ill tidings.
Eric (our core dev) and myself will be giving a presentation on the backend api in XI at the world conference. You should check it out. In the meantime, here is a doc that covers the basics:
http://assets.nagios.com/downloads/nagi ... nd_API.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked