Pandora FMS Community

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

Craig St George · 11 jul 2024, 5:13 · 3 mensajes · 84 visitas

  1. Inicio del debate

    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

  2. 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.

  3. 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

Entra en tu cuenta para publicar.