Announcement

Collapse
No announcement yet.

[Bug] RRD-Tool used from envirement ...

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

  • [Bug] RRD-Tool used from envirement ...

    ... instead of the config variable:

    I searched a long time for the solution.... then i found this dirty bug.

    my Patch:

    client87:~/oreon-1.3.1-1/www/include/views/graphs/simpleRenderer # diff simpleRenderer.php /usr/local/oreon/www/include/views/graphs/simpleRenderer/simpleRenderer.php
    342c342,343
    < system("rrdtool update ".$oreon->optGen["oreon_path"]."filesGeneration/graphs/simpleRenderer/rrdDB/".str_replace(" ", "-",$ret["host_name"])."_".str_replace(" ", "-",$ret["service_description"]).".rrd ".$str . " 2>&1", $return);
    ---
    >
    > system($oreon->optGen["rrdtool_path_bin"] . " update ".$oreon->optGen["oreon_path"]."filesGeneration/graphs/simpleRenderer/rrdDB/".str_replace(" ", "-",$ret["host_name"])."_".str_replace(" ", "-",$ret["service_description"]).".rrd ".$str . " 2>&1", $return);
    375c376



    I hope it will help you!

    Greetings,

    Synox

  • #2
    Any developper could explain what this patch resolve ?
    Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
    Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
    Fedora Core 5 - 2.6.20-1.2320

    Comment


    • #3
      I'll try to explain:

      There is a Configuration Section in Oreon where you can define where rrdtool is located. In most cases the scripts use this rrdtool.
      But in this case, it try's to find it himself, which can't be the behaviour we want.
      In some cases this can result in strange errors, e.g. with different RRD-Versions.

      It's not "really" a patch, I just replaced

      "rrdtool

      with

      $oreon->optGen["rrdtool_path_bin"] . "


      --
      Synox

      Comment


      • #4
        ty :wink:
        Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
        Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
        Fedora Core 5 - 2.6.20-1.2320

        Comment


        • #5
          yes I have forgetten hard coded path ops:
          Julien Mathis
          Centreon Project Leader
          www.merethis.com |

          Comment

          Working...
          X