I am trying to get information out of Nagios if possible and put it in a spreadsheet. The fields I am looking for are the following:
Host Group
Members of that host group
Alias
Host Template
Services
Service Description
Check Frequency
Service Template
We are hoping to use this report to validate our data and ask our application owners if it is accurate.
Thanks,
Greg
Data from Nagios to Excel
Re: Data from Nagios to Excel
This information can be gathered. The best place to get it is the database. Do you have a database person on hand, or someone who is handy with SQL? In the nagios database, all of the tables and fields are named in a pretty straight forward fashion, but retrieving the information is going to require some fancy joins.
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: Data from Nagios to Excel
Is there a big difference between MySQL and MSSQL? We have an MSSQL database person but no one with MySQL experience.
Thanks,
Greg
Thanks,
Greg
Re: Data from Nagios to Excel
Yes and no. There are a great many things that are different between the two systems, but basically all database software supports SQL99, so that will give them a good place to start from. Anyone familiar with writing SQL in one database should do fine in any other database, with a little fumbling around to get any proprietary syntax down. Probably the biggest difference they'll run into right out of the gate is that MS SQL Server listens for network connections, and MySQL/MariaDB only listen for connections on the local server by default.
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: Data from Nagios to Excel
Thanks for you help. I will see what they can do.
Have a good day,
Greg
Have a good day,
Greg
Re: Data from Nagios to Excel
One more question. Could PHPMYADMIN be used to pull data from MYSQL?
Thanks,
Greg
Thanks,
Greg
Re: Data from Nagios to Excel
Using an external client like HeidiSQL (which can do CSV/Excel export) is probably a better idea. PHPMyAdmin is probably OK if it's not installed on-top of the Nagios XI box -- if it were installed on a separate VM and accessing Nagios XI remotely.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Data from Nagios to Excel
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: Data from Nagios to Excel
Sorry, one more question.
Just came across Rest API. If seems like it might give us some of the data but it is not working. Would this be a good option?
Thanks,
Greg
Just came across Rest API. If seems like it might give us some of the data but it is not working. Would this be a good option?
Thanks,
Greg
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Data from Nagios to Excel
If you are talking about Help > API Docs > Objects Reference then the supported outputs are json or xml, this would be the easiest way to get the data and manipulate. Can you show us an example of what you are trying and what is not working?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.