Get a nice text or CSV dump of all configured alerts
Re: Get a nice text or CSV dump of all configured alerts
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
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
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
Re: Get a nice text or CSV dump of all configured alerts
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.
Re: Get a nice text or CSV dump of all configured alerts
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
Re: Get a nice text or CSV dump of all configured alerts
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
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
That's correct, the API will deliver XML output.