Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary PHP error message in Icingaweb2 2.6.2-1 during deployment via Director #3732

Closed
akqopensystems opened this issue Mar 29, 2019 · 2 comments

Comments

@akqopensystems
Copy link

During deployment of objects with Icinga2 Director, Icingaweb2 displays a PHP error message instead of information about the requested (unrelated) object. As soon as the deployment finishes, the correct information is displayed again. In the Access Log, there is one 404 entry.

icingaweb2-access.log:xx.xxx.11.52 - - [29/Mar/2019:16:31:21 +0100] "GET /icingaweb2/monitoring/host/show?host=xalnxxxx HTTP/1.1" 200 26020
icingaweb2-access.log:xx.xxx.11.52 - - [29/Mar/2019:16:31:32 +0100] "GET /icingaweb2/monitoring/host/show?host=xalnxxxx HTTP/1.1" 200 26028
icingaweb2-access.log:xx.xxx.11.52 - - [29/Mar/2019:16:31:43 +0100] "GET /icingaweb2/monitoring/host/show?host=xalnxxxx HTTP/1.1" 200 26030
icingaweb2-access.log:xx.xxx.11.52 - - [29/Mar/2019:16:31:53 +0100] "GET /icingaweb2/monitoring/host/show?host=xalnxxxx HTTP/1.1" 404 1848
icingaweb2-access.log:xx.xxxx.11.52 - - [29/Mar/2019:16:32:04 +0100] "GET /icingaweb2/monitoring/host/show?host=xalnxxxx HTTP/1.1" 200 26026

Expected Behavior

No (temporary) errors occur in IcingaWeb2 during deployment of monitoring objects with Icinga2 Director.

Current Behavior

grafik

Steps to Reproduce (for bugs)

  1. Open a browser tab with IcingaWeb2 and select a host object
  2. In a different browser tab, initiate a deployment in Icinga2 Director
  3. Switch back to the previous tab and wait a few seconds

Context

This hurts the user experience in environments where deployments are performed frequently.

Your Environment

  • Icinga Web 2 Version
    2.6.2

  • Icinga2 Director Version:
    1.6.2

  • Version used (icinga2 --version):
    icinga2 - The Icinga 2 network monitoring daemon (version: r2.10.4-1)

  • Operating System and version:
    Red Hat Enterprise Linux Server release 7.6 (Maipo)

  • Enabled features (icinga2 feature list):
    Disabled features: compatlog debuglog elasticsearch gelf influxdb livestatus opentsdb perfdata statusdata syslog
    Enabled features: api checker command graphite ido-mysql mainlog notification

  • Config validation (icinga2 daemon -C):
    [2019-03-29 16:58:55 +0100] information/cli: Icinga application loader (version: r2.10.4-1)
    [2019-03-29 16:58:55 +0100] information/cli: Loading configuration file(s).
    [2019-03-29 16:58:56 +0100] information/ConfigItem: Committing config item(s).
    [2019-03-29 16:58:56 +0100] information/ApiListener: My API identity: xxxpmo02.xxx.de
    [2019-03-29 16:59:00 +0100] warning/ApplyRule: Apply rule 'agent_icinga-core' (in /var/lib/icinga2/api/packages/director/c3d6c202-4870-4d47-9258-97addfb5c245/zones.d/director-global/servicesets.conf: 109:1-109:33) for type 'Service' does not match anywhere!
    [2019-03-29 16:59:00 +0100] warning/ApplyRule: Apply rule 'available_volume_space_all' (in /var/lib/icinga2/api/packages/director/c3d6c202-4870-4d47-9258-97addfb5c245/zones.d/director-global/servicesets.conf: 117:1-117:42) for type 'Service' does not match anywhere!
    [2019-03-29 16:59:00 +0100] warning/ApplyRule: Apply rule 'load' (in /var/lib/icinga2/api/packages/director/c3d6c202-4870-4d47-9258-97addfb5c245/zones.d/director-global/servicesets.conf: 125:1-125:20) for type 'Service' does not match anywhere!
    [2019-03-29 16:59:00 +0100] warning/ApplyRule: Apply rule 'cluster-zone' (in /var/lib/icinga2/api/packages/director/c3d6c202-4870-4d47-9258-97addfb5c245/zones.d/director-global/servicesets.conf: 135:1-135:28) for type 'Service' does not match anywhere!
    [2019-03-29 16:59:00 +0100] warning/ApplyRule: Apply rule 'icinga2_ido' (in /var/lib/icinga2/api/packages/director/c3d6c202-4870-4d47-9258-97addfb5c245/zones.d/director-global/servicesets.conf: 143:1-143:27) for type 'Service' does not match anywhere!
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 11 ScheduledDowntimes.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 45548 Services.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 1 IcingaApplication.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 5940 Hosts.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 1 FileLogger.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 4 NotificationCommands.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 12233 Notifications.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 1 NotificationComponent.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 542 HostGroups.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 1 ApiListener.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 508 Downtimes.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 1 GraphiteWriter.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 293 Comments.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 1 CheckerComponent.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 11 Zones.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 1 ExternalCommandListener.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 10 Endpoints.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 13 ApiUsers.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 125 Users.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 289 CheckCommands.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 67 UserGroups.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 2 ServiceGroups.
    [2019-03-29 16:59:00 +0100] information/ConfigItem: Instantiated 3 TimePeriods.
    [2019-03-29 16:59:00 +0100] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
    [2019-03-29 16:59:00 +0100] information/cli: Finished validating the configuration file(s).

  • If you run multiple Icinga 2 instances, the zones.conf file (or icinga2 object list --type Endpoint and icinga2 object list --type Zone) from all affected nodes.

@nilmerg
Copy link
Member

nilmerg commented Apr 1, 2019

Hi,

I guess this is the same as Icinga/icinga2#7024. If not, please re-open.

@nilmerg nilmerg closed this as completed Apr 1, 2019
@lippserd
Copy link
Member

@akqopensystems Could you please check Icinga/icinga2#7125 and provide debug logs from a restart which disables your host objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants