Skip to main content
Solved

Poller not running after adding

  • January 19, 2024
  • 9 replies
  • 621 views

Forum|alt.badge.img+5

Hello,

I just added my poller after configuring the central but my poller is showing as not running. I have exported config, restarted gorgone but no succes. Communication between the 2 is working fine. 

 

 

Best answer by BenjaminL

Have you tried everything listed here : 

 

9 replies

Forum|alt.badge.img+7
  • Steward ***
  • January 19, 2024

Hello

 

Have you done the gorgoned config ? selinux ?

 

Best regards


Forum|alt.badge.img+6
  • Steward **
  • Answer
  • January 22, 2024

Have you tried everything listed here : 

 


Forum|alt.badge.img+5
  • Author
  • Steward **
  • January 23, 2024

Yes done all gorgoned configuration. Still the same. 


Forum|alt.badge.img+6
  • Steward **
  • January 23, 2024

Hello,

 

Can you share the logs and status of gorgoned/centengine from the poller ?

 

Regards,


Forum|alt.badge.img+5
  • Author
  • Steward **
  • January 23, 2024

Hello BenjaminL,

Sorry, i was replying to the earlier comment about gorgone. Regarding the tutorial you shared for the poller is down, i dont have communication between my central and poller. 

 

[central]# netstat -plant | egrep '5556|5669'
tcp        0      0 0.0.0.0:5669            0.0.0.0:*               LISTEN      1770/cbd
tcp        0      0 127.0.0.1:52834         127.0.0.1:5669          ESTABLISHED 1769/centengine
tcp        0      0 127.0.0.1:5669          127.0.0.1:52834         ESTABLISHED 1770/cbd
[root@vbvastefcentr01 ~]#
 

but empty output for poller. not sure why

 

 


Forum|alt.badge.img+5
  • Author
  • Steward **
  • January 23, 2024

Just to add, firewall services are disabled on poller. 


Forum|alt.badge.img+6
  • Steward **
  • January 23, 2024

Hello,


And what about the status of the two services on the poller, are they running ?

 

What about the logs, on the poller side.

 

Regards.


Forum|alt.badge.img+5
  • Author
  • Steward **
  • January 23, 2024

Both services are running. 

 

[root@poller etc]# systemctl status centengine
● centengine.service - Centreon Engine
   Loaded: loaded (/usr/lib/systemd/system/centengine.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2024-01-19 16:22:30 CET; 3 days ago
 Main PID: 3801 (centengine)
    Tasks: 12 (limit: 23127)
   Memory: 10.1M
   CGroup: /system.slice/centengine.service
           └─3801 /usr/sbin/centengine /etc/centreon-engine/centengine.cfg

Jan 19 16:22:30 poller centengine[3801]: [2024-01-19 16:22:30.121] [core] [info] protocols: registering protocol ('compression' (layers 6-6)
Jan 19 16:22:30 poller centengine[3801]: [2024-01-19 16:22:30.121] [core] [info] protocols: registering protocol ('BBDO' (layers 7-7)
Jan 20 03:13:02 poller systemd[1]: Reloading Centreon Engine.
Jan 20 03:13:02 poller systemd[1]: Reloaded Centreon Engine.
Jan 21 03:08:01 poller systemd[1]: Reloading Centreon Engine.
Jan 21 03:08:01 poller systemd[1]: Reloaded Centreon Engine.
Jan 22 03:07:01 poller systemd[1]: Reloading Centreon Engine.
Jan 22 03:07:01 poller systemd[1]: Reloaded Centreon Engine.
Jan 23 03:11:01 poller systemd[1]: Reloading Centreon Engine.
Jan 23 03:11:01 poller systemd[1]: Reloaded Centreon Engine.
[root@poller etc]# systemctl status gorgoned
● gorgoned.service - Centreon Gorgone
   Loaded: loaded (/etc/systemd/system/gorgoned.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2024-01-23 15:41:16 CET; 40min ago
 Main PID: 7511 (perl)
    Tasks: 9 (limit: 23127)
   Memory: 83.2M
   CGroup: /system.slice/gorgoned.service
           ├─7511 /usr/bin/perl /usr/bin/gorgoned --config=/etc/centreon-gorgone/config.yaml --logfile=/var/log/centreon-gorgone/gorgoned.log --severity=error
           ├─7516 gorgone-audit
           └─7517 gorgone-dbcleaner

Jan 23 15:41:16 poller systemd[1]: Started Centreon Gorgone.
[root@poller etc]#

 

******

 

Logs:

 

[root@poller centreon-engine]# cat centengine.log
[1705975861] [3801] Need reload.
[1705975861] [3801] Reloading...
[1705975861] [3801] Starting to reload configuration.
[1705975861] [3801] Reading main configuration file '/etc/centreon-engine/centengine.cfg'.
[1705975861] [3801] Processing object config file '/etc/centreon-engine/commands.cfg'
[1705975861] [3801] Processing object config file '/etc/centreon-engine/timeperiods.cfg'
[1705975861] [3801] Reading resource file '/etc/centreon-engine/resource.cfg'
[1705975861] [3801] Configuration reloaded, main loop continuing.
[1705975861] [3801] Reload configuration finished.
[2024-01-23T03:11:01.882+01:00] [process] [info] [3801] Configuration reloaded, main loop continuing.
[2024-01-23T03:11:01.882+01:00] [process] [info] [3801] Reload configuration finished.
[root@poller centreon-engine]#
 

[root@poller centreon-gorgone]# tail -100 gorgoned.log
2024-01-23 15:28:16 - ERROR - config - yaml load file '/etc/centreon-gorgone/config.d/40-gorgoned.yaml' error: YAML::XS::Load Error: The problem:

    mapping values are not allowed in this context

was found at document: 1, line: 2, column: 5
2024-01-23 15:41:16 - ERROR - config - yaml load file '/etc/centreon-gorgone/config.d/40-gorgoned.yaml' error: YAML::XS::Load Error: The problem:

    mapping values are not allowed in this context

was found at document: 1, line: 2, column: 5
[root@


Forum|alt.badge.img+5
  • Author
  • Steward **
  • January 24, 2024

Hello,

 

issue is resolved for me now. it was a simple typo as I had the below lines in my yaml file :(

cat <<EOF > /etc/centreon-gorgone/config.d/40-gorgoned.yaml
EOF

 

Thank you.