Announcement

Collapse
No announcement yet.

No graphs : cdp_prep with no values in RRD files {HELP!}

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • No graphs : cdp_prep with no values in RRD files {HELP!}

    Centreon Web version: 2.8.25
    Centreon Engine version: 1.8.1
    Centreon Broker version: 3.0.14
    RRDTool: 1.5.5
    OS: Ubuntu 16.04 LTS

    Hello,

    I just finished a fresh install of Centreon from sources but my problem is that no graphs are generated.

    Here is my /var/log/centreon-broker/central-rrd-master.log
    Code:
    [1537264266] error:   RRD: failed to update value in file '/var/lib/centreon/status/1.rrd': /var/lib/centreon/status/1.rrd: Function update_pdp_prep, case DST_GAUGE - Cannot convert '' to float
    [1537264326] error:   RRD: failed to update value in file '/var/lib/centreon/status/1.rrd': /var/lib/centreon/status/1.rrd: Function update_pdp_prep, case DST_GAUGE - Cannot convert '' to float
    [1537264386] error:   RRD: failed to update value in file '/var/lib/centreon/status/1.rrd': /var/lib/centreon/status/1.rrd: Function update_pdp_prep, case DST_GAUGE - Cannot convert '' to float
    In the folder /var/lib/centreon/status/ there is only this file 1.rrd and here is what's inside :
    Code:
    > rrdtool info /var/lib/centreon/status/1.rrd
    
    filename = "/var/lib/centreon/status/1.rrd"
    rrd_version = "0003"
    step = 1
    last_update = 1537255764
    header_size = 792
    ds[value].index = 0
    ds[value].type = "GAUGE"
    ds[value].minimal_heartbeat = 3000
    ds[value].min = NaN
    ds[value].max = NaN
    ds[value].last_ds = "U"
    ds[value].value = NaN
    ds[value].unknown_sec = 0
    rra[0].cf = "AVERAGE"
    rra[0].rows = 51841
    rra[0].cur_row = 20827
    rra[0].pdp_per_row = 300
    rra[0].xff = 5,0000000000e-01
    rra[0].cdp_prep[0].value = NaN
    rra[0].cdp_prep[0].unknown_datapoints = 264
    rra[1].cf = "AVERAGE"
    rra[1].rows = 4321
    rra[1].cur_row = 550
    rra[1].pdp_per_row = 3600
    rra[1].xff = 5,0000000000e-01
    rra[1].cdp_prep[0].value = NaN
    rra[1].cdp_prep[0].unknown_datapoints = 1764
    The cdp_prep value in the RRD file is not defined (NaN = Not a Number) but I dont know why!

    When I look at my perdata in the database everything seems to be fine:

    Code:
    MariaDB [centreon_storage]> select * from data_bin where id_metric='1';
    +-----------+------------+------------+--------+
    | id_metric | ctime      | value      | status |
    +-----------+------------+------------+--------+
    |         1 | 1537256621 | 2884670000 |        |
    |         1 | 1537256921 | 2884670000 |        |
    |         1 | 1537257221 | 2884670000 |        |
    |         1 | 1537257521 | 2884670000 |        |
    |         1 | 1537257821 | 2884670000 |        |
    |         1 | 1537258121 | 2884670000 |        |
    |         1 | 1537258421 | 2884670000 |        |
    |         1 | 1537258721 | 2884670000 |        |
    |         1 | 1537259021 | 2884670000 |        |
    |         1 | 1537257521 | 2884670000 |        |
    |         1 | 1537257821 | 2884670000 |        |
    |         1 | 1537258121 | 2884670000 |        |
    |         1 | 1537258421 | 2884670000 |        |
    |         1 | 1537258721 | 2884670000 |        |
    |         1 | 1537259021 | 2884670000 |        |
    |         1 | 1537259339 | 2884670000 |        |
    |         1 | 1537259639 | 2884670000 |        |
    |         1 | 1537259939 | 2884670000 |        |
    |         1 | 1537260239 | 2884670000 |        |
    |         1 | 1537260539 | 2884670000 |        |
    |         1 | 1537260839 | 2884670000 |        |
    |         1 | 1537261139 | 2884670000 |        |
    |         1 | 1537261439 | 2884670000 |        |
    |         1 | 1537261739 | 2884670000 |        |
    |         1 | 1537261139 | 2884670000 |        |
    |         1 | 1537261439 | 2884670000 |        |
    |         1 | 1537261739 | 2884670000 |        |
    |         1 | 1537262039 | 2884670000 |        |
    |         1 | 1537262339 | 2884670000 |        |
    |         1 | 1537262639 | 2884670000 |        |
    |         1 | 1537262939 | 2884670000 |        |
    |         1 | 1537263239 | 2884670000 |        |
    |         1 | 1537263539 | 2884670000 |        |
    |         1 | 1537261139 | 2884670000 |        |
    |         1 | 1537261439 | 2884670000 |        |
    |         1 | 1537261739 | 2884670000 |        |
    |         1 | 1537262039 | 2884670000 |        |
    |         1 | 1537262339 | 2884670000 |        |
    |         1 | 1537262639 | 2884670000 |        |
    |         1 | 1537262939 | 2884670000 |        |
    |         1 | 1537263239 | 2884670000 |        |
    |         1 | 1537263539 | 2884670000 |        |
    |         1 | 1537264109 | 2884670000 |        |
    |         1 | 1537264409 | 2884670000 |        |
    |         1 | 1537264709 | 2884670000 |        |
    |         1 | 1537265009 | 2884670000 |        |
    +-----------+------------+------------+--------+
    46 rows in set (0.03 sec)
    Does someone know why I don't have any graphs generated?

    Thank you for you feedbacks because I'm really stuck.
    Last edited by PsyKoptiK; 18th September 2018, 14:52.

  • #2
    I have no clue, but i'd suggest you to install Centreon from the iso instead of the sources because many dependencies could be the cause of your issue.
    You have to check the logs one by one:
    /var/log/secure (i had some issue with permissions of cron job which were blocking the generation of some graph)
    /var/log/message


    And all the other centreon logs, most likely you will find something then come back here and post your findings

    Comment


    • #3
      Thank you for your interest Coco163, I actually had to install rrdtool 1.4.8 through Debian packages to solve the problem.
      This was not very simple because I think that few people install Centreon from its sources but I hat no choice of the platform! Thanks again, hope this will help!

      Comment

      Working...
      X