Page 1 of 1

nagiosxi edit user changes capital letters to lowercase.

Posted: Mon Jan 26, 2015 7:38 am
by toper
Hi

We have a major problem with nagiosxi 2014R2.3. When we change anything in a users setup his username changes from Capital letters to lovercase. and that Means that all his 8000+ notifications gets an error. Stating something like this:

Error: Contact 'DHCP_8_16' is not defined anywhere!
Error: Could not add contact 'DHCP_8_16' to host (config file '/usr/local/nagios/etc/hosts/airwas01.pm.tdctech.dk.cfg', starting on line 16)
Error processing object config files!


This Means that we cannot deploy any changes to our nagiosxi any more, and this is critical.. :shock:

Re: nagiosxi edit user changes capital letters to lowercase.

Posted: Mon Jan 26, 2015 10:18 am
by tmcdonald
I am seeing this same behavior on my machine. I will alert the developers to this right away.

Re: nagiosxi edit user changes capital letters to lowercase.

Posted: Mon Jan 26, 2015 11:45 am
by lgroschen
toper,

As of Nagios XI 2012 we always swap out Capitol letters with lower case. To recover your old configs follow this:

Navigate to the CCM > Tools > Wrtite Config Tools > Delete all Configurations

This will remove the current ones that had the capitol letter swapped out, Then select Write and Verify and make sure everything looks OK. Then restart the Nagios service.

You should now have all your old user names with the proper capitol letters. I would suggest that you backup the usernames and think about changing them all to be lower case permanently. This is how we intended usernames to be done after XI 2012.

Re: nagiosxi edit user changes capital letters to lowercase.

Posted: Tue Jan 27, 2015 5:28 am
by toper
Hi
1. This issue should have been handled in nagios Xi 2012, by the uprade.
2. When you make such a major difference the upgrade function should take care of this.
3. When you see such a change you should take care of all noticfication setups. Changing then to the new name. Not just leave it as is. We had some 3000 checks to change notifications for.
4. And then finally you should have but out a warning with the upgrade to nagios Xi 2012 that all usernames now had to be in lower case.

Regards

Re: nagiosxi edit user changes capital letters to lowercase.

Posted: Tue Jan 27, 2015 3:19 pm
by lgroschen
toper,

I just want to be clear on this. When you rewrote the contacts in the CCM did it work afterwards without throwing that error?

When you update contacts in CCM > Contacts these will not remove the Capitol letter, but when you edit contact through the Admin > Manage Users section it will remove and replace capitol letters. So if you update the contact that is failing in the CCM and apply config it should work because the contact name will be updated on each service.

Can you attempt this and see if it changes your issue if you haven't already? This is more of an issue that during upgrade the contacts were updated- so after you finish the update you can go back into the CCM, verify the contact names are correct and then apply config.