Bug #2378

Swapped contact_name and contact_alias!

Added by Thomas - aka Jogarem - almost 3 years ago. Updated about 2 years ago.

Status:AssignedStart date:05/05/2011
Priority:NormalDue date:
Assignee:Sylvestre Ho% Done:

0%

Category:Centreon - Configuration
Target version:Pending
Resolution:

Description

In nagios the contact_name is a short description used to name the object (what the contactgroup uses in the members item) and alias is the long description. For some reason Centreon has these reversed, using the nagios alias as the login name and contact_name is called "Full Name". After replacing spaces with underscores, "Full Name" is then totally ignored within Centreon itself.

taken from #132:

My suggestion is to reverse these (again?) in Centreon, to be more in line with nagios. Of course potentially breaking all logins to centreon where contact_name and alias are different, without some careful SQL trickery.
Thus:
- using contact_name as the short name used for logins.
- alias would be the "Full Name" description (with spaces allowed) used in "Online Users" box.

This would create a much cleaner looking contactgroups.cfg.

I did submit a suggested patch against a 1.4.2.7 install at http://bugs.centreon.com/?do=details&id=511 . Sorry it's not against svn and I haven't looked at centreon 2's code.
prud'homme sebastien wrote:
> I reopen this bug as this is really annoying : all others Nagios based tools (and Nagios CGI) uses "contact_name" for authentification. Centreon is the only one that uses "alias". Here is the Nagios documentation:
> 
> [...]
> 
> Example that is correct with Nagios:
> 
> contact_name = sebastien.prudhomme
> alias = S├ębastien PRUD'HOMME
> 
> But in Centreon:
> contact_name = Sebastien_PRUDHOMME (no spaces an other specials chars...)
> alias = sebastien.prudhomme
> 
> If i want to use the same authentification login in Centreon and other Nagios addons, i need to put "sebastien.prudhomme" in both fields. As i said in the beginning, annoying.

please reopen #132 ! this is also a problem when using the eventbroker in nagios it expects the contact_name as the short name and the alias as the long name. This results in several problems e.g. within livestatus another broker module but also with other tools which rely on those directives!

History

#1 Updated by Julien Mathis almost 3 years ago

Why do you open this ticket If we have to reopen the #132....

#2 Updated by Thomas - aka Jogarem - almost 3 years ago

Well because you haven't seen that this issue was updated 7months ago and there a user requested to reopen this issue.
We are also working with Redmine :o) and we had the same problem: when a case was closed and someone misses that there was a new message added the case will be forgotten.. So i had opened a new one to get in focus :o) Sorry for any inconveniences.

#3 Updated by Sylvestre Ho over 2 years ago

  • Category set to Centreon - Configuration
  • Status changed from New to Assigned
  • Assignee set to Sylvestre Ho
  • Target version set to Centreon 2.3.4

Hi,

contact_alias and contact_name are swapped, that's a fact. The former developers thought of it that way and it is now difficult to change it.

If not mistaken, what really bothers you is the generated contacts.cfg which is used by other programs such as nagios cgi? If that's the case, we could easily change the generation and import process without impacting Centreon.

Please let me know =)

#4 Updated by prud'homme sebastien over 2 years ago

I opened the bug 132 : it's ok for me if the correct contacts.cfg is generated and you doesn't change the Centreon source code (or at least the labels and the integrated help tooltip in the web pages?).

#5 Updated by Thomas - aka Jogarem - over 2 years ago

Sylvestre Ho wrote:

Hi,

contact_alias and contact_name are swapped, that's a fact. The former developers thought of it that way and it is now difficult to change it.

If not mistaken, what really bothers you is the generated contacts.cfg which is used by other programs such as nagios cgi? If that's the case, we could easily change the generation and import process without impacting Centreon.

Please let me know =)

Hi Sylvestre!

yeah correct. we use other tools which then work with the generated config files so when the generated files are correct everything would be fine :o)

Thomas

#6 Updated by Sylvestre Ho over 2 years ago

  • Status changed from Assigned to Solved
  • % Done changed from 0 to 100
  • Resolution set to fixed

revision r12756

Can someone please confirm that it works as expected when exporting/importing contact.cfg?

Thanks!

#7 Updated by Julien Mathis over 2 years ago

  • Status changed from Solved to Closed

#8 Updated by Sylvestre Ho over 2 years ago

revision r12822 fixes contact group generation

#9 Updated by Sylvestre Ho over 2 years ago

revision r12823 fixes configuration load which implies contacts

#10 Updated by Sylvestre Ho about 2 years ago

  • Status changed from Closed to Assigned
  • Target version changed from Centreon 2.3.4 to Centreon-2.4
  • % Done changed from 100 to 0
  • Resolution deleted (fixed)

We closed that ticket too soon for there are still things we need to sort out due to configuration generation problems.

We'll postpone this to version 2.4.x, meanwhile we are going to revert back to the way it was before.

#11 Updated by Sylvestre Ho about 2 years ago

revision r12853

#12 Updated by Julien Mathis about 2 years ago

  • Target version changed from Centreon-2.4 to Pending

Also available in: Atom PDF