Is there a way to export NagiosXI tools data?
Is there a way to export NagiosXI tools data?
Is there a way to export NagiosXI tools data?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Is there a way to export NagiosXI tools data?
Hello, @xpertech. I believe backup-restore should take care of that.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Other than that you could probably dump them from one database and import to another but that is not something we support or tested in the past.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Other than that you could probably dump them from one database and import to another but that is not something we support or tested in the past.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Is there a way to export NagiosXI tools data?
Since the monitored hosts and services of the destination servers are owned by different departments, we need to offer a list of monitored hosts and services for different departments.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Is there a way to export NagiosXI tools data?
The common tools (not user specific) are in the nagiosxi database
Code: Select all
select * from xi_options where name='commontools';Re: Is there a way to export NagiosXI tools data?
Is there a way to simply export monitored hosts & services list to a excel/csv file, or txt file?
Re: Is there a way to export NagiosXI tools data?
The following MYSQL query will create a csv file /tmp/hostservice.csv with a list of Host and Services that are running on the server.
This should get you what you want.
Code: Select all
echo "select nagios.nagios_hosts.host_object_id, nagios.nagios_services.host_object_id, nagios_hosts.display_name, nagios_services.display_name from nagios.nagios_hosts inner join nagios.nagios_services on nagios.nagios_hosts.host_object_id = nagios.nagios_services.host_object_id;" | mysql -u root -pnagiosxi -B | sed "s/'/\'/;s/\t/\",\"/g;s/^/\"/;s/$/\"/;s/\n//g" >>/tmp/hostservice.csvBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Is there a way to export NagiosXI tools data?
Hi tgriep,
The returned information of MYSQL query are not enough, we hope the csv file looks like the NagiosXI Tools returned information.
The returned information of MYSQL query are not enough, we hope the csv file looks like the NagiosXI Tools returned information.
You do not have the required permissions to view the files attached to this post.
Re: Is there a way to export NagiosXI tools data?
Sorry, I do not have an SQL query that can gather all of the Host, Service, commands, etc. from the servers database and as far as I know, none exist.
Be sure to check out our Knowledgebase for helpful articles and solutions!