Page 1 of 1
Command for Import option in CCM
Posted: Tue Dec 11, 2018 8:27 am
by aditya.c.anand
Hello Team,
There is an option to import .cfg files under CCM -> Tools -> Import Config Files.
Can i import the same cfg file via command line rather than GUI.
Actually just wanted to know the command which is used to import the .cfg files
One more question.
When we apply the configuration which all services gets restarted from the background( from CLI), whether it is only nagios.service or npcd.service too?
Re: Command for Import option in CCM
Posted: Tue Dec 11, 2018 11:18 am
by bolson
Hello aditya.c.anand,
Place the files in the folder /usr/local/nagios/etc/import/ and from the command line run the following:
Code: Select all
cd /usr/local/nagiosxi/scripts
php ./ccm_import.php
That should do it! Let me know if you have any additional questions.
Thank you for visiting the Nagios Support Forum.
Re: Command for Import option in CCM
Posted: Mon Dec 17, 2018 10:49 am
by aditya.c.anand
Hello Team,
We were not able to find the script "./ccm_import.php" at /usr/local/nagiosxi/scripts path.
Below mentioned are the only scripts present at the path. Kindly mention if any one of these will help here, or the script "./ccm_import.php" will be found some where else:
repair_databases.sh.bkp
repair_databases.lock.bck
nagiosql.delete.service
uninstall_xi.sh
nagiosql_delete_service.php
import_xiconfig.php
export_nagiosql.sh
unlock_user_account.php
restart_nagios_with_export.sh
nagiosxi_dbtype.php
nagiosql_delete_timeperiod.php
manage_services.sh
handle_nagioscore_notification.php
change_timezone.sh
nagiosql_defaults.sql
restore_xi.sh
repairmysql.sh
parse_core_eventlog.php
kill_rrdtool.sh
restore_defaults.sh
nom_create_nagioscore_checkpoint_cond.sh
nagiosql_importall.php
nagiosql_delete_contact.php
handle_nagioscore.inc.php
backup_xi.sh
update_check.php
send_to_auditlog.php
nom_restore_nagioscore_checkpoint_specific.sh
nagiosql_snapshot.sh
nagiosql_login.php
nagiosql_exportall.php
nagiosql_delete_object.sh
import_nagiosql.sh
reset_config_perms.sh
repair_databases.sh
reconfigure_nagios.sh
nom_restore_nagioscore_checkpoint.sh
nom_create_nagioscore_errorpoint.sh
nom_create_nagioscore_checkpoint.sh
nagiosql_trim_backups.sh
contact_notification_handler.php
upgrade_to_latest.sh
reset_nagiosadmin_password.php
patch_ndoutils.php
nom_trim_nagioscore_checkpoints.sh
nagiosql_delete_host.php
handle_nagioscore_event.php
tmp_xi_vars.cfg
nagiosql.import.monitoring
nagiosql.delete.contact
nagiosql.delete.timeperiod
nagiosql.login
nagiosql.cookies
nagiosql.export.monitoring
Re: Command for Import option in CCM
Posted: Mon Dec 17, 2018 11:03 am
by bolson
I'm sorry,
I neglected to ask which version of Nagios XI you are running. The contents of your /usr/local/nagiosxi/scripts is substantially different than that of a stock current Nagios XI installation. Which version are you running?
Re: Command for Import option in CCM
Posted: Mon Dec 17, 2018 12:29 pm
by aditya.c.anand
Hello Team,
We are using 5.4.13 version of NagiosXI.
Re: Command for Import option in CCM
Posted: Mon Dec 17, 2018 3:53 pm
by bolson
Unless you are unable to with your current license, I would strongly recommend that you upgrade to the latest version. This will bring in the script you are looking for.