Announcement

Collapse
No announcement yet.

Nagios 2.5 with Oreon v1.3-RC3-1

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

  • Nagios 2.5 with Oreon v1.3-RC3-1

    Hi there,

    I'm trying to setup Nagios and Oreon but for some reason it's not running 100%.
    On some pages i'm getting the following error.
    Fatal error: Call to undefined function: fetchrow() in /usr/local/oreon/www/include/monitoring/status/service_problem.php on line 157
    and
    Fatal error: Call to undefined function: fetchinto() in /usr/local/oreon/www/include/configuration/configObject/host/listHost.php on line 75
    Also in the top left corner there is a message
    DB Error: syntax error
    I hope you could help me to solve this problem

    greetz,

    Passie

  • #2
    Did you make an install of Oreon from scratch or did you upgrade from an old version (different from 1.3.*) ?

    Very strange error.. No idea about it, the hostList prob came from this kind of SQL query, test it on you db :

    Code:
    SELECT @hTpl:=(SELECT host_name FROM host WHERE host_id = h.host_template_model_htm_id) AS hTpl, h.host_id, h.host_name, h.host_alias, h.host_address, h.host_activate, h.host_template_model_htm_id FROM host h WHERE h.host_register = '1' ORDER BY h.host_name
    Romain Le Merlus
    Centreon Forge
    MERETHIS

    Comment


    • #3
      wow, thats a fast reply

      It's a complete new install from both nagios and oreon.
      Because the host table is emtpy your query is not going to work.
      When i try to add a host trough oreon i'm getting the following error.

      Fatal error: Call to undefined function: fetchinto() in /usr/local/oreon/www/include/configuration/configObject/host/listHost.php on line 75

      Comment


      • #4
        Ok, but this sql query should work even there is no host in table, that's why I like you to test it.

        What kind of definition did you try to fill ?
        Romain Le Merlus
        Centreon Forge
        MERETHIS

        Comment


        • #5
          Ohoh i should be a shame. ops:
          Your MySQL connection id is 15130 to server version: 4.0.24_Debian-10sarge2
          After updating the mysql to
          Your MySQL connection id is 6 to server version: 4.1.11-Debian_4sarge2
          Everything is working.

          thnx,
          Passie

          Comment


          • #6
            Although it's up and running now.
            If got a question about importing.

            I was running version nagios 1.2 and upgraded to nagios 2.5
            I then followed this topic:

            http://forum.oreon-project.org/viewtopic.php?t=1610

            But for some reason it's not working
            when uploading everything looks nice, but when i press generate the data is gone.


            Because this didn't worked i followed this topic
            http://forum.oreon-project.org/viewt...ghlight=import

            If i look under configuration->services and hosts everything is there.
            but when i look under monitoring there are no hosts or services
            Also when i try to restart nagios with oreon i'm getting an arror, but when i reload it from shell it works.

            Im lost
            After moving the files by hand to the /usr/local/nagios/etc directory and changing the user permisions to nagios:nagios now it's up and running.
            which means the move files radio buttons is not doing what is supposed to be doing.


            Only 1 more problem to go and that is the rrd graph.
            The rrd graphs are unavailable

            Comment


            • #7
              I have my rrd graphs back but not the lines in the graph.
              Still trying to find out why that is.

              the problem with the move radio buttons has also been fixed.
              The problem was in my nagios.cfg.
              the
              Object Configuration Directory
              was empty en I filled it with
              /usr/local/nagios/etc/

              If you have any suggestions regarding the graphs please shout

              LOL im getting good in this.
              I saw that i forgot the -S $ARG3$ in de check command.
              The data is no filled up

              Comment


              • #8
                just some information.
                if your getting this error:
                Fatal error: Call to a member function on a non-object in /usr/share/php/HTML/QuickForm/group.php on line 391
                Change your php.ini with register_globals = off

                Comment


                • #9
                  Originally posted by passie
                  LOL im getting good in this.
                  I saw that i forgot the -S $ARG3$ in de check command.
                  The data is no filled up
                  If you are using check_graph plugins, don't fill it, it is done automaticly when you generate your configuration with the HOSTID_SERVICEID in order to have a physic rrd db in $oreon/rrd/
                  Romain Le Merlus
                  Centreon Forge
                  MERETHIS

                  Comment


                  • #10
                    Although the graphs are getting made.
                    The numbers that i'm getting back, are completly off.

                    if i use check_graph_traffic.pl it shows me 10 MB of data.
                    if i use check_graph_traffic_rrd.pl is shows me 15 GB.

                    I know for sure the server is producing 6 mbit/s.
                    Is there a way to change these values and/or colors from rrdtool ?

                    Example:
                    CRITICAL: (95%) depassed threshold. Traffic: 7962.24 Mb/s (796.22%) in, 14083.50 Mb/s (1408.35%) out - Speed Interface = 1000.00 Mb/s

                    greets,

                    passie

                    Comment


                    • #11
                      In addition of my previous reply I have gathered some information and pictures from Oreon and Cacti.
                      Both graphs are from the same machine.
                      As far as I can see is that Cacti is making good graphs and the one from Oreon are way off.
                      I don’t know if this is the right place but a plugin for cacti build in Oreon would be wonderful.

                      Cacti
                      http://www.sneakie.net/cacti.png

                      Oreon
                      http://www.sneakie.net/oreon.png

                      I hope this information is useful.

                      Comment


                      • #12
                        Originally posted by passie
                        As far as I can see is that Cacti is making good graphs and the one from Oreon are way off.
                        I can't see what you are trying to compare. The value or the customisation ?

                        There is 10 graphs on wide side, and 6 on the other one. There is no label, no DS on your Oreon's graph... and those of cacti are well field...

                        Please make the same template so we can't better understand what you want. :idea:
                        Romain Le Merlus
                        Centreon Forge
                        MERETHIS

                        Comment


                        • #13
                          I'm sorry for the confusion.

                          I have made a new picture with 2 samples
                          sample 1 belongs to sample 1 and sample 2 to sample 2

                          As you can see in sampe 1 the cacti graph it show 6mbit/s in and the graph below that is around 800 kb in ?

                          In sample 2 it shows 6 mbit/s out and in the graph below 797 kb out ?

                          http://www.sneakie.net/oreon-vs-cacti.png

                          There is also alot of fluctuation in the oreon graph.
                          I hope this will be beter to understand.

                          About the plugin is that a good idea or ........?

                          Comment


                          • #14
                            Which value seems to be ok ? Oreon value or Cacti value ?

                            In my network, I have an old mrtg and when I compare mrtg graph with Oreon RRD graph, values are similar.

                            Comment


                            • #15
                              Now check_grah_traffic (in 1.3) measure traffic in bit and not in octet, so the result will be multiply by 8.
                              So I can see that you have approximately 7Mbit of traffic, with Oreon 850 ko => 850 * 8 = 6800 Mbit :wink:

                              And now, it'll be the same.
                              Romain Le Merlus
                              Centreon Forge
                              MERETHIS

                              Comment

                              Working...
                              X