Your message dated Sat, 5 May 2018 16:18:46 +0200
with message-id <[email protected]>
and subject line Re: icinga2-classicui: "url_cgi_path" not honored everywhere
has caused the Debian Bug report #835862,
regarding icinga2-classicui: "url_cgi_path" not honored everywhere
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
835862: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835862
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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:

--- End Message ---
--- Begin Message ---
tags 835862 wontfix
thanks

On Sun, 28 Aug 2016 22:37:03 +0200 "Ralf G. R. Bergs" wrote:
> 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

These files are not dynamic CGI scripts, and hence cannot use settings
from cgi.cfg.

In your case you can copy these files to somewhere under /usr/local for
example, change the URLs paths, and update the apache configuration to
use your modified files instead.

Kind Regards,

Bas

--- End Message ---

Reply via email to