Announcement

Collapse
No announcement yet.

Oreon - Can't generate services.cfg

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

  • Oreon - Can't generate services.cfg

    Hi!
    Everytime I hit the generate button I receive this error:

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


    I have even removed the services.cfg file from the upload folder but it still errors with the same error and tries to generate the services.cfg file.

    I have removed all files beside the ones it's generating properly after the error and I still receive the error.

    Here's the files it lists:

    misccommands.cfg 5.994 ko
    checkcommands.cfg 19.625 ko
    timeperiods.cfg 4.608 ko
    contacts.cfg 11.662 ko
    contactgroups.cfg 3.886 ko
    hosts.cfg 84.068 ko
    hostgroups.cfg 19.959 ko
    services.cfg 1.158 ko

    The files I have in the upload directory:
    checkcommands.cfg contactgroups.cfg contacts.cfg hostgroups.cfg hosts.cfg misccommands.cfg timeperiods.cfg

    can you please let me know what I am doing wrong?

    Adam

    EDIT::

    Also I get this:
    Fatal error: Call to a member function on a non-object in /usr/local/oreon/class/Service.class.php on line 229

    when trying to add a service manually.

    Thanks!

  • #2
    I think your database is corrupted... have you been added service or other object to oreon directly in database, by phpmyadmin by example ? Your php object is brocken... and oreon car load correctly their configurations...

    regards,
    Julien Mathis
    Centreon Project Leader
    www.merethis.com |

    Comment


    • #3
      I have not manually changed anything with phpmyadmin. I just installed the software (which went smoothly) and then tried to import.

      Adam

      Comment


      • #4
        php5 ??? :lol:
        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
          No, I am using 4.something.. it checked when installing and said okay. Any ideas?

          Adam

          Comment


          • #6
            I had the same problem. If you look in the services.cfg, it is putting "servicegroups" as a line, even though it's not specified. If this is the case, you can comment out the code in the /usr/local/oreon/include/export/services.php. There is an if statement that checks to see if you're using Nagios 2.0+. Comment out that block.

            Comment

            Working...
            X