Announcement

Collapse
No announcement yet.

Impossible de faire communiquer 2 serveurs [Cannot get log file or log file doesn't]

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

  • Impossible de faire communiquer 2 serveurs [Cannot get log file or log file doesn't]

    Bonjour à tous

    Avant de poster cette demande, j'ai fait de nombreuses recherches sur le sujet, mais rien.

    Voici mon problème je veux intégrer un serveur Nagios dans ma solution de supervision afin qu'il devienne un collecteur distant

    Pour ce faire j'ai suivi ce tuto (comme tout le monde):
    http://en.doc.centreon.com/DistributedArchitecture

    les 2 serveurs ne communiquent pas entre eux, le message d'erreur dans centreon.log est le suivant
    Code:
    Cannot get log file or log file doesn't exists on poller 2


    Mes questions sont :
    - Comment doit on configure les fichiers ndo2db.cfg, ndomod.cfg sur les 2 serveurs pour qu'ils puissent communiquer entre eux.
    - Comment fait on pour démarrer ndo sur le serveur distant ?
    Quand je démarre NDO sur le satellite j'ai le message suivant
    Code:
    #/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
    Support for the specified database server is either not yet supported, or was not found on your system.

    Ma configuration:

    Srv Central : voir signature
    Srv Satellite: Nagios 3.2.3, NDOutils 1.4b9, Nagios-Plugins 1.4.15



    Merci d'avance pour votre aide
    jafa89
    Last edited by jafa89; 23 March 2011, 11:57. Reason: RESOLVED
    "Avoir plusieurs cordes à son arc est une bonne philosophie mais avoir plusieurs arcs c'est encore mieux "
    ---------------------
    Conf Centreon:
    RHEL 5.5 - 64 bits
    Nagios 3.2.0
    Centreon 2.1.10-->2.1.11-->2.1.12 --------> Vivement la 2.2
    Nagios-Plugins 1.4.14
    NDO2DB 1.4b9
    ---------------------
    OS: Redhat 4 & 5, CentOS 5, Ubuntu 9

  • #2
    Sorry for replying in english, my french is very bad, I had to use Google translate

    It seems that your remote poller has trouble initializing the ndo broker module.
    Please post contents of your nagios.cfg and ndomod.cfg from your remote poller, so we can have a look at it.

    Regards

    EDIT
    Also, please make sure that ndo2db on your poller was compiled with the appropriate database support, e.g. with --enable-mysql
    Last edited by emmjott; 22 March 2011, 18:35.

    Comment


    • #3
      good afternoon emmjott

      Tank you for speed reply
      For Me, It's english is bad but I learn.

      In the remote poller, there is one host of test with 7 services. I copy the files CFG with scp since serveur Centreon

      So here my ndomod.cfg
      Code:
      instance_name=SRV-DISTANT
      output_type=tcpsocket
      output=@IP-SRV-DISTANT (Is this good ?)  
      tcp_port=5668
      output_buffer_items=5000
      file_rotation_interval=14400
      file_rotation_timeout=60
      reconnect_interval=15
      reconnect_warning_interval=900
      data_processing_options=-1
      config_output_options=3

      And file nagios.cfg in remote poller :
      Code:
      # Configuration serveur satellite 
      cfg_file=/usr/local/nagios/etc/hostTemplates.cfg
      cfg_file=/usr/local/nagios/etc/hosts.cfg
      cfg_file=/usr/local/nagios/etc/serviceTemplates.cfg
      cfg_file=/usr/local/nagios/etc/services.cfg
      cfg_file=/usr/local/nagios/etc/misccommands.cfg
      cfg_file=/usr/local/nagios/etc/checkcommands.cfg
      cfg_file=/usr/local/nagios/etc/contactgroups.cfg
      cfg_file=/usr/local/nagios/etc/contacts.cfg
      cfg_file=/usr/local/nagios/etc/hostgroups.cfg
      cfg_file=/usr/local/nagios/etc/servicegroups.cfg
      cfg_file=/usr/local/nagios/etc/timeperiods.cfg
      cfg_file=/usr/local/nagios/etc/escalations.cfg
      cfg_file=/usr/local/nagios/etc/dependencies.cfg
      resource_file=/usr/local/nagios/etc//resource.cfg
      log_file=/usr/local/nagios/var/nagios.log
      temp_file=/usr/local/nagios/var/nagios.tmp
      status_file=/usr/local/nagios/var/status.log
      p1_file=/usr/local/nagios/bin/p1.pl
      status_update_interval=15
      nagios_user=nagios
      nagios_group=nagios
      enable_notifications=1
      execute_service_checks=1
      accept_passive_service_checks=1
      enable_event_handlers=1
      log_rotation_method=d
      log_archive_path=/usr/local/nagios/var/archives/
      check_external_commands=1
      command_check_interval=1s
      command_file=/usr/local/nagios/var/rw/nagios.cmd
      lock_file=/usr/local/nagios/var/nagios.lock
      retain_state_information=1
      state_retention_file=/usr/local/nagios/var/status.sav
      retention_update_interval=60
      use_retained_program_state=1
      use_retained_scheduling_info=1
      use_syslog=1
      log_notifications=1
      log_service_retries=1
      log_host_retries=1
      log_event_handlers=1
      log_initial_states=1
      log_external_commands=1
      log_passive_checks=1
      sleep_time=1
      service_inter_check_delay_method=s
      service_interleave_factor=s
      max_concurrent_checks=200
      max_service_check_spread=5
      check_result_reaper_frequency=5
      interval_length=60
      use_agressive_host_checking=1
      enable_flap_detection=0
      low_service_flap_threshold=25.0
      high_service_flap_threshold=50.0
      low_host_flap_threshold=25.0
      high_host_flap_threshold=50.0
      soft_state_dependencies=0
      service_check_timeout=60
      host_check_timeout=10
      event_handler_timeout=30
      notification_timeout=30
      ocsp_timeout=5
      ochp_timeout=5
      perfdata_timeout=5
      obsess_over_services=0
      process_performance_data=1
      service_perfdata_command=process-service-perfdata
      host_perfdata_file_mode=2
      service_perfdata_file_mode=2
      check_for_orphaned_services=0
      check_service_freshness=1
      date_format=euro
      illegal_object_name_chars=~!$%^&*"|'<>?,()=
      illegal_macro_output_chars=`~$^&"|'<>
      admin_email=admin
      [email protected]
      broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg
      event_broker_options=-1
      debug_file=/usr/local/nagios/var/debugnagios.log
      debug_level=-1
      "Avoir plusieurs cordes à son arc est une bonne philosophie mais avoir plusieurs arcs c'est encore mieux "
      ---------------------
      Conf Centreon:
      RHEL 5.5 - 64 bits
      Nagios 3.2.0
      Centreon 2.1.10-->2.1.11-->2.1.12 --------> Vivement la 2.2
      Nagios-Plugins 1.4.14
      NDO2DB 1.4b9
      ---------------------
      OS: Redhat 4 & 5, CentOS 5, Ubuntu 9

      Comment


      • #4
        Other information :

        In /var/log/messages

        Code:
         SRV-DISTANT nagios: ndomod: Still unable to connect to data sink.  8822 items lost, 5000 queued items to flush.
        "Avoir plusieurs cordes à son arc est une bonne philosophie mais avoir plusieurs arcs c'est encore mieux "
        ---------------------
        Conf Centreon:
        RHEL 5.5 - 64 bits
        Nagios 3.2.0
        Centreon 2.1.10-->2.1.11-->2.1.12 --------> Vivement la 2.2
        Nagios-Plugins 1.4.14
        NDO2DB 1.4b9
        ---------------------
        OS: Redhat 4 & 5, CentOS 5, Ubuntu 9

        Comment


        • #5
          Originally posted by jafa89 View Post
          Code:
          output=@IP-SRV-DISTANT (Is this good ?)
          You need to put the IP address from your Centreon server (Central) in this field..

          Originally posted by jafa89 View Post
          In /var/log/messages

          Code:
           SRV-DISTANT nagios: ndomod: Still unable to connect to data sink.  8822 items lost, 5000 queued items to flush.
          That says, ndomod can't connect to the ndo2db daemon. Make sure that you have the IP from your Centreon server in ndomod.cfg:

          Code:
          instance_name=SRV-DISTANT
          output_type=tcpsocket
          output=IP-SRV-CENTREON
          tcp_port=5668
          output_buffer_items=5000
          file_rotation_interval=14400
          file_rotation_timeout=60
          reconnect_interval=15
          reconnect_warning_interval=900
          data_processing_options=-1
          config_output_options=3
          Regards

          EDIT
          In your setup, you don't need ndo2db on your satellite, only on your Centreon Server (Central).

          Comment


          • #6
            [resolved]

            I did make the modification on ndomod.cfg of Satellite.
            Always the same error, so I recompil NDOutils with this command and I restart nd:
            Code:
            /configure --with-ndo2db-user=nagios --with-ndo2db-group=nagios --enable-mysql --disable-pgsql --prefix=/usr/local/nagios/
            I sent the file ndomod.cfg with my Linux user "nagios" and a password is requested so I resent the Key SSh by between my 2 servers.

            :grin: And Miracle I look at the Host and services of my satellite I am happy.

            I yet work but a big thank you.
            I must install the packages SNMP

            And yet thank

            If you want of help I will be this.

            Jafa89
            "Avoir plusieurs cordes à son arc est une bonne philosophie mais avoir plusieurs arcs c'est encore mieux "
            ---------------------
            Conf Centreon:
            RHEL 5.5 - 64 bits
            Nagios 3.2.0
            Centreon 2.1.10-->2.1.11-->2.1.12 --------> Vivement la 2.2
            Nagios-Plugins 1.4.14
            NDO2DB 1.4b9
            ---------------------
            OS: Redhat 4 & 5, CentOS 5, Ubuntu 9

            Comment


            • #7
              Glad to hear that you could make it working

              Comment

              Working...
              X