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

[dev.icinga.com #8544] Hosts: process_performance_data = 0 in database even though enable_perfdata = 1 in config #2674

Closed
icinga-migration opened this issue Feb 26, 2015 · 2 comments
Labels
area/db-ido Database output bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8544

Created by fmbiete on 2015-02-26 08:19:33 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-03-09 07:12:47 +00:00)
Target Version: 2.3.0
Last Update: 2015-03-09 07:12:47 +00:00 (in Redmine)

Icinga Version: 2.2.4
Backport?: No
Include in Changelog: 1

In database (MySQL) I'm finding this:

+---------+--------------------------+--------------------------+
| host_id | alias                    | process_performance_data |
+---------+--------------------------+--------------------------+
|       1 | bd.mad.redventas         |                        0 |

Even though the "icinga2 object list" shows me this:

Object 'bd.mad.redventas' of type 'Host':
  * __name = "bd.mad.redventas"
  * action_url = "/pnp4nagios/graph?host=$HOSTNAME$' class='tips' rel='/pnp4nagios/popup?host=$HOSTNAME$&srv=_HOST_"
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 3:5-3:116
  * address = "X.X.X.X"
    % = modified in '/etc/icinga2/conf.d/renr/rdv/host_mad_bd.conf', lines 4:5-4:26
  * address6 = ""
  * check_command = "renr-host-alive"
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 9:5-9:37
  * check_interval = 300
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 10:5-10:23
  * check_period = "24x7"
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 13:5-13:25
  * command_endpoint = ""
  * display_name = "RedVentas - Servidor BD Madrid"
    % = modified in '/etc/icinga2/conf.d/renr/rdv/host_mad_bd.conf', lines 5:5-5:51
  * enable_active_checks = 1
  * enable_event_handler = 1
  * enable_flapping = 1
  * enable_notifications = 1
  * enable_passive_checks = 1
  * enable_perfdata = 1
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 2:5-2:26
  * event_command = ""
  * flapping_threshold = 30
  * groups = [ "renr-servidores-windows-nrpe", "renr-servidores-windows-sqlserver", "renr-rdv-servidores-windows-sqlserver" ]
    % = modified in '/etc/icinga2/conf.d/renr/rdv/host_mad_bd.conf', lines 6:5-6:125
  * icon_image = "windows_server2.png"
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 44:5-44:38
  * icon_image_alt = "Servidor Windows"
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 45:5-45:39
  * max_check_attempts = 5
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 12:5-12:26
  * methods = null
  * name = "bd.mad.redventas"
  * notes = ""
  * notes_url = ""
  * retry_interval = 60
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 11:5-11:23
  * templates = [ "bd.mad.redventas", "renr-generic-server-windows-nrpe", "renr-generic-server-windows", "renr-generic-server", "pnp-hst" ]
    % = modified in '/etc/icinga2/conf.d/renr/rdv/host_mad_bd.conf', lines 2:1-7:1
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 49:1-51:1
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 42:1-46:1
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 7:1-14:1
    % = modified in '/etc/icinga2/conf.d/renr/templates/hosts.conf', lines 1:0-4:1
  * type = "Host"
  * vars = null
  * volatile = 0
  * zone = ""

This will cause the pnp4nagios buttons not showing in Icinga-Web.
If I change this file (/usr/share/icinga-web/app/modules/Cronks/data/xml/extensions/pnp-host-extension.xml) I see the buttons and I can see the graphs:

function() {
+ return true;
- if (this.getRecord().get("process_performance_data") == "1") {
-    return true;
- } else {
-    return false;
- }
}

But those changes are not a valid fix, only intended to check that I really have PNP4nagios correctly installed and that the perfdata for the Hosts is being collected.

CentOS 7
icinga2-2.2.4-1.el7.centos.x86_64
icinga2-bin-2.2.4-1.el7.centos.x86_64
icinga2-common-2.2.4-1.el7.centos.x86_64
icinga2-ido-mysql-2.2.4-1.el7.centos.x86_64
icinga-web-1.12.0-1.snapshot201502251702.el7.centos.noarch
icinga-web-module-pnp-1.12.0-1.snapshot201502251702.el7.centos.noarch
icinga-web-mysql-1.12.0-1.snapshot201502251702.el7.centos.noarch
python-icinga2-2.1.1-1.snapshot201410141914.el7.centos.x86_64

Changesets

2015-03-09 07:12:05 +00:00 by (unknown) 3046ad5

Fix incorrect value for the process_performance_data column in the icinga_hosts table

fixes #8544
@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-03-09 07:12:34 +00:00

  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version set to 2.3.0
  • Backport? changed from TBD to No

@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-03-09 07:12:47 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 3046ad5.

@icinga-migration icinga-migration added bug Something isn't working area/db-ido Database output labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/db-ido Database output bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant