Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support v7.0NG.777 Moving Database to seperate server keeps restarting

  • v7.0NG.777 Moving Database to seperate server keeps restarting

    Posted by Craig on July 11, 2024 at 05:13

    I installed on Unbuntu 22 also tried Rocky using the script in the extras on github.

    everything worked fine then I set up a new database server stopped the server and console

    Dumped the DB changed the /etc/pandora/pandora_server.conf tp point to the new DB server and the console.

    Start the server and it keeps restarting point it back to the localhost one no problems at all

    I even tried the setup script and used an external DB same problem. I think its somthing in the pandora_ha that’s doing this but not sure .

    In the log i see this with verbose

    eg I keep seeing

    2024-07-10 10:04:49 pandora_server: monitoring [V10] Pandora FMS Server ‘monitoring’ Caught SIGTERM by thread(0)

    2024-07-10 10:04:49 pandora_server: monitoring [V1] Pandora FMS Server ‘monitoring’ Shutdown by signal


    2024-07-10 10:04:35 monitoring [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 0, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 60, ServerName is ‘monitoring’

    2024-07-10 10:04:35 monitoring [V1] [*] Pandora FMS Enterprise module not available.

    2024-07-10 10:04:35 pandora_server: monitoring [V10] Creating audit entry ‘Pandora FMS Server Daemon starting’ name ‘SYSTEM’ action ‘System’.

    2024-07-10 10:04:35 pandora_server: monitoring [V3] Smart queue enabled for the Pandora FMS DataServer.

    2024-07-10 10:04:35 pandora_server: monitoring [V1] [E] pandorawmic not found. Pandora FMS WMI Server needs a DCOM/WMI client.

    2024-07-10 10:04:35 pandora_server: monitoring [V1] [*] NetFlow daemon disabled.

    2024-07-10 10:04:35 pandora_server: monitoring [V1] [*] sFlow daemon disabled.

    024-07-10 10:04:49 pandora_ha: monitoring [V5] HA (LOG) Looking for databases

    2024-07-10 10:04:49 pandora_ha: monitoring [V5] HA (LOG) Enterprise capabilities loaded

    2024-07-10 10:04:49 pandora_ha: monitoring [V5] HA (LOG) Connected to database 192.168.109.111

    2024-07-10 10:04:49 pandora_ha: monitoring [V5] HA (LOG) Pandora service running but not all components.

    2024-07-10 10:04:49 pandora_server: monitoring [V10] Pandora FMS Server ‘monitoring’ Caught SIGTERM by thread(0)

    2024-07-10 10:04:49 pandora_server: monitoring [V1] Pandora FMS Server ‘monitoring’ Shutdown by signal

    When its running on Localhost it looks about the same but no

    2024-07-10 10:04:49 pandora_server: monitoring [V1] Pandora FMS Server ‘monitoring’ Shutdown by signal

    I am at a loss as top what is doing this thanks



    Craig replied 5 months, 1 week ago 2 Members · 2 Replies
  • 2 Replies
  • vic

    Administrator
    July 11, 2024 at 08:10
    1542 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Craig,

    It looks like the server is restarting for some reason, can you launch the server in process mode to see if we generate any more log messages?

    It launches as follows:

    /usr/bin/pandora_server /etc/pandora/pandora_server.conf

    Best regards,
    Víc.

    • Craig

      Member
      July 12, 2024 at 11:16
      24 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      Ok it works fine when you run it as /usr/bin/pandora_server /etc/pandora/pandora_server.conf

      When you run from systemd it also starts

      /usr/bin/perl /usr/bin/pandora_ha -d -p /var/run/pandora_ha.pid /etc/pandora/pandora_server.conf

      If you Kill that process then the problem goes away

      I also see in the ps awxu this happening when that ha process is running

      sh -c service pandora_server restart-server 2>/dev/null

      /bin/bash /etc/init.d/pandora_server restart-server

      /bin/bash /etc/init.d/pandora_server stop-server

      So somehow it thinks the database is HA or something even though nothing in the config is set for that and this is the non enterprise system