Announcement

Collapse
No announcement yet.

CES 3.3 remote poller not running

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

  • CES 3.3 remote poller not running

    Les deux serveur central et poller à distance sont installés à partir de la dernière version (3.3) de CES. Je puis la configuration du voteur à distance dans la documentation et peut avec succès SSH depuis le serveur central du voteur à distance sans utiliser des mots de passe (en utilisant PKI). Sur les deux serveur central et poller distant J'ai essayé de redémarrer le centengine, et ai rechargé les serveurs. Sur le serveur central, le poller distant semble répondre à toutes les commandes de gestion de poller:


    Both central server and remote poller are installed from the latest release (3.3) of CES. I followed the remote poller setup in the documentation and can successfully SSH from the central server to the remote poller without using passwords (by using PKI). On both central server and remote poller I have tried restarting the centengine, and have rebooted the servers. On the central server, the remote poller seems to respond to all poller management commands:

    Code:
    # centreon -u admin -p password -a pollerlist
    1       central
    2       remote1
    Return code end : 0
    Code:
    # centreon -u admin -p password -a POLLERgenerate -v 2
    Configuration files generated for poller '2'
    Return code end : 0
    Code:
    # centreon -u admin -p password -a POLLERtest -v 2
    Warning: Nagios Poller 2 can restart but configuration is not optimal. Please see debug bellow :
    ---------------------------------------------------------------------------------------------------
    [1459268779] [7278] Reading main configuration file '/usr/share/centreon//filesGeneration/nagiosCFG/2/nagiosCFG.DEBUG'.
    [1459268779] [7278] Warning: temp_path variable ignored
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/hostTemplates.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/hosts.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/serviceTemplates.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/services.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/commands.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/contactgroups.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/contacts.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/hostgroups.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/servicegroups.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/timeperiods.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/escalations.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/dependencies.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/connectors.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/meta_commands.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/meta_timeperiod.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/meta_host.cfg'
    [1459268779] [7278] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/meta_services.cfg'
    [1459268779] [7278] Reading resource file '/usr/share/centreon//filesGeneration/nagiosCFG/2/resource.cfg'
    [1459268779] [7278] Checking global event handlers...
    [1459268779] [7278] Checking obsessive compulsive processor commands...
    [1459268779] [7278]
    [1459268779] [7278] Checked 7 commands.
    [1459268779] [7278] Checked 0 connectors.
    [1459268779] [7278] Checked 1 contacts.
    [1459268779] [7278] Checked 0 host dependencies.
    [1459268779] [7278] Checked 0 host escalations.
    [1459268779] [7278] Checked 2 host groups.
    [1459268779] [7278] Checked 19 hosts.
    [1459268779] [7278] Checked 0 service dependencies.
    [1459268779] [7278] Checked 0 service escalations.
    [1459268779] [7278] Checked 0 service groups.
    [1459268779] [7278] Checked 154 services.
    [1459268779] [7278] Checked 1 time periods.
    [1459268779] [7278]
    [1459268779] [7278] Total Warnings: 1
    [1459268779] [7278] Total Errors:   0
    Code:
    # centreon -u admin -p password -a cfgmove -v 2
    OK: All configuration will be send to 'remote1' by centcore in several minutes.
    Return code end : 0
    Code:
    # centreon -u admin -p password -a pollerrestart -v 2
    OK: A restart signal has been sent to 'remote1'
    Return code end : 0
    #
    Code:
     centreon -u admin -p password -a applycfg -v 2
    2016-03-29 10:28:54 - APPLYCFG
    Configuration files generated for poller '2'
    
    Warning: Nagios Poller 2 can restart but configuration is not optimal. Please see debug bellow :
    ---------------------------------------------------------------------------------------------------
    [1459268935] [7864] Reading main configuration file '/usr/share/centreon//filesGeneration/nagiosCFG/2/nagiosCFG.DEBUG'.
    [1459268935] [7864] Warning: temp_path variable ignored
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/hostTemplates.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/hosts.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/serviceTemplates.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/services.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/commands.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/contactgroups.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/contacts.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/hostgroups.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/servicegroups.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/timeperiods.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/escalations.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/dependencies.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/connectors.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/meta_commands.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/meta_timeperiod.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/meta_host.cfg'
    [1459268935] [7864] Processing object config file '/usr/share/centreon//filesGeneration/nagiosCFG/2/meta_services.cfg'
    [1459268935] [7864] Reading resource file '/usr/share/centreon//filesGeneration/nagiosCFG/2/resource.cfg'
    [1459268935] [7864] Checking global event handlers...
    [1459268935] [7864] Checking obsessive compulsive processor commands...
    [1459268935] [7864]
    [1459268935] [7864] Checked 7 commands.
    [1459268935] [7864] Checked 0 connectors.
    [1459268935] [7864] Checked 1 contacts.
    [1459268935] [7864] Checked 0 host dependencies.
    [1459268935] [7864] Checked 0 host escalations.
    [1459268935] [7864] Checked 2 host groups.
    [1459268935] [7864] Checked 19 hosts.
    [1459268935] [7864] Checked 0 service dependencies.
    [1459268935] [7864] Checked 0 service escalations.
    [1459268935] [7864] Checked 0 service groups.
    [1459268935] [7864] Checked 154 services.
    [1459268935] [7864] Checked 1 time periods.
    [1459268935] [7864]
    [1459268935] [7864] Total Warnings: 1
    [1459268935] [7864] Total Errors:   0
    
    ---------------------------------------------------------------------------------------------------
    
    OK: All configuration will be send to 'remote1' by centcore in several minutes.
    
    OK: A restart signal has been sent to 'remote1'
    Return code end : 0
    Code:
    # centreon -u admin -p password -a pollerreload -v 2
    OK: A reload signal has been sent to 'remote1'
    Return code end : 0
    Code:
    # centreon -u admin -p password -a pollerexeccmd -v 2
    Return code end : 0
    Pourtant, dans mon serveur central après l'exécution de toutes ces commandes, je vois:

    Yet, back in my central server after running all these commands, I see:
    Capture.PNG

  • #2
    hello,

    Some basics checks i'll do to debug this issue.

    I do not know you network configuration so I assume poller (remote1) is on remote network linked by VPN/MPLS.... but without NAT (if so, please check you nat and firewall rules). Furthermore, did you receive any monitoring info/services updates from poller1

    1) log on remote1 as root and double check centengine service is running
    2) log on central and check centengine AND cbd service are running
    3) if those tests are OK, please check that you can "reach" the central from remote1 using
    Code:
    telnet centreon-central-IP 5669
    Port 5669 seems to be the default one.
    If OK you should have something like:
    Code:
    Trying 192.168.0.258...
    Connected to 192.168.0.258.
    Escape character is '^]'.
    It confirm that communication is OK between two hosts.

    If this fail, please post your centralbroker, central-engine and poller engine conf.

    Hope this will help solve your problem.
    Last edited by guitounet; 1st April 2016, 17:05.

    Comment


    • #3
      Connected via IPSec VPN. All traffic between the 2 hosts is permitted through the network firewalls as well as the local iptables firewalls. I have confirmed with nmap that port 5669 is open.

      Code:
      # nmap -p 5669 10.1.10.2
      ...
      PORT     STATE SERVICE
      5669/tcp open  unknown
      On remote1 the centengine service is running.

      Code:
      # service centengine status
      centengine status: running                                 [  OK  ]
      I can successfully connect to port 5669 from remote1

      Code:
      # telnet 10.1.10.2 5669
      Trying 10.1.10.2...
      Connected to 10.1.10.2.
      Escape character is '^]'.
      The configuration for the central is whatever the default is for newly installed CES 3.3 hosts, and the remote was created as a simple poller via the "Add with Wizard" button. If you could tell me the file paths to those files I can post them. find / -name does not find any files with the names you specified.

      Comment


      • #4
        Sorry,
        i did not specify right name but generic files name for roles.

        On poller as I know, configurations files are located here :
        Code:
        /etc/centreon-engine/ndomod.cfg
        /etc/centreon-engine/centengine.cfg
        /etc/centreon/conf.pm
        /etc/centreon-broker/master.run
        /etc/centreon-broker/XML-FILE-YOU-FIND-HERE.xml
        Or you can take multiple screenshots of your webadmin GUI.

        Normally, you should have at least XMLfile listed in centengine.cfg as an argument for
        Code:
        broker_module=/usr/lib64/nagios/cbmod.so $XMLFILENAME$
        Did you try to generate configuration and restart poller by wentreon webadmin ?
        Code:
        Configuration > Pollers : apply configuration
        I'm not familiar with centreon CLI tools, and maybe you do not run them in order.

        Finally can you run tcpdump from your central to monitor network traffic and be sure something is flowing from your poller :
        Code:
        tcpdump -n  host $IPPoller and port 5669
        Let me know your results.

        Gui

        Comment


        • #5


          ndomod.cfg:
          file does not exist on poller.

          centengine.cfg:
          Code:
          cfg_file=/etc/centreon-engine/hostTemplates.cfg
          cfg_file=/etc/centreon-engine/hosts.cfg
          cfg_file=/etc/centreon-engine/serviceTemplates.cfg
          cfg_file=/etc/centreon-engine/services.cfg
          cfg_file=/etc/centreon-engine/commands.cfg
          cfg_file=/etc/centreon-engine/contactgroups.cfg
          cfg_file=/etc/centreon-engine/contacts.cfg
          cfg_file=/etc/centreon-engine/hostgroups.cfg
          cfg_file=/etc/centreon-engine/servicegroups.cfg
          cfg_file=/etc/centreon-engine/timeperiods.cfg
          cfg_file=/etc/centreon-engine/escalations.cfg
          cfg_file=/etc/centreon-engine/dependencies.cfg
          cfg_file=/etc/centreon-engine/connectors.cfg
          cfg_file=/etc/centreon-engine/meta_commands.cfg
          cfg_file=/etc/centreon-engine/meta_timeperiod.cfg
          cfg_file=/etc/centreon-engine/meta_host.cfg
          cfg_file=/etc/centreon-engine/meta_services.cfg
          broker_module=/usr/lib64/centreon-engine/externalcmd.so
          interval_length=60
          resource_file=/etc/centreon-engine/resource.cfg
          log_file=/var/log/centreon-engine/centengine.log
          object_cache_file=/var/log/centreon-engine/objects.cache
          temp_path=/tmp/
          status_file=/var/log/centreon-engine/status.dat
          use_check_result_path=0
          status_update_interval=30
          external_command_buffer_slots=4096
          command_check_interval=1s
          command_file=/var/lib/centreon-engine/rw/centengine.cmd
          state_retention_file=/var/log/centreon-engine/retention.dat
          retention_update_interval=60
          sleep_time=0.2
          service_inter_check_delay_method=s
          host_inter_check_delay_method=s
          service_interleave_factor=s
          max_concurrent_checks=400
          max_service_check_spread=5
          max_host_check_spread=5
          check_result_reaper_frequency=5
          max_check_result_reaper_time=10
          low_service_flap_threshold=25.0
          high_service_flap_threshold=50.0
          low_host_flap_threshold=25.0
          high_host_flap_threshold=50.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
          date_format=euro
          illegal_object_name_chars=~!$%^&*"|'<>?,()=
          illegal_macro_output_chars=`~$^&"|'<>
          [email protected]
          admin_pager=admin
          event_broker_options=-1
          translate_passive_host_checks=2
          passive_host_checks_are_soft=2
          debug_file=/var/log/centreon-engine/centengine.debug
          debug_level=0
          debug_verbosity=0
          max_debug_file_size=1000000000
          log_pid=1
          enable_notifications=1
          execute_service_checks=1
          accept_passive_service_checks=1
          execute_host_checks=1
          accept_passive_host_checks=1
          enable_event_handlers=1
          check_external_commands=1
          use_retained_program_state=1
          use_retained_scheduling_info=1
          use_syslog=0
          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=0
          auto_reschedule_checks=0
          use_aggressive_host_checking=0
          soft_state_dependencies=0
          obsess_over_services=0
          process_performance_data=0
          check_for_orphaned_services=0
          check_for_orphaned_hosts=0
          enable_predictive_host_dependency_checks=0
          enable_predictive_service_dependency_checks=0
          use_large_installation_tweaks=1
          conf.pm:
          Code:
          #############################################
          # File Added by Centreon
          #
          
          $centreon_config = {
                 VarLib => "/var/lib/centreon/",
                 CentreonDir => "/usr/share/centreon/",
                 "centreon_db" => "",
                 "centstorage_db" => "",
                 "db_host" => "",
                 "db_user" => "",
                 "db_passwd" => "",
                 "db_type" => "",
          };
          
          # Central or Poller ?
          $instance_mode = "poller";
          $cmdFile = "/var/lib/centreon-engine/rw/centengine.cmd";
          
          1;
          master.run:
          Code:
          # cat master.run
          ## This file define the Centreon Broker daemons to start
          # Example :
          # central-cbd   central-cbd.xml y       y
          # central-rrd   central-rrd.xml y       n
          #
          # The first line the daemon central-cbd is started with start action from
          # /etc/init.d/cbd and it's reload by action reload of init script
          #
          # The second line the daemon central-rrd is started but it is not reload by
          # action in /etc/cbd reload
          #
          #
          # daemon_name   daemon_config   running         reload
          central-rrd     central-rrd.xml y       y
          central-broker  central-broker.xml      y       y
          poller-module.xml
          Code:
          <?xml version="1.0" encoding="UTF-8"?>
          <centreonBroker>
           <instance><![CDATA[2]]></instance>
           <instance_name><![CDATA[S-IE-Centreon]]></instance_name>
           <module_directory><![CDATA[/usr/share/centreon/lib/centreon-broker]]></module_directory>
           <log_timestamp><![CDATA[0]]></log_timestamp>
           <log_thread_id><![CDATA[1]]></log_thread_id>
           <event_queue_max_size><![CDATA[50000]]></event_queue_max_size>
           <command_file><![CDATA[]]></command_file>
           <logger>
            <name><![CDATA[/var/log/centreon-broker/poller-module.log]]></name>
            <config><![CDATA[yes]]></config>
            <debug><![CDATA[no]]></debug>
            <error><![CDATA[yes]]></error>
            <info><![CDATA[no]]></info>
            <level><![CDATA[low]]></level>
            <type><![CDATA[file]]></type>
           </logger>
           <output>
            <name><![CDATA[Central]]></name>
            <port><![CDATA[5669]]></port>
            <host><![CDATA[s-ut-centreon]]></host>
            <protocol><![CDATA[bbdo]]></protocol>
            <tls><![CDATA[no]]></tls>
            <negotiation><![CDATA[yes]]></negotiation>
            <one_peer_retention_mode><![CDATA[no]]></one_peer_retention_mode>
            <compression><![CDATA[auto]]></compression>
            <type><![CDATA[ipv4]]></type>
            <failover><![CDATA[Central-output-failover]]></failover>
           </output>
           <output>
            <type><![CDATA[file]]></type>
            <name><![CDATA[Central-output-failover]]></name>
            <path><![CDATA[/var/lib/centreon-broker/s-ie-ireland-module_Central.retention]]></path>
            <protocol><![CDATA[bbdo]]></protocol>
            <compression><![CDATA[auto]]></compression>
            <max_size><![CDATA[524288000]]></max_size>
           </output>
           <temporary>
            <type><![CDATA[file]]></type>
            <name><![CDATA[s-ie-ireland-module-temporary]]></name>
            <path><![CDATA[/var/lib/centreon-broker/s-ie-ireland-module.temporary]]></path>
            <protocol><![CDATA[bbdo]]></protocol>
            <compression><![CDATA[auto]]></compression>
            <max_size><![CDATA[524288000]]></max_size>
           </temporary>
          </centreonBroker>
          It does not look like there is an $XMLFILENAME$ argument listed on the broker_module line in the centengine.cfg file.

          Did you try to generate configuration and restart poller by wentreon webadmin ?
          Yes, here are the results:


          The tcpdump did not capture any packets during the actions performed within that screenshot.


















          Last edited by unassassinable; 5th April 2016, 18:17.

          Comment


          • #6
            The image is incorrect. That is the central poller. The remote poller is S-IE-Centreon. Sorry for confusion.

            Comment


            • #7
              OK seems your configuration has some missing informations :

              Here on my poller if i run that :
              Code:
              cat /etc/centreon-engine/centengine.cfg | grep broker
              broker_module=/usr/lib64/centreon-engine/externalcmd.so
              broker_module=/usr/lib64/nagios/cbmod.so /etc/centreon-broker/poller-xxxxx-module.xml
              So as you wrote, there is a missing argument/line !

              In centreon Web UI :

              Clipboard_2016-04-06_15-05-35.jpg
              Add this and I think you poller will start sending stuff to you central !

              But be sure before it can solve hostname you specified in your /etc/centreon-broker/poller-module.xml (s-ut-centreon). It is not an FQDN so be sure your DNS config (dns suffix) is set correctly on your poller or change you central hostname s-ut-centreon to full FQDN!

              Code:
              <host><![CDATA[s-ut-centreon]]></host>
              Please let me know if it's works !

              Guillaume
              Attached Files

              Comment


              • #8
                I modified the S-IE-Centreon engine (Data tab) configuration according to your suggestion:
                From the remote poller, I run:

                Code:
                # cat /etc/centreon-engine/centengine.cfg | grep broker
                broker_module=/usr/lib64/centreon-engine/externalcmd.so
                broker_module=/usr/lib64/centreon-engine/externalcmd.so /etc/centreon-broker/poller-module.xml
                event_broker_options=-1
                Because I have set DOMAIN in /etc/sysconfig/network-scripts/ifcfg-eth0, I can correctly resolve S-UT-Centreon:

                Code:
                # ping s-ut-centreon
                PING s-ut-centreon.domain.com (10.1.10.2) 56(84) bytes of data.
                64 bytes from s-ut-centreon.domain.com (10.1.10.2): icmp_seq=1 ttl=62 time=153 ms
                After I made the change to the poller, I restarted the centengine service on the poller:

                Code:
                # service centengine restart
                ..centengine restart: done                                 [  OK  ]
                And from the webpage, I applied the configurations using restart:


                However, my poller still shows "Is running? No" In my list of pollers in the web page:
                Attached Files
                Last edited by unassassinable; 6th April 2016, 21:06.

                Comment


                • #9
                  ... Can you post your central conf files ? If I think you poller is ok, maybe there still an issue with you central ?

                  Comment


                  • #10
                    Code:
                    # cat /etc/centreon-engine/centengine.cfg
                    
                    cfg_file=/etc/centreon-engine/hostTemplates.cfg
                    cfg_file=/etc/centreon-engine/hosts.cfg
                    cfg_file=/etc/centreon-engine/serviceTemplates.cfg
                    cfg_file=/etc/centreon-engine/services.cfg
                    cfg_file=/etc/centreon-engine/commands.cfg
                    cfg_file=/etc/centreon-engine/contactgroups.cfg
                    cfg_file=/etc/centreon-engine/contacts.cfg
                    cfg_file=/etc/centreon-engine/hostgroups.cfg
                    cfg_file=/etc/centreon-engine/servicegroups.cfg
                    cfg_file=/etc/centreon-engine/timeperiods.cfg
                    cfg_file=/etc/centreon-engine/escalations.cfg
                    cfg_file=/etc/centreon-engine/dependencies.cfg
                    cfg_file=/etc/centreon-engine/connectors.cfg
                    cfg_file=/etc/centreon-engine/meta_commands.cfg
                    cfg_file=/etc/centreon-engine/meta_timeperiod.cfg
                    cfg_file=/etc/centreon-engine/meta_host.cfg
                    cfg_file=/etc/centreon-engine/meta_services.cfg
                    broker_module=/usr/lib64/centreon-engine/externalcmd.so
                    broker_module=/usr/lib64/nagios/cbmod.so /etc/centreon-broker/central-module.xml
                    interval_length=60
                    resource_file=/etc/centreon-engine/resource.cfg
                    log_file=/var/log/centreon-engine/centengine.log
                    status_file=/var/log/centreon-engine/status.dat
                    use_check_result_path=0
                    command_check_interval=1s
                    command_file=/var/lib/centreon-engine/rw/centengine.cmd
                    state_retention_file=/var/log/centreon-engine/retention.dat
                    retention_update_interval=60
                    sleep_time=0.2
                    service_inter_check_delay_method=s
                    service_interleave_factor=s
                    max_concurrent_checks=400
                    max_service_check_spread=5
                    check_result_reaper_frequency=5
                    low_service_flap_threshold=25.0
                    high_service_flap_threshold=50.0
                    low_host_flap_threshold=25.0
                    high_host_flap_threshold=50.0
                    service_check_timeout=60
                    host_check_timeout=12
                    event_handler_timeout=30
                    notification_timeout=30
                    ocsp_timeout=5
                    ochp_timeout=5
                    perfdata_timeout=5
                    date_format=iso8601
                    illegal_object_name_chars=~!$%^&*"|'<>?,()=
                    illegal_macro_output_chars=`~$^&"|'<>
                    [email protected]
                    admin_pager=admin
                    event_broker_options=-1
                    cached_host_check_horizon=60
                    debug_file=/var/log/centreon-engine/centengine.debug
                    debug_level=0
                    debug_verbosity=2
                    log_pid=1
                    service_perfdata_command=process-service-perfdata
                    enable_notifications=1
                    execute_service_checks=1
                    accept_passive_service_checks=1
                    enable_event_handlers=1
                    check_external_commands=1
                    use_retained_program_state=1
                    use_retained_scheduling_info=1
                    use_syslog=0
                    log_notifications=1
                    log_service_retries=1
                    log_host_retries=1
                    log_event_handlers=1
                    log_initial_states=1
                    log_external_commands=1
                    soft_state_dependencies=0
                    obsess_over_services=0
                    process_performance_data=0
                    check_for_orphaned_services=0
                    check_for_orphaned_hosts=0
                    check_service_freshness=1
                    Code:
                    # cat /etc/centreon/conf.pm
                    #############################################
                    # File Added by Centreon
                    #
                    
                    $centreon_config = {
                           VarLib => "/var/lib/centreon",
                           CentreonDir => "/usr/share/centreon/",
                           "centreon_db" => "centreon",
                           "centstorage_db" => "centreon_storage",
                           "db_host" => "localhost:3306",
                           "db_user" => "centreon",
                           "db_passwd" => '8nrzht60sw76nd4'
                    };
                    
                    # Central or Poller ?
                    $instance_mode = "central";
                    
                    # Centreon Centcore Command File
                    $cmdFile = "/var/lib/centreon/centcore.cmd";
                    
                    # Deprecated format of Config file.
                    $mysql_user = "centreon";
                    $mysql_passwd = '8nrzht60sw76nd4';
                    $mysql_host = "localhost:3306";
                    $mysql_database_oreon = "centreon";
                    $mysql_database_ods = "centreon_storage";
                    
                    
                    	
                    	
                    	
                    
                    
                    Code:
                    1;
                    # cat /etc/centreon-broker/master.run ## This file define the Centreon Broker daemons to start # Example : # central-cbd central-cbd.xml y y # central-rrd central-rrd.xml y n # # The first line the daemon central-cbd is started with start action from # /etc/init.d/cbd and it's reload by action reload of init script # # The second line the daemon central-rrd is started but it is not reload by # action in /etc/cbd reload # # # daemon_name daemon_config running reload central-rrd central-rrd.xml y y central-broker central-broker.xml y y
                    Code:
                    # cat /etc/centreon-broker/central-module.xml
                    <centreonBroker>
                     <instance><![CDATA[1]]></instance>
                     <instance_name><![CDATA[S-UT-Centreon]]></instance_name>
                     <module_directory><![CDATA[/usr/share/centreon/lib/centreon-broker]]></module_directory>
                     <log_timestamp><![CDATA[0]]></log_timestamp>
                     <log_thread_id><![CDATA[0]]></log_thread_id>
                     <event_queue_max_size><![CDATA[50000]]></event_queue_max_size>
                     <command_file><![CDATA[]]></command_file>
                     <logger>
                      <name><![CDATA[/var/log/centreon-broker/central-module-master.log]]></name>
                      <config><![CDATA[yes]]></config>
                      <debug><![CDATA[no]]></debug>
                      <error><![CDATA[yes]]></error>
                      <info><![CDATA[no]]></info>
                      <level><![CDATA[low]]></level>
                      <type><![CDATA[file]]></type>
                     </logger>
                     <output>
                      <name><![CDATA[central-module-master-output]]></name>
                      <port><![CDATA[5669]]></port>
                      <host><![CDATA[localhost]]></host>
                      <retry_interval><![CDATA[60]]></retry_interval>
                      <buffering_timeout><![CDATA[0]]></buffering_timeout>
                      <protocol><![CDATA[bbdo]]></protocol>
                      <tls><![CDATA[no]]></tls>
                      <compression><![CDATA[no]]></compression>
                      <type><![CDATA[ipv4]]></type>
                      <failover><![CDATA[central-module-master-output-output-failover]]></failover>
                     </output>
                     <output>
                      <type><![CDATA[file]]></type>
                      <name><![CDATA[central-module-master-output-output-failover]]></name>
                      <path><![CDATA[/var/lib/centreon-engine/central-module-master_central-module-master-output.retention]]></path>
                      <protocol><![CDATA[bbdo]]></protocol>
                      <compression><![CDATA[auto]]></compression>
                      <max_size><![CDATA[524288000]]></max_size>
                     </output>
                     <temporary>
                      <type><![CDATA[file]]></type>
                      <name><![CDATA[central-module-master-temporary]]></name>
                      <path><![CDATA[/var/lib/centreon-engine/central-module-master.temporary]]></path>
                      <protocol><![CDATA[bbdo]]></protocol>
                      <compression><![CDATA[auto]]></compression>
                      <max_size><![CDATA[524288000]]></max_size>
                     </temporary>
                     <stats>
                      <type><![CDATA[stats]]></type>
                      <name><![CDATA[central-module-master-stats]]></name>
                      <fifo><![CDATA[/var/lib/centreon-engine/central-module-master.stats]]></fifo>
                     </stats>
                    </centreonBroker>

                    Comment


                    • #11
                      Code:
                      # cat /etc/centreon-broker/central-broker.xml
                      <centreonBroker>
                       <instance><![CDATA[1]]></instance>
                       <instance_name><![CDATA[S-UT-Centreon]]></instance_name>
                       <module_directory><![CDATA[/usr/share/centreon/lib/centreon-broker]]></module_directory>
                       <log_timestamp><![CDATA[1]]></log_timestamp>
                       <log_thread_id><![CDATA[0]]></log_thread_id>
                       <event_queue_max_size><![CDATA[50000]]></event_queue_max_size>
                       <command_file><![CDATA[]]></command_file>
                       <input>
                        <name><![CDATA[central-broker-master-input]]></name>
                        <port><![CDATA[5669]]></port>
                        <buffering_timeout><![CDATA[0]]></buffering_timeout>
                        <retry_interval><![CDATA[60]]></retry_interval>
                        <protocol><![CDATA[bbdo]]></protocol>
                        <tls><![CDATA[auto]]></tls>
                        <negociation><![CDATA[yes]]></negociation>
                        <compression><![CDATA[auto]]></compression>
                        <type><![CDATA[ipv4]]></type>
                       </input>
                       <logger>
                        <name><![CDATA[/var/log/centreon-broker/central-broker-master.log]]></name>
                        <config><![CDATA[yes]]></config>
                        <debug><![CDATA[no]]></debug>
                        <error><![CDATA[yes]]></error>
                        <info><![CDATA[no]]></info>
                        <level><![CDATA[low]]></level>
                        <type><![CDATA[file]]></type>
                       </logger>
                       <output>
                        <name><![CDATA[central-broker-master-sql]]></name>
                        <db_type><![CDATA[mysql]]></db_type>
                        <retry_interval><![CDATA[60]]></retry_interval>
                        <buffering_timeout><![CDATA[0]]></buffering_timeout>
                        <db_host><![CDATA[localhost]]></db_host>
                        <db_port><![CDATA[3306]]></db_port>
                        <db_user><![CDATA[centreon]]></db_user>
                        <db_password><![CDATA[8nrzht60sw76nd4]]></db_password>
                        <db_name><![CDATA[centreon_storage]]></db_name>
                        <type><![CDATA[sql]]></type>
                        <failover><![CDATA[central-broker-master-sql-output-failover]]></failover>
                       </output>
                       <output>
                        <name><![CDATA[centreon-broker-master-rrd]]></name>
                        <port><![CDATA[5670]]></port>
                        <buffering_timeout><![CDATA[0]]></buffering_timeout>
                        <host><![CDATA[localhost]]></host>
                        <retry_interval><![CDATA[60]]></retry_interval>
                        <protocol><![CDATA[bbdo]]></protocol>
                        <tls><![CDATA[no]]></tls>
                        <negociation><![CDATA[yes]]></negociation>
                        <compression><![CDATA[no]]></compression>
                        <type><![CDATA[ipv4]]></type>
                        <failover><![CDATA[centreon-broker-master-rrd-output-failover]]></failover>
                       </output>
                       <output>
                        <name><![CDATA[central-broker-master-perfdata]]></name>
                        <interval><![CDATA[60]]></interval>
                        <retry_interval><![CDATA[60]]></retry_interval>
                        <buffering_timeout><![CDATA[0]]></buffering_timeout>
                        <length><![CDATA[15552000]]></length>
                        <db_type><![CDATA[mysql]]></db_type>
                        <db_host><![CDATA[localhost]]></db_host>
                        <db_port><![CDATA[3306]]></db_port>
                        <db_user><![CDATA[centreon]]></db_user>
                        <db_password><![CDATA[8nrzht60sw76nd4]]></db_password>
                        <db_name><![CDATA[centreon_storage]]></db_name>
                        <check_replication><![CDATA[no]]></check_replication>
                        <type><![CDATA[storage]]></type>
                        <failover><![CDATA[central-broker-master-perfdata-output-failover]]></failover>
                       </output>
                       <output>
                        <type><![CDATA[file]]></type>
                        <name><![CDATA[central-broker-master-sql-output-failover]]></name>
                        <path><![CDATA[/var/lib/centreon-broker/central-broker-master_central-broker-master-sql.retention]]></path>
                        <protocol><![CDATA[bbdo]]></protocol>
                        <compression><![CDATA[auto]]></compression>
                        <max_size><![CDATA[524288000]]></max_size>
                       </output>
                       <output>
                        <type><![CDATA[file]]></type>
                        <name><![CDATA[centreon-broker-master-rrd-output-failover]]></name>
                        <path><![CDATA[/var/lib/centreon-broker/central-broker-master_centreon-broker-master-rrd.retention]]></path>
                        <protocol><![CDATA[bbdo]]></protocol>
                        <compression><![CDATA[auto]]></compression>
                        <max_size><![CDATA[524288000]]></max_size>
                       </output>
                       <output>
                        <type><![CDATA[file]]></type>
                        <name><![CDATA[central-broker-master-perfdata-output-failover]]></name>
                        <path><![CDATA[/var/lib/centreon-broker/central-broker-master_central-broker-master-perfdata.retention]]></path>
                        <protocol><![CDATA[bbdo]]></protocol>
                        <compression><![CDATA[auto]]></compression>
                        <max_size><![CDATA[524288000]]></max_size>
                       </output>
                       <temporary>
                        <type><![CDATA[file]]></type>
                        <name><![CDATA[central-broker-master-temporary]]></name>
                        <path><![CDATA[/var/lib/centreon-broker/central-broker-master.temporary]]></path>
                        <protocol><![CDATA[bbdo]]></protocol>
                        <compression><![CDATA[auto]]></compression>
                        <max_size><![CDATA[524288000]]></max_size>
                       </temporary>
                       <stats>
                        <type><![CDATA[stats]]></type>
                        <name><![CDATA[central-broker-master-stats]]></name>
                        <fifo><![CDATA[/var/lib/centreon-broker/central-broker-master.stats]]></fifo>
                       </stats>
                      </centreonBroker>

                      Comment


                      • #12
                        Ok there is nothing strange compared to my config.

                        Some more questions :
                        which procedure did you follow to add your poller ?

                        1. Did you receive any monitoring info about your central (its a loopback access so if your config is correct you should see some info about disk/cpu/mem) ?

                        2. Did you add any monitored system to you poller ?

                        3. Can you enable debug on you poller for centengine ?
                        Configuration > Pollers > Engine configuration > your pollerName > debug tab

                        check : log everithing (there is a bug on my CES where if you check individual item, you do not have any debug info !)
                        set debug outpout to very detailed (bug too if i set other)
                        set max file size to 10/20MB (should be suficient !)

                        Rebuild config and restart you poller. And on the poller check
                        this file /var/log/centreon-engine/centengine.debug.

                        Take care its very verbose you can use
                        tail -f
                        /var/log/centreon-engine/centengine.debug

                        to follow the content of file in line.

                        Check for anything strange in debug file.

                        Comment


                        • #13
                          which procedure did you follow to add your poller ?
                          I followed the guide located here - https://documentation.centreon.com/d...tallation.html


                          Did you receive any monitoring info about your central (its a loopback access so if your config is correct you should see some info about disk/cpu/mem) ?
                          Yes, I can navigate to Monitoring > Status Detail > Hosts, and select my central host and see it is up, and all associated checks show OK.


                          2. Did you add any monitored system to you poller ?
                          Yes, there are about 12 servers, including the remote poller itself, which are all monitored from the remote poller.


                          3. Can you enable debug on you poller for centengine ?
                          done. Though, I'm not quite sure what I'm looking for. It does look like my remote poller is running the checks on the hosts its responsible for, but I dont see any errors related to communication with the central.

                          Comment


                          • #14
                            Does the is "default poller" option is set on either your poller or central ?

                            Can you take screenshots of all your centreon tabs for poller and master (poller conf, engine conf and broke conf) ?
                            It should be heavy so you can send me by email one big file. if you want. I sent you my personal email by PM.

                            Comment


                            • #15
                              I'll get that gathered for you and respond to your PM.

                              Comment

                              Working...
                              X