change the ip address stored in xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

change the ip address stored in xi

Post by benhank »

Hey guys!

I want to modify the backup script to change the ipaddress that is stored in :
Capture.PNG
to that of the secondary server's ip.
Where does Nagios store this ip?
You do not have the required permissions to view the files attached to this post.
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: change the ip address stored in xi

Post by scottwilkerson »

It is in the nagiosxi database in the xi_options table with a name = 'url'

this will be a bit tricky to do inside the backup tarball
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: change the ip address stored in xi

Post by benhank »

oh ok I thought a simple sed command would do it. Thanks scott you can lock it
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
bolson

Re: change the ip address stored in xi

Post by bolson »

Closing this topic as resolved.

Thank you for visiting the Nagios Support Forum!
Locked