Skip to main content

Hello,
I am new to centreon. I deployed centreon 20.10 as indicated on the official documentation and activated the IT 100 license. I can't get the hosts to monitor. Could you help me on this level?

Hi @SID91 ,

Thank you for testing Centreon!

Can you send us the result of this command:

systemctl status cbd centengine gorgoned


cbd.service - Centreon Broker watchdog

   Loaded: loaded (/usr/lib/systemd/system/cbd.service; enabled; vendor preset: disabled)

   Active: active (running) since Mon 2022-03-28 09:44:44 WAT; 1 weeks 4 days ago

Main PID: 1635 (cbwd)

   CGroup: /system.slice/cbd.service

           ├─1635 /usr/sbin/cbwd /etc/centreon-broker/watchdog.json

           ├─1642 /usr/sbin/cbd /etc/centreon-broker/central-broker.json

           └─1643 /usr/sbin/cbd /etc/centreon-broker/central-rrd.json

 

Mar 28 09:44:44 srv-centreon systemd/1]: Started Centreon Broker watchdog.

Mar 28 09:44:44 srv-centreon cbwdr1635]: o2022-03-28 09:44:44.973] score] tinfo] Centreon Broker 21.10.0

Mar 28 09:44:44 srv-centreon cbwdk1635]: 02022-03-28 09:44:44.974] score] tinfo] Copyright 2009-2021 Centreon

Mar 28 09:44:44 srv-centreon cbwd21635]: e2022-03-28 09:44:44.974] score] tinfo] License ASL 2.0 <http://...-2.0>

Mar 28 09:44:44 srv-centreon cbwd21635]: g2022-03-28 09:44:44.979] score] tinfo] Centreon Broker 21.10.0

Mar 28 09:44:44 srv-centreon cbwdk1635]: 02022-03-28 09:44:44.979] score] tinfo] Copyright 2009-2021 Centreon

Mar 28 09:44:44 srv-centreon cbwd21635]: e2022-03-28 09:44:44.979] score] tinfo] License ASL 2.0 <http://...-2.0>

 

centengine.service - Centreon Engine

   Loaded: loaded (/usr/lib/systemd/system/centengine.service; enabled; vendor preset: disabled)

   Active: active (running) since Mon 2022-03-28 09:44:44 WAT; 1 weeks 4 days ago

  Process: 17989 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)

Main PID: 1636 (centengine)

   CGroup: /system.slice/centengine.service

           └─1636 /usr/sbin/centengine /etc/centreon-engine/centengine.cfg

 

Apr 04 03:42:01 srv-centreon systemdo1]: Reloading Centreon Engine.

Apr 04 03:42:01 srv-centreon systemdm1]: Reloaded Centreon Engine.

Apr 05 03:22:01 srv-centreon systemde1]: Reloading Centreon Engine.

Apr 05 03:22:01 srv-centreon systemdm1]: Reloaded Centreon Engine.

Apr 06 03:38:01 srv-centreon systemde1]: Reloading Centreon Engine.

Apr 06 03:38:01 srv-centreon systemdm1]: Reloaded Centreon Engine.

Apr 07 03:18:01 srv-centreon systemde1]: Reloading Centreon Engine.

Apr 07 03:18:01 srv-centreon systemdm1]: Reloaded Centreon Engine.

Apr 08 03:34:01 srv-centreon systemde1]: Reloading Centreon Engine.

Apr 08 03:34:01 srv-centreon systemdm1]: Reloaded Centreon Engine.

 

gorgoned.service - Centreon Gorgone

   Loaded: loaded (/etc/systemd/system/gorgoned.service; enabled; vendor preset: disabled)

   Active: active (running) since Mon 2022-03-28 09:44:24 WAT; 1 weeks 4 days ago

Main PID: 749 (perl)

   CGroup: /system.slice/gorgoned.service

           ├─  749 /usr/bin/perl /usr/bin/gorgoned --config=/etc/centreon-gorgone/config.yaml --logfile=/var/l...

           ├─ 1549 gorgone-nodes

           ├─ 1550 gorgone-dbcleaner

           ├─ 1551 gorgone-autodiscovery

           ├─ 1570 gorgone-cron

           ├─ 1571 gorgone-engine

           ├─ 1585 gorgone-action

           ├─ 1586 gorgone-httpserver

           ├─ 1587 gorgone-legacycmd

           ├─ 1683 gorgone-proxy

           ├─ 1684 gorgone-proxy

           ├─ 1685 gorgone-proxy

           ├─ 1686 gorgone-proxy

           ├─ 1711 gorgone-proxy

           └─13526 gorgone-statistics

 

