Change IP addresses for all servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
seaward1983
Posts: 69
Joined: Wed Jul 17, 2019 2:09 pm

Change IP addresses for all servers

Post by seaward1983 »

RHEL 6.x
NagiosXI 5.6.12
VMWare

We're migrating servers to another VLAN, in mass. Is there a way - MySQL query maybe - to update all IP addresses at once?
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Change IP addresses for all servers

Post by jbrunkow »

The easiest way to do this would probably be by interacting with the API. If you navigate to the Help section ( url: [XI server IP address]/nagiosxi/help/ ), you should see an Objects Reference page detailing the various objects you can query from your servers. The agent can output either XML or JSON data.

If you had a list of IP addresses for the servers, something like the bash script example below could then iterate through the command for various servers.

Code: Select all

for $SERVER in $(cat $LIST);
do
    [ COMMAND ];
done;
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!
Locked