I am trying to get data out of NagiosXI that will show at least the host, hostgroup, IP Address, and Alias. When I choose the 'Manage Components" and then use this URL
http://sherlock/nagiosxi/backend/?cmd=g ... 9e5uf5otrq
It appears this will give me the information that I need but it never completes.
Thanks,
Greg
Getting backend data from the API
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Getting backend data from the API
Hi Greg,
What version of Nagios XI are you currently using? The Backed API has been deprecated in Nagiso XI 5 and now uses a REST API.
If that's not the issue, run the following tail command while you try to load that page, and post the output. Thanks.
Documenation
Backend API Access
What version of Nagios XI are you currently using? The Backed API has been deprecated in Nagiso XI 5 and now uses a REST API.
If that's not the issue, run the following tail command while you try to load that page, and post the output. Thanks.
Code: Select all
tail -f /var/log/httpd/*error_logBackend API Access
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Getting backend data from the API
Got the information, thanks!!
One more question: We have our routers and switches using the interface table plugin. All the interfaces are displayed. Do you know if it is possible to pull that information - the router and its interfaces into a spreadsheet.
Thanks,
Greg
One more question: We have our routers and switches using the interface table plugin. All the interfaces are displayed. Do you know if it is possible to pull that information - the router and its interfaces into a spreadsheet.
Thanks,
Greg
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Getting backend data from the API
Hi Greg,
Can you post a screenshot of the information in the Nagios XI interface that you would like to get to CSV? Thanks.
The best option may be to send the page as a schedule report in a PDF format and use a utility to import this into a spreadsheet.
Can you post a screenshot of the information in the Nagios XI interface that you would like to get to CSV? Thanks.
The best option may be to send the page as a schedule report in a PDF format and use a utility to import this into a spreadsheet.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Getting backend data from the API
Attached is the screen shot of what the interface table looks like.
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Getting backend data from the API
Hi Greg,
Ok, that looks like the plugin output, and you should be able to run the plugin directly from the command line and pipe the output to a file since the plugin is outputting html.
Next, you shoudl be able to directly import the html file into xcel, otherwise, try to use a script to convert the html tables to csv (see this or this).
Let me know if you have other questions.
Ok, that looks like the plugin output, and you should be able to run the plugin directly from the command line and pipe the output to a file since the plugin is outputting html.
Next, you shoudl be able to directly import the html file into xcel, otherwise, try to use a script to convert the html tables to csv (see this or this).
Let me know if you have other questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!