PDA

View Full Version : Contact name and alias reversed?


skeldof
08-06-2008, 05:50 PM
This is more of a general query about Centreon, as I see it's present in both 1.4 and 2.

Why are the contact's contact_name and alias reversed? In nagios the contact_name is the short simple name used to refer to the object and alias the long name used elsewhere. Centreon seems to mostly ignore the contact_name after replacing spaces with underscore. Alias gets used for login and Online members.

Surely it would have made more sense to use the contact_name for login? Requiring it (and only it) to be unique and without spaces. Then use alias as a general string for the Online members list.

Is this an active design decision or an old error that is a bit late to change? ;)

I did submit a suggested patch against 1.4.2.7 to bugs (http://bugs.centreon.com/?do=details&id=511), however that will break login on any install where contact_name and alias are different. I have not looked at centreon 2's code.

julio
08-07-2008, 10:25 PM
This is more of a general query about Centreon, as I see it's present in both 1.4 and 2.

Why are the contact's contact_name and alias reversed? In nagios the contact_name is the short simple name used to refer to the object and alias the long name used elsewhere. Centreon seems to mostly ignore the contact_name after replacing spaces with underscore. Alias gets used for login and Online members.

Surely it would have made more sense to use the contact_name for login? Requiring it (and only it) to be unique and without spaces. Then use alias as a general string for the Online members list.

Is this an active design decision or an old error that is a bit late to change? ;)

I did submit a suggested patch against 1.4.2.7 to bugs (http://bugs.centreon.com/?do=details&id=511), however that will break login on any install where contact_name and alias are different. I have not looked at centreon 2's code.


ok good idea ! can you open a tack on trac.centreon.com ??

Thanks

skeldof
08-29-2008, 02:18 PM
I opened the trac (#132) weeks back but you closed it with "wontfix"

DonKiShoot
08-30-2008, 09:59 AM
I opened the trac (#132) weeks back but you closed it with "wontfix"

I suspected this bug many month before but never check with nagios manual.

I think it is too hard for the developper who close the ticket to recheck all the source code.

Be patient, this feature will be implemented in the futur because they would be the official Nagios frontend but to be this, they must respect Nagios configuration logic.

Alias is not for login as you can see on this sample :

define contact {
contact_name nico
alias Nicolas
...