[Pkg-nagios-devel] Bug#835862: icinga2-classicui: "url_cgi_path" not honored everywhere

Ralf G. R. Bergs Ralf+Debian at Bergs.biz
Sun Aug 28 20:37:03 UTC 2016


Package: icinga2-classicui
Version: 2.1.1-1
Severity: important

Dear Maintainer,

I change "url_cgi_path" as I need to have a prefix in front of ALL
Icinga-related URLs.
I restarted Icinga. I tried to log in using the new URL, but had issues
doing so.

Investigating this turned out that there is hard-coded URL paths which
make the
above settings useless:

# cd /usr/share/icinga/htdocs/
# grep -l cgi-bin `find . -type f`
./menu.html
./index.html
./js/autocomplete.js

I can't see how "url_cgi_path" is useful, I would have expected that
changing
this setting would change the CGI path everywhere.

Icinga is now broken due to the change I made. This should not be the case,
as it was a valid change I made.

-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages icinga2-classicui depends on:
ii  apache2-utils          2.4.10-10+deb8u5
ii  debconf [debconf-2.0]  1.5.56
ii  icinga-cgi-bin         1.11.6-1+b4
ii  icinga2-common         2.1.1-1

Versions of packages icinga2-classicui recommends:
ii  apache2 [httpd]  2.4.10-10+deb8u5

icinga2-classicui suggests no packages.

-- Configuration Files:
/etc/icinga2/classicui/apache2.conf changed:
ScriptAlias /mon1/cgi-bin/icinga2-classicui
/usr/lib/cgi-bin/icinga2-classicui
Alias /mon1/icinga2-classicui/stylesheets /etc/icinga2/classicui/stylesheets
Alias /mon1/icinga2-classicui /usr/share/icinga2/classicui
<LocationMatch "^/mon1/cgi-bin/icinga2-classicui">
    SetEnv ICINGA_CGI_CONFIG /etc/icinga2/classicui/cgi.cfg
</LocationMatch>
<DirectoryMatch
"^(?:/usr/share/icinga2/classicui/htdocs|/usr/lib/cgi-bin/icinga2-classicui|/etc/icinga2/classicui/stylesheets)/">
           Options FollowSymLinks
           DirectoryIndex index.html
           AllowOverride AuthConfig
           Order Allow,Deny
           Allow From All
           AuthName "Icinga Access"
           AuthType Basic
           AuthUserFile /etc/icinga2/classicui/htpasswd.users
           Require valid-user
</DirectoryMatch>

/etc/icinga2/classicui/cgi.cfg changed:
standalone_installation=1
physical_html_path=/usr/share/icinga
url_html_path=/mon1/icinga2-classicui
url_stylesheets_path=/mon1/icinga2-classicui/stylesheets
http_charset=utf-8
refresh_rate=30
refresh_type=1
escape_html_tags=1
result_limit=50
show_tac_header=1
use_pending_states=1
first_day_of_week=1
suppress_maintenance_downtime=0
action_url_target=main
notes_url_target=main
use_authentication=1
use_ssl_authentication=0
lowercase_user_name=0
authorized_contactgroup_for_system_information=icingaadmins
authorized_contactgroup_for_configuration_information=icingaadmins
authorized_contactgroup_for_full_command_resolution=icingaadmins
authorized_contactgroup_for_system_commands=icingaadmins
authorized_contactgroup_for_all_services=icingaadmins
authorized_contactgroup_for_all_hosts=icingaadmins
authorized_contactgroup_for_all_service_commands=icingaadmins
authorized_contactgroup_for_all_host_commands=icingaadmins
show_all_services_host_is_authorized_for=1
show_partial_hostgroups=0
show_partial_servicegroups=0
default_statusmap_layout=5
status_show_long_plugin_output=0
display_status_totals=0
highlight_table_rows=1
add_notif_num_hard=28
add_notif_num_soft=0
use_logging=1
cgi_log_file=/var/log/icinga/gui/icinga-cgi.log
cgi_log_rotation_method=d
cgi_log_archive_path=/var/log/icinga/gui
enforce_comments_on_actions=0
send_ack_notifications=1
persistent_ack_comments=0
lock_author_names=1
default_downtime_duration=7200
set_expire_ack_by_default=0
default_expiring_acknowledgement_duration=86400
default_expiring_disabled_notifications_duration=86400
tac_show_only_hard_state=0
show_tac_header_pending=1
exclude_customvar_name=PASSWORD,COMMUNITY
exclude_customvar_value=secret
extinfo_show_child_hosts=0
tab_friendly_titles=1
object_cache_file=/var/cache/icinga2/objects.cache
status_file=/var/cache/icinga2/status.dat
resource_file=/etc/icinga/resource.cfg
command_file=/var/run/icinga2/cmd/icinga2.cmd
check_external_commands=1
interval_length=60
status_update_interval=10
log_file=/var/log/icinga2/compat/icinga.log
log_rotation_method=d
log_archive_path=/var/log/icinga2/compat/archives
date_format=iso8601
url_cgi_path=/mon1/cgi-bin/icinga2-classicui


-- debconf information:
  icinga2-classicui/adminpassword-mismatch:



More information about the Pkg-nagios-devel mailing list