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 Errors & Database Maintenance monitor Red.

  • Errors & Database Maintenance monitor Red.

    Posted by JonRussell on January 20, 2026 at 17:39

    Hi,

    Yesterday, I think, my Pandora Self Monitoring Database Maintenance alert turned red. Its never done that before, and I’ve been running Pandora for years. I couldn’t find much documentation on what the monitor is actually monitoring. I believe it means the database maintenance task failed?

    I thought I’d try a reboot. The server has come back, but the maintenance task is still red, and I now have lots of notifications in the web console:

    • Discovery Server not running
    • Plugin Server not running
    • Web Server not running
    • Inventory Server not running
    • etc.

    The pandora error log shows the maintenance task stopped yesterday at 14:17, and never ran again, then I started getting server perl errors. At that time, I had run an apt upgrade for outstanding patches, one of these was libdbd-mysql-perl. Could this have caused a problem with the Pandora database?

    I’m running Pandora on Ubuntu 22.04.5 LTS

    Version v7.0NG.777 Andromeda - Community
    Current package 777
    MR version MR69
    BuildPC240612

    Here is the version of libdbd-mysql-perl:

    Preparing to unpack .../21-libdbd-mysql-perl_1%3a5.013-1.jammy_amd64.deb ...
    Unpacking libdbd-mysql-perl (1:5.013-1.jammy) over (4.050-5ubuntu0.22.04.1) ...

    > sudo apt upgrade
    Calculating upgrade...",
    The following packages will be upgraded:",
    docker-ce docker-ce-cli docker-ce-rootless-extras google-chrome-stable",
    libapache2-mod-php8.3 libdbd-mysql-perl php8.3 php8.3-bz2 php8.3-cli",
    php8.3-common php8.3-curl php8.3-fpm php8.3-gd php8.3-intl php8.3-ldap",
    php8.3-mbstring php8.3-mysql php8.3-opcache php8.3-readline php8.3-snmp",
    php8.3-xml php8.3-zip ubuntu-drivers-common",
    23 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.",

    > sudo tail /var/log/pandora/pandora_server.error
    2026-01-19 13:00:01 - pandora pandora_db: pandora_db maintenance tasks starts
    2026-01-19 13:17:01 - pandora pandora_db: pandora_db maintenance tasks ends
    2026-01-19 13:17:01 - pandora pandora_db: pandora_db maintenance tasks starts
    2026-01-19 14:00:01 - pandora pandora_db: pandora_db maintenance tasks ends
    2026-01-19 14:00:01 - pandora pandora_db: pandora_db maintenance tasks starts
    Use of uninitialized value in numeric eq (==) at /tmp/par-726f6f74/cache-8c58fe102a7f94ca5ff6fc4438c9d258f0502fb1/inc/lib/PandoraFMS/Core.pm line 7156.
    2026-01-19 14:17:01 - pandora pandora_db: pandora_db maintenance tasks ends
    2026-01-19 14:17:01 - pandora pandora_db: pandora_db maintenance tasks starts
    2026-01-19 16:54:03 - pandora Starting Pandora FMS Server. Error logging activated.
    Use of uninitialized value in numeric eq (==) at /tmp/par-726f6f74/cache-8c58fe102a7f94ca5ff6fc4438c9d258f0502fb1/inc/lib/PandoraFMS/Core.pm line 7156.
    Use of uninitialized value in numeric eq (==) at /tmp/par-726f6f74/cache-8c58fe102a7f94ca5ff6fc4438c9d258f0502fb1/inc/lib/PandoraFMS/Core.pm line 7156.
    Use of uninitialized value in numeric eq (==) at /tmp/par-726f6f74/cache-8c58fe102a7f94ca5ff6fc4438c9d258f0502fb1/inc/lib/PandoraFMS/Core.pm line 7156.
    Use of uninitialized value in numeric eq (==) at /tmp/par-726f6f74/cache-8c58fe102a7f94ca5ff6fc4438c9d258f0502fb1/inc/lib/PandoraFMS/Core.pm line 7156.
    Use of uninitialized value in numeric eq (==) at /tmp/par-726f6f74/cache-8c58fe102a7f94ca5ff6fc4438c9d258f0502fb1/inc/lib/PandoraFMS/Core.pm line 7156.
    Use of uninitialized value in numeric eq (==) at /tmp/par-726f6f74/cache-8c58fe102a7f94ca5ff6fc4438c9d258f0502fb1/inc/lib/PandoraFMS/Core.pm line 7156.

    Thanks.

    Mario replied 4 months, 1 week ago 2 Members · 4 Replies
  • 4 Replies
  • Mario

    Administrator
    January 20, 2026 at 18:12
    1187 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    1
    Down
    Drop it
    ::

    Hello, good afternoon,

    The best way to check the problem you are reporting is to run the pandora_db script and the Pandora FMS server process manually.

    To execute pandora_db maintenance script in shell CLI:

    perl /usr/share/pandora_server/util/pandora_db.pl /etc/pandora/pandora_server.conf

    To execute pandora_server as process:

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

    Please send us the output of these commands.

    Kind regards

    • JonRussell

      Member
      January 20, 2026 at 18:52
      368 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      Hi,

      Thanks for the fast reply.

      > perl /usr/share/pandora_server/util/pandora_db.pl /etc/pandora/pandora_server.conf
      Pandora FMS DB Tool v7.0NG.777 Build 240612
      This program is Free Software, licensed under the terms of GPL License v2
      You can download latest versions and documentation at official web
      [*] DB Host is 127.0.0.1
      install_driver(mysql) failed: Can't load '/usr/lib/x86_64-linux-gnu/perl5/5.34/auto/DBD/mysql/mysql.so' for module DBD::mysql: /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/DBD/mysql/mysql.so: undefined symbol: mysql_sqlstate at /usr/lib/x86_64-linux-gnu/perl-base/DynaLoader.pm line 187.
      at (eval 25) line 3.
      Compilation failed in require at (eval 25) line 3.
      Perhaps a required shared library or dll isn't installed where expected
      at /usr/lib/perl5/PandoraFMS/DB.pm line 159.

      That looks like it might be the mysql driver?

      However, what’s very weird, is it seems to run perfectly, if I start it from the command line. But not when I start it with systemctl?

      > /usr/bin/pandora_server /etc/pandora/pandora_server.conf
      Pandora FMS Server v7.0NG.777 Build 240612
      This program is OpenSource, licensed under the terms of GPL License version 2.
      You can download latest versions and documentation at official web page.
      [*] DB Host is 127.0.0.1
      [*] Pandora FMS Enterprise module not available.
      [*] NetFlow daemon disabled.
      [*] sFlow daemon disabled.
      [*] Starting Pandora FMS Data Server.
      [*] Starting Pandora FMS Network Server.
      [*] Starting Pandora FMS Discovery Server.
      [*] Starting Pandora FMS WMI Server.
      [*] Starting Pandora FMS Plugin Server.
      [*] Starting Pandora FMS Web Server.
      [*] Starting Pandora FMS Inventory Server.

      The web gui is fine and everything is running.

      But if I start it with :

      > systemctl start pandora_server
      > systemctl status pandora_server
      * pandora_server.service - LSB: Pandora FMS Server startup script
      Loaded: loaded (/etc/init.d/pandora_server; generated)
      Active: active (running) since Tue 2026-01-20 18:43:18 CET; 9s ago
      Docs: man:systemd-sysv-generator(8)
      Process: 6840 ExecStart=/etc/init.d/pandora_server start (code=exited, status=0/SUCCESS)
      Tasks: 1 (limit: 2139)
      Memory: 38.8M
      CPU: 255ms
      CGroup: /system.slice/pandora_server.service
      └─6866 /usr/bin/perl /usr/bin/pandora_ha -d -p /var/run/pandora_ha.pid /etc/pandora/pandora_server.conf
      Jan 20 18:43:16 pandora systemd[1]: Starting LSB: Pandora FMS Server startup script...
      Jan 20 18:43:16 pandora pandora_server[6858]: Pandora FMS Daemon Watchdog 7.0NG.777 240612 Copyright (c) Pandora FMS
      Jan 20 18:43:16 pandora pandora_server[6858]: Pandora HA v7.0NG.777 Build 240612
      Jan 20 18:43:16 pandora pandora_server[6858]: This program is OpenSource, licensed under the terms of GPL License version 2.
      Jan 20 18:43:16 pandora pandora_server[6858]: You can download latest versions and documentation at official web page.
      Jan 20 18:43:16 pandora pandora_server[6858]: [*] DB Host is 127.0.0.1
      Jan 20 18:43:18 pandora pandora_server[6840]: Pandora FMS Server is now running with PID 6866
      Jan 20 18:43:18 pandora systemd[1]: Started LSB: Pandora FMS Server startup script.

      Although it says its started, the web gui complains there are no services running, and none of my monitors update.

      ChatGPT suggested I should diable the ha feature, as I’m only running a single server, and that was causing the problem. do you think it has anything to do with ha ?

      ChatGPT:

      OPTION A (Recommended): Disable HA wrapper if you’re single-node
      If you are not using Pandora HA, disable it.
      Edit:
      /etc/pandora/pandora_server.conf
      Set:
      ha_enabled 0
      Then:
      systemctl stop pandora_server
      rm -f /var/run/pandora/*.pid
      systemctl start pandora_server
      This fixes 90% of cases like yours.
  • JonRussell

    Member
    January 20, 2026 at 20:45
    368 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    1
    Down
    Drop it
    ::

    I’ve fixed it, with the help of ChatGPT. It was the ubuntu mysql lib.

    These commands fixed it. from two different chatGPT questions. The first set still gave errors, but the second set fixed it. I think the cpanm DBD command was wrong in the first set, as it switched to cpanm DBI in the second and that worked. My server is now up and running again and the DB maintenance task completes.

    It seems there is a problem with the Ubuntu libdbd-mysql-perl that was released this week.

    This is the solution. Not sure if all these are needed, but it works now ..

    sudo apt remove libdbd-mysql-perl
    sudo apt install libperconaserverclient21 percona-server-client
    sudo apt install build-essential libmysqlclient-dev cpanminus
    sudo cpanm DBD::mysql
    sudo apt-mark hold libdbd-mysql-perl
    sudo apt install libdbi-perl
    sudo cpanm DBI

    Thanks!

    • Mario

      Administrator
      January 21, 2026 at 12:30
      1187 Karma points
      Community rank: tentacle_master_icon Tentacle Master
      Like it
      Up
      1
      Down
      Drop it
      ::

      Great!

      It must be that with the update of some system package, you lost that library because it wasn’t necessary (Ubuntu sometimes does these things…).

      Kind regards

Log in to reply.