Get a nice text or CSV dump of all configured alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rez1sog
Posts: 38
Joined: Fri Mar 16, 2012 6:02 am

Re: Get a nice text or CSV dump of all configured alerts

Post by rez1sog »

This is really good. I will take a look at this and see what I can get for info. Quick question, how do you pass in the user/pass info in the string so that you can get auth for the request?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Get a nice text or CSV dump of all configured alerts

Post by scottwilkerson »

If you follow the instructions in
http://assets.nagios.com/downloads/nagi ... nd_API.pdf

You will get the username and ticket combinations in the component that will authenticate the user
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rez1sog
Posts: 38
Joined: Fri Mar 16, 2012 6:02 am

Re: Get a nice text or CSV dump of all configured alerts

Post by rez1sog »

Thanks. What would be the command that could have the list of services, hosts and what the contact info is? I have not found any of the commands that tie the service -> to the contact info.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Get a nice text or CSV dump of all configured alerts

Post by mguthrie »

We don't currently have that built into the API, so getting that into a CSV export could be a little bit tricky at the moment. The queries to determine if users are authorized for an object get pretty ugly
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Get a nice text or CSV dump of all configured alerts

Post by benhank »

I found that if you cut and past the links into your browser (firefox works best) you can then save the page as an xml file. then open that file in MS Excell and it will format the info in such a way that you need to see to believe. The you can create can create a sweet csv file.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Get a nice text or CSV dump of all configured alerts

Post by scottwilkerson »

That's correct, the API will deliver XML output.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked