naparuba/shinken — comment on commit a3000b144708c70dc34002512dfce87b5a982976
File:  line 0
By naparuba:

It's fixed. I put a pass so all objects get their alias with name if they
don't have one (and have a name :) ).

On Mon, Jan 23, 2012 at 11:57 PM, Gerhard Lausser <
reply@reply.github.com
> wrote:

> item.alias should be correct. In test_livestatus.py it is possible to
> query the alias of servicegroups. However in a running broker, there is a
> crash.
> FALLBACK: 'Servicegroup' object has no attribute 'alias'
> FALLBACK: .lsm_servicegroup_alias
> GET servicesbygroup
> Columns: service_in_notification_period service_last_check
> service_action_url_expanded service_comments_with_info service_icon_image
> service_notifications_enabled service_check_command
> service_custom_variable_names service_scheduled_downtime_depth
> service_accept_passive_checks service_has_been_checked
> service_notes_url_expanded service_active_checks_enabled service_downtimes
> service_modified_attributes_list service_custom_variable_values
> service_acknowledged service_plugin_output service_last_state_change
> service_description servicegroup_alias servicegroup_name
> service_pnpgraph_present host_name service_is_flapping service_state
> host_has_been_checked host_state
>
> ha! now i know. There is no alias in the running broker's config, but in
> the test case there is one.
> I checked nagios. When there is no alias in a servicegroup, then
> alias=servicegroup_name
> @naparuba i don't have more time today and i did not find the right place
> where to set the alias if it does not exist (servicegroups has no __init__
> on it's own), can you fix this?
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/naparuba/shinken/commit/a3000b144708c70dc34002512dfce87b5a982976#commitcomment-894159
>