This is a cache of https://support.nagios.com/kb/article/nagios-xi-core-configuration-mananger-mass-changes-165.html. It is a snapshot of the page at 2025-05-14T00:10:43.773+0000.
Nagios <strong>xi</strong> - Core Configuration Mananger Mass Changes
Home » Categories » Products » Nagios xi » Documentation » Monitoring Configuration

Nagios xi - Core Configuration Mananger Mass Changes

Overview

This guide explains different ways to make mass changes in Nagios xi.

Occasionally admins need to change a specific settings for a huge quantity of services or hosts, and this change can't be made from a template. Although we highly recommend the use of templating whenever possible, sometimes it's just not possible to make the change there.

 

Bulk Modifications Tool

The simplest way this can be performed is by using the Bulk Modifications tool in Core Configuration Manager (CCM).

CCM > Tools > Bulk Modifications

Select what sort of change you would like to make and follow the steps.

Note: The Bulk Modifications tool is a part of the Enterprise Edition license. If you did not purchase this then you can activate the trial which will let you use the tool and make the required changes (they are permanent changes even though it's in trial mode). Once the trial is over, you will need to purchase the Enterprise Edition license to use this in the future.

 

SQL Queries

Our unofficial solution for this is to write a SQL query that will manually update the DB fields where you need them change.

Note: Test your queries on a single test host/service first, and try this solution at your own risk, we are not responsible if you break your configurations.

Here is an example to change the check_interval for all 'Disk Monitor' services:

mysql -pnagiosxi
mysql> use nagiosql;
mysql> update tbl_service set check_interval=60 where service_description='Disk Monitor';
mysql> select config_name, service_description, check_interval from tbl_service where service_description='Disk Monitor';
mysql> quit;

Note: Do not type "mysql>", at the beginning of the commands, this is the mysql command prompt.

If the change was successful, Apply Configuration to write the changes to the config files (see step below).

 

Apply Configuration At Command Line

To extend the steps above, you can perform the Apply Configuration process from the command line.

Execute the following command in an SSH session:

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh

A lot of information will be output on the screen while it writes the CCM database configs into flat config files and restarts Nagios.

 

Automatically Import Configs

To automate importing configs using scripts, you can simply place config files in the /usr/local/nagios/etc/import/ directory, and then run the reconfigure_nagios.sh script.

This will handle the import to the DB, writing the configs, verification, and then restarting Nagios.

Note: Make sure the config files being imported are valid, as otherwise errors will occur.

These documents explain in more detail the import method:

Documentation - Using The Config Import Prep Tool

Documentation - Importing Config Files From Nagios Core into Nagios xi

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios xi - Monitor Active Directory with LDAP
Viewed 9615 times since Thu, Jan 28, 2016
Nagios xi - Monitoring OS/X with Nagios xi
Viewed 5514 times since Thu, Jan 28, 2016
Nagios xi - How xi Works
Viewed 6667 times since Wed, Jul 19, 2017
Nagios xi - Installing The Solaris Agent
Viewed 7411 times since Wed, Jan 27, 2016
Nagios xi - Changing Host Alive Check
Viewed 6042 times since Wed, Jan 27, 2016
Nagios xi - Installing The AIX Agent
Viewed 8982 times since Wed, Jan 27, 2016
Nagios xi - Adding Services To Pre-existing Switch or Router
Viewed 10758 times since Wed, Jan 27, 2016
Nagios xi - Gauges - Understanding Thresholds
Viewed 12108 times since Tue, Aug 2, 2016
Nagios xi - Using Auto-Discovery
Viewed 10055 times since Thu, Aug 17, 2017
Nagios Core - Nagios as a PC Health Monitor - NWC14
Viewed 11262 times since Tue, Feb 9, 2016