Mar 28 09:44:24 srv-centreon systemd1]: Started Centreon Gorgone.

Hint: Some lines were ellipsized, use -l to show in full.


What do you get when you check the first four boxes here, select “Restart” method and click “Export”?

 

 



Génération des fichiers... OK
c - ] Central
Reading main configuration file '/var/cache/centreon/config/engine/1/centengine.DEBUG'.
Reading resource file '/var/cache/centreon/config/engine/1/resource.cfg'
Warning Notifier 'Centeon-central' has no notification time period defined!
Warning Notifier 'proc-sshd' has no notification time period defined!
Warning Notifier 'proc-httpd' has no notification time period defined!
Warning Notifier 'proc-crond' has no notification time period defined!
Warning Notifier 'proc-centengine' has no notification time period defined!
Warning Notifier 'proc-gorgone' has no notification time period defined!
Warning Notifier 'proc-broker-sql' has no notification time period defined!
Warning Notifier 'proc-broker-rrd' has no notification time period defined!
Warning Notifier 'Ping' has no notification time period defined!
Warning Notifier 'Swap' has no notification time period defined!
Warning Notifier 'Memory' has no notification time period defined!
Warning Notifier 'Load' has no notification time period defined!
Warning Notifier 'Cpu' has no notification time period defined!
Warning Notifier 'Partitioning' has no notification time period defined!
Warning Service 'Partitioning' on host 'Centeon-central' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Warning Notifier 'Slowqueries' has no notification time period defined!
Warning Notifier 'Queries' has no notification time period defined!
Warning Notifier 'Open-Files' has no notification time period defined!
Warning Notifier 'Myisam-Keycache' has no notification time period defined!
Warning Notifier 'Database-Size' has no notification time period defined!
Warning Notifier 'Connections-Number' has no notification time period defined!
Warning Notifier 'Connection-Time' has no notification time period defined!
Warning Notifier 'Disk-/' has no notification time period defined!
Warning Notifier 'Disk-/var/lib/mysql' has no notification time period defined!
Warning Notifier 'Disk-/var/cache/centreon/backup' has no notification time period defined!
Warning Notifier 'Disk-/var/lib/centreon-broker' has no notification time period defined!
Warning Notifier 'Disk-/var/log' has no notification time period defined!
Warning Notifier 'Disk-/var/lib/centreon' has no notification time period defined!
Warning Notifier 'proc-centreontrapd' has no notification time period defined!
Warning Notifier 'proc-snmptrapd' has no notification time period defined!
Warning Notifier 'proc-rsyslogd' has no notification time period defined!
Warning Notifier 'proc-snmpd' has no notification time period defined!
Warning Notifier 'proc-broker-watchdog' has no notification time period defined!
Warning Notifier 'proc-postfix' has no notification time period defined!
Warning Notifier 'Broker-Stats' has no notification time period defined!
Checking global event handlers...
Checking obsessive compulsive processor commands...

Checked 14 commands.
Checked 2 connectors.
Checked 0 contacts.
Checked 0 host dependencies.
Checked 0 host escalations.
Checked 1 host groups.
Checked 1 hosts.
Checked 0 service dependencies.
Checked 0 service escalations.
Checked 1 service groups.
Checked 33 services.
Checked 1 time periods.

Total Warnings: 35
Total Errors: 0

 


