Not able to do rename

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Mani.Murugesan
Posts: 67
Joined: Fri May 12, 2017 1:37 am

Not able to do rename

Post by Mani.Murugesan »

Hello Team,
I need to rename for multiple servers but I have tried to rename only 2 servers using bulk renaming tool but apply config is getting failed.

so I need to do rename more than 400 servers .how to resolve this issue.

I am facing this issue multiple times so manually it's impossible .
Could you please help to resolve ?
syang

Re: Not able to do rename

Post by syang »

Hello Mani,

I was able to rename 2 servers using the Bulk Renaming Tool.

Please make sure there are no special characters in the new names, and there are no 2 identical names.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not able to do rename

Post by scottwilkerson »

Can we also verify that you can Apply Configuration before starting the rename process
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Mani.Murugesan
Posts: 67
Joined: Fri May 12, 2017 1:37 am

Re: Not able to do rename

Post by Mani.Murugesan »

Hello Scott,

identical names means for example my existing host name is "new-1" I want to change i.e. new name "new"
is it also comes under identical name ?
otherwise we need to change completely different names or what ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not able to do rename

Post by scottwilkerson »

It means it you want to rename it to "new" you need to make sure the host "new" doesn't already exist.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Mani.Murugesan
Posts: 67
Joined: Fri May 12, 2017 1:37 am

Re: Not able to do rename

Post by Mani.Murugesan »

Thanks Scott.

yes before renaming I have checked that new host name so that is not exist but my apply is getting failed only

and I have checked tail -f /usr/local/nagiosxi/var/cmdsubsys.log it's showing below error

"Another reconfigure process is still running, sleeping...
.Another reconfigure process is still running, sleeping...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not able to do rename

Post by scottwilkerson »

Lets run the following

Code: Select all

rm -f  /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Mani.Murugesan
Posts: 67
Joined: Fri May 12, 2017 1:37 am

Re: Not able to do rename

Post by Mani.Murugesan »

Hello Scott,

In my case after renaming if I give apply configuration that's will fail. next again click that try again option then apply configuration is successful.

I have run the below command as well but still issue is persist.
first time fail next I given the try again option it's successfully done.

But still I am getting below error
"Another reconfigure process is still running, sleeping..."
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not able to do rename

Post by scottwilkerson »

Can I have you run

Code: Select all

rm -f  /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
then immediately run

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
And post the results
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
achala.K
Posts: 7
Joined: Tue Dec 08, 2015 3:27 am

Re: Not able to do rename

Post by achala.K »

Hello Scott,

Just let me know if we rename a particular host with new name for eg- XXXX is old name and XXXX-PROD is new name and for old name already we have scheduled it for downtime so once we rename what entries we have for old name in downtime will be deleted? And again we have to manually scheduled it with new name? This is how it works?
Locked