Announcement

Collapse
No announcement yet.

Missing option in Oreon for nagios.cfg

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

  • Missing option in Oreon for nagios.cfg

    This morning i wanted to add an option in the nagios.cfg file for the event broker NDO option within Nagios..

    broker_module=/usr/local/nagios/bin/ndomod.o-config_file=/usr/local/nagios/etc/ndomod.cfg

    This is only possible by manually editing the nagios.cfg file. After importing the new nagis.cfg file and open it in Oreon for editing the line is deleted and nowere to be seen.

    How can i add this option to Nagios from Oreon?
    ...

  • #2
    Send us all the field you need to manage NDO, their type, default value..
    And not only the one You like, but the one who are existing by now.
    Romain Le Merlus
    Centreon Forge
    MERETHIS

    Comment


    • #3
      Here they are...

      some more *.cfg files for Nagios NDO

      Code:
      #####################################################################
      # NDO2DB DAEMON CONFIG FILE
      #
      # Last Modified: 02-12-2006
      #####################################################################
      
      
      # SOCKET TYPE
      # This option determines what type of socket the daemon will create
      # an accept connections from.
      # Value:
      #   unix = Unix domain socket (default)
      #   tcp  = TCP socket
      
      socket_type=unix
      #socket_type=tcp
      
      
      # SOCKET NAME
      # This option determines the name and path of the UNIX domain 
      # socket that the daemon will create and accept connections from.
      # This option is only valid if the socket type specified above
      # is "unix".
      
      socket_name=/usr/local/nagios/var/ndo.sock
      
      
      
      # TCP PORT
      # This option determines what port the daemon will listen for
      # connections on.  This option is only vlaid if the socket type
      # specified above is "tcp".
      
      tcp_port=5668
      
      
      
      # DATABASE SERVER TYPE
      # This option determines what type of DB server the daemon should
      # connect to.
      # Values:
      # 	mysql = MySQL
      #       pgsql = PostgreSQL
      
      db_servertype=mysql
      
      
      
      # DATABASE HOST
      # This option specifies what host the DB server is running on.
      
      db_host=localhost
      
      
      
      # DATABASE PORT
      # This option specifies the port that the DB server is running on.
      # Values:
      # 	3306 = Default MySQL port
      #	5432 = Default PostgreSQL port
      
      db_port=3306
      
      
      
      # DATABASE NAME
      # This option specifies the name of the database that should be used.
      
      db_name=nagios
      
      
      
      # DATABASE TABLE PREFIX
      # Determines the prefix (if any) that should be prepended to table names.
      
      db_prefix=
      #db_prefix=ndo_
      
      
      
      # DATABASE USERNAME/PASSWORD
      # This is the username/password that will be used to authenticate to the DB.
      # The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on
      # the database.
      
      db_user=xxxxxx
      db_pass=xxxxxx
      
      
      
      ## TABLE TRIMMING OPTIONS
      # Several database tables containing Nagios event data can become quite large
      # over time.  Most admins will want to trim these tables and keep only a
      # certain amount of data in them.  The options below are used to specify the
      # age (in MINUTES) that data should be allowd to remain in various tables
      # before it is deleted.  Using a value of zero (0) for any value means that
      # that particular table should NOT be automatically trimmed.
      
      # Keep timed events for 24 hours
      max_timedevents_age=1440
      
      # Keep system commands for 1 week
      max_systemcommands_age=10080
      
      # Keep service checks for 1 week
      max_servicechecks_age=10080
      
      # Keep host checks for 1 week
      max_hostchecks_age=10080
      
      # Keep event handlers for 31 days
      max_eventhandlers_age=44640
      ----------------------------------------------------------

      and here one more

      Code:
      #####################################################################
      # NDOMOD CONFIG FILE
      #
      # Last Modified: 01-10-2006
      #####################################################################
      
      
      # INSTANCE NAME
      # This option identifies the "name" associated with this particular
      # instance of Nagios and is used to seperate data coming from multiple
      # instances.  Defaults to 'default' (without quotes).
      
      instance_name=Zurich
      
      
      
      # OUTPUT TYPE
      # This option determines what type of output sink the NDO NEB module
      # should use for data output.  Valid options include:
      #   file       = standard text file
      #   tcpsocket  = TCP socket
      #   unixsocket = UNIX domain socket (default)
      
      #output_type=file
      #output_type=tcpsocket
      output_type=unixsocket
      
      
      
      # OUTPUT
      # This option determines the name and path of the file or UNIX domain 
      # socket to which output will be sent if the output type option specified
      # above is "file" or "unixsocket", respectively.  If the output type
      # option is "tcpsocket", this option is used to specify the IP address
      # of fully qualified domain name of the host that the module should
      # connect to for sending output.
      
      #output=/usr/local/nagios/var/ndo.dat
      #output=127.0.0.1
      output=/usr/local/nagios/var/ndo.sock
      
      
      
      # TCP PORT
      # This option determines what port the module will connect to in
      # order to send output.  This option is only vlaid if the output type
      # option specified above is "tcpsocket".
      
      tcp_port=5668
      
      
      
      # OUTPUT BUFFER
      # This option determines the size of the output buffer, which will help
      # prevent data from getting lost if there is a temporary disconnect from
      # the data sink.  The number of items specified here is the number of
      # lines (each of variable size) of output that will be buffered.
      
      output_buffer_items=5000
      
      
      
      # FILE ROTATION INTERVAL
      # This option determines how often (in seconds) the output file is
      # rotated by Nagios.  File rotation is handled by Nagios by executing
      # the command defined by the file_rotation_command option.  This
      # option has no effect if the output_type option is a socket.
      
      file_rotation_interval=14400
      
      
      
      # FILE ROTATION COMMAND
      # This option specified the command (as defined in Nagios) that is
      # used to rotate the output file at the interval specified by the
      # file_rotation_interval option.  This option has no effect if the
      # output_type option is a socket.
      #
      # See the file 'misccommands.cfg' for an example command definition
      # that you can use to rotate the log file.
      
      #file_rotation_command=rotate_ndo_log
      
      
      
      # FILE ROTATION TIMEOUT
      # This option specified the maximum number of seconds that the file
      # rotation command should be allowed to run before being prematurely
      # terminated.
      
      file_rotation_timeout=60
      
      
      
      # RECONNECT INTERVAL
      # This option determines how often (in seconds) that the NDBXT NEB
      # module will attempt to re-connect to the output file or socket if
      # a connection to it is lost.
      
      reconnect_interval=15
      
      
      
      # RECONNECT WARNING INTERVAL
      # This option determines how often (in seconds) a warning message will
      # be logged to the Nagios log file if a connection to the output file
      # or socket cannot be re-established.
      
      reconnect_warning_interval=15
      #reconnect_warning_interval=900
      
      
      
      # DATA PROCESSING OPTION
      # This option determines what data the NDBXT NEB module will process. 
      # Do not mess with this option unless you know what you're doing!!!!
      # Read the source code (include/ndbxtmod.h) to determine what values
      # to use here.  Values from source code should be OR'ed to get the
      # value to use here.  A value of -1 will cause all data to be processed.
      
      data_processing_options=-1
      
      
      
      # CONFIG OUTPUT OPTION
      # This option determines what types of configuration data the NDBXT
      # NEB module will dump from Nagios.  Values can be OR'ed together.
      # Values: 0 = Don't dump anything
      #         1 = Dump original config (from config files)
      #         2 = Dump config after retained information has been restored
      
      config_output_options=3
      ---------------------------------------------

      and together with the entry in nagios.cfg

      Code:
      # SAMPLE NAGIOS CONFIG SNIPPET FOR NDOMOD
      #
      # In order to have Nagios run the NDOMOD event broker module, you'll need
      # to place a statement like the one found below in your main Nagios
      # configuration file (nagios.cfg).  Adjust the paths, etc. to suit your needs.
      
      broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg

      ----------------------------------------------

      they make up the Nagios NDO configuration...

      Comment


      • #4
        resolved ?

        Hi,

        I am facing the same problem, that the broker module option is not available in Oreon.
        Was this problem resolved ?
        And if yes, how ?

        Thanks
        Mathias

        Comment


        • #5
          Originally posted by rom
          Send us all the field you need to manage NDO, their type, default value..
          And not only the one You like, but the one who are existing by now.
          Un petit up de dérrière les fagots !
          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


          • #6
            Originally posted by DonKiShoot View Post
            Un petit up de dérrière les fagots !
            I assume this means nothing nice.

            Attached you find the necessary nagios.cfg (nagios.cfg.txt) options and the default configuration files ndomod.cfg (ndomod.cfg) and ndo2db.cfg (ndo2db.cfg.txt). As usual at the Nagios project, everything is very well documented.

            Hope this helps!

            The two options in nagios.cfg would be a great step forward, because NDO would work, even if the NDO files are not manageable via the OREON interface.

            Thanks,
            Mathias

            PS:
            As pointed out at http://www.oreon-project.org/develop...--roadmap.html the compatibility with NDO is planned. Who knows if and when the release is planned? Is this posting maybe a first step ???
            Attached Files

            Comment


            • #7
              [fixed] Missing option in Oreon for nagios.cfg

              Big thanks to Julien Mathis!

              http://bugs.oreon-project.org/?do=details&id=319
              He fixed it in almost instantly.

              I did not have the chance to test it, but when I have done it, I will update this thread.

              Comment

              Working...
              X