Génération des fichiers... OK
- ] Central
Reading main configuration file '/var/cache/centreon/config/engine/1/centengine.DEBUG'.
Reading resource file '/var/cache/centreon/config/engine/1/resource.cfg'
Warning Notifier 'Centeon-central' has no notification time period defined!
Warning Notifier 'proc-sshd' has no notification time period defined!
Warning Notifier 'proc-httpd' has no notification time period defined!
Warning Notifier 'proc-crond' has no notification time period defined!
Warning Notifier 'proc-centengine' has no notification time period defined!
Warning Notifier 'proc-gorgone' has no notification time period defined!
Warning Notifier 'proc-broker-sql' has no notification time period defined!
Warning Notifier 'proc-broker-rrd' has no notification time period defined!
Warning Notifier 'Ping' has no notification time period defined!
Warning Notifier 'Swap' has no notification time period defined!
Warning Notifier 'Memory' has no notification time period defined!
Warning Notifier 'Load' has no notification time period defined!
Warning Notifier 'Cpu' has no notification time period defined!
Warning Notifier 'Partitioning' has no notification time period defined!
Warning Service 'Partitioning' on host 'Centeon-central' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Warning Notifier 'Slowqueries' has no notification time period defined!
Warning Notifier 'Queries' has no notification time period defined!
Warning Notifier 'Open-Files' has no notification time period defined!
Warning Notifier 'Myisam-Keycache' has no notification time period defined!
Warning Notifier 'Database-Size' has no notification time period defined!
Warning Notifier 'Connections-Number' has no notification time period defined!
Warning Notifier 'Connection-Time' has no notification time period defined!
Warning Notifier 'Disk-/' has no notification time period defined!
Warning Notifier 'Disk-/var/lib/mysql' has no notification time period defined!
Warning Notifier 'Disk-/var/cache/centreon/backup' has no notification time period defined!
Warning Notifier 'Disk-/var/lib/centreon-broker' has no notification time period defined!
Warning Notifier 'Disk-/var/log' has no notification time period defined!
Warning Notifier 'Disk-/var/lib/centreon' has no notification time period defined!
Warning Notifier 'proc-centreontrapd' has no notification time period defined!
Warning Notifier 'proc-snmptrapd' has no notification time period defined!
Warning Notifier 'proc-rsyslogd' has no notification time period defined!
Warning Notifier 'proc-snmpd' has no notification time period defined!
Warning Notifier 'proc-broker-watchdog' has no notification time period defined!
Warning Notifier 'proc-postfix' has no notification time period defined!
Warning Notifier 'Broker-Stats' has no notification time period defined!
Checking global event handlers...
Checking obsessive compulsive processor commands...

Checked 14 commands.
Checked 2 connectors.
Checked 0 contacts.
Checked 0 host dependencies.
Checked 0 host escalations.
Checked 1 host groups.
Checked 1 hosts.
Checked 0 service dependencies.
Checked 0 service escalations.
Checked 1 service groups.
Checked 33 services.
Checked 1 time periods.

Total Warnings: 35
Total Errors: 0

 

   

Can you restart these services and try exporting the pollers’ configuration again?

systemctl restart cbd centengine gorgoned

 


Done and here is the result ,

 


Génération des fichiers... OK
- ] Central
Reading main configuration file '/var/cache/centreon/config/engine/1/centengine.DEBUG'.
Reading resource file '/var/cache/centreon/config/engine/1/resource.cfg'
Warning Notifier 'Centeon-central' has no notification time period defined!
Warning Notifier 'proc-sshd' has no notification time period defined!
Warning Notifier 'proc-httpd' has no notification time period defined!
Warning Notifier 'proc-crond' has no notification time period defined!
Warning Notifier 'proc-centengine' has no notification time period defined!
Warning Notifier 'proc-gorgone' has no notification time period defined!
Warning Notifier 'proc-broker-sql' has no notification time period defined!
Warning Notifier 'proc-broker-rrd' has no notification time period defined!
Warning Notifier 'Ping' has no notification time period defined!
Warning Notifier 'Swap' has no notification time period defined!
Warning Notifier 'Memory' has no notification time period defined!
Warning Notifier 'Load' has no notification time period defined!
Warning Notifier 'Cpu' has no notification time period defined!
Warning Notifier 'Partitioning' has no notification time period defined!
Warning Service 'Partitioning' on host 'Centeon-central' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Warning Notifier 'Slowqueries' has no notification time period defined!
Warning Notifier 'Queries' has no notification time period defined!
Warning Notifier 'Open-Files' has no notification time period defined!
Warning Notifier 'Myisam-Keycache' has no notification time period defined!
Warning Notifier 'Database-Size' has no notification time period defined!
Warning Notifier 'Connections-Number' has no notification time period defined!
Warning Notifier 'Connection-Time' has no notification time period defined!
Warning Notifier 'Disk-/' has no notification time period defined!
Warning Notifier 'Disk-/var/lib/mysql' has no notification time period defined!
Warning Notifier 'Disk-/var/cache/centreon/backup' has no notification time period defined!
Warning Notifier 'Disk-/var/lib/centreon-broker' has no notification time period defined!
Warning Notifier 'Disk-/var/log' has no notification time period defined!
Warning Notifier 'Disk-/var/lib/centreon' has no notification time period defined!
Warning Notifier 'proc-centreontrapd' has no notification time period defined!
Warning Notifier 'proc-snmptrapd' has no notification time period defined!
Warning Notifier 'proc-rsyslogd' has no notification time period defined!
Warning Notifier 'proc-snmpd' has no notification time period defined!
Warning Notifier 'proc-broker-watchdog' has no notification time period defined!
Warning Notifier 'proc-postfix' has no notification time period defined!
Warning Notifier 'Broker-Stats' has no notification time period defined!
Checking global event handlers...
Checking obsessive compulsive processor commands...

