Announcement

Collapse
No announcement yet.

Problems with large service groups?

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

  • Problems with large service groups?

    Today the first time I got messages like:

    Fatal error: Call to a member function on a non-object in /usr/local/oreon/include/generatefile/services.php on line 29

    or

    Fatal error: Call to a member function on a non-object in /usr/local/oreon/include/generatefile/hosts.php on line 31

    Two things I changed:

    1.
    I included two selfwrote scripts which use
    $hostname = $s->get_host_name();
    $servicename = $s->get_description();
    and
    $hostname = $oreon->hosts[$oreon->services[$sv]->get_host()]->get_name();
    $servicename = $oreon->services[$sv]->get_description();

    2. I added a lot of service groups with about 10 to 200 services in each of them. Could this be a problem?


    Thank you
    /peter

  • #2
    The line 29 in services.php says:
    $oreon->services[$sv->get_id()]->generated = false;

    so I added above:
    echo ($oreon->services[$sv->get_id()]->generated);

    and got:
    11111111111111111111111111111111111111111111111111 11111111111111111111111111111111111111111111111111 11111111111111111111111111111111111111111111111111 11111111111111111111111111111111111111111111111111 11111111111111111111111111111111111111111111111111 11111111111111111111111111111111111111111111111111 11111111

    in case of error _and_ if everything is ok.

    Comment


    • #3
      no no but i think you have in your service group, services or hosts desabled... I think I have already seen this bug...
      Julien Mathis
      Centreon Project Leader
      www.merethis.com |

      Comment


      • #4
        Oh yes, a few of them are disabled.
        Thank you for this quick reply, I'll try it.


        /peter

        Comment


        • #5
          it will be corrected shortly
          Julien Mathis
          Centreon Project Leader
          www.merethis.com |

          Comment


          • #6
            great service, thx )

            Comment

            Working...
            X