Is there a way to export NagiosXI tools data?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Is there a way to export NagiosXI tools data?

Post by xpertech »

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?

Post by npolovenko »

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Is there a way to export NagiosXI tools data?

Post by xpertech »

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?

Post by scottwilkerson »

The common tools (not user specific) are in the nagiosxi database

Code: Select all

select * from xi_options where name='commontools';
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Is there a way to export NagiosXI tools data?

Post by xpertech »

Is there a way to simply export monitored hosts & services list to a excel/csv file, or txt file?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Is there a way to export NagiosXI tools data?

Post by tgriep »

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.

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.csv
This should get you what you want.
Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Is there a way to export NagiosXI tools data?

Post by xpertech »

Hi tgriep,

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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Is there a way to export NagiosXI tools data?

Post by tgriep »

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!
Locked