Checked 14 commands.
Checked 2 connectors.
Checked 0 contacts.
Checked 0 host dependencies.
Checked 0 host escalations.
Checked 1 host groups.
Checked 1 hosts.
Checked 0 service dependencies.
Checked 0 service escalations.
Checked 1 service groups.
Checked 33 services.
Checked 1 time periods.

Total Warnings: 35
Total Errors: 0

 


Ok, so I understand it still does not monitor your hosts?

Can you check that engine and broker’s configuration files have been updated recently?

ls -l /etc/centreon-engine /etc/centreon-broker

 


/etc/centreon-broker:
total 20
-rw-rw-r-- 1 centreon-broker centreon-broker 3400 Nov  2 10:44 central-broker.json
-rw-rw-r-- 1 centreon-broker centreon-broker 1707 Nov  2 10:44 central-module.json
-rw-rw-r-- 1 centreon-broker centreon-broker 2173 Nov  2 10:44 central-rrd.json
-rw-rw-r-- 1 centreon-broker centreon-broker 1473 Oct 18 16:47 poller-module.json
-rw-rw-r-- 1 centreon-broker centreon-broker  549 Nov  2 10:44 watchdog.json

/etc/centreon-engine:
total 120
-rw-rw-r--. 1 centreon-engine centreon-engine  3659 Nov  2 10:44 centengine.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  8282 Nov  2 10:44 commands.cfg
drwxrwxr-x. 2 centreon-engine centreon-engine  4096 Apr 20  2020 conf.d
-rw-rw-r--  1 centreon-engine centreon-engine  1412 Nov  2 10:44 connectors.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1088 Nov  2 10:44 contactgroups.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1088 Nov  2 10:44 contacts.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1088 Nov  2 10:44 dependencies.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1088 Nov  2 10:44 escalations.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1308 Nov  2 10:44 hostgroups.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1689 Nov  2 10:44 hosts.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  5539 Nov  2 10:44 hostTemplates.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1088 Nov  2 10:44 meta_commands.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1088 Nov  2 10:44 meta_host.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1088 Nov  2 10:44 meta_services.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1088 Nov  2 10:44 meta_timeperiod.cfg
drwxrwxr-x. 2 centreon-engine centreon-engine  4096 Nov  2 11:33 objects
-rw-rw-r--. 1 centreon-engine centreon-engine  1166 Nov  2 10:44 resource.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1469 Nov  2 10:44 servicegroups.cfg
-rw-rw-r--  1 centreon-engine centreon-engine 11117 Nov  2 10:44 services.cfg
-rw-rw-r--  1 centreon-engine centreon-engine 18114 Nov  2 10:44 serviceTemplates.cfg
-rw-rw-r--  1 centreon-engine centreon-engine  1595 Nov  2 10:44 timeperiods.cfg
 


I can’t reproduce your issue, so I’m not sure what isn’t working exactly, but I noticed that you are not using the last release of Centreon 21.10.

Can you update you server using this procedure and then export your configuration again (with the restart method)?


Reply