Ad Widget

Collapse

"Zabbix server is running: No" yet zabbix-serbvice is running. Huh?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ThumbOne
    Junior Member
    • May 2025
    • 4

    #1

    "Zabbix server is running: No" yet zabbix-serbvice is running. Huh?

    I installed Zabbix and its all looking good. I have an agent ad the server running and the UI.

    Code:
    $ service zabbix-server status
    ● zabbix-server.service - Zabbix Server
         Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; preset: enabled)
         Active: active (running) since Thu 2025-05-22 11:23:23 AEST; 1h 53min ago
       Main PID: 2383661 (zabbix_server)
          Tasks: 1 (limit: 38335)
         Memory: 9.8M (peak: 10.5M)
            CPU: 14.426s
         CGroup: /system.slice/zabbix-server.service
                 └─2383661 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
    
    May 22 11:23:23 bigfoot systemd[1]: Starting zabbix-server.service - Zabbix Server...
    May 22 11:23:23 bigfoot systemd[1]: Started zabbix-server.service - Zabbix Server.
    
    $ service zabbix-agent status
    ● zabbix-agent.service - Zabbix Agent
         Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; preset: enabled)
         Active: active (running) since Thu 2025-05-22 11:23:23 AEST; 2h 0min ago
       Main PID: 2383647 (zabbix_agentd)
          Tasks: 13 (limit: 38335)
         Memory: 9.4M (peak: 10.1M)
            CPU: 7.322s
         CGroup: /system.slice/zabbix-agent.service
                 ├─2383647 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
                 ├─2383648 "/usr/sbin/zabbix_agentd: collector [idle 1 sec]"
                 ├─2383649 "/usr/sbin/zabbix_agentd: listener #1 [waiting for connection]"
                 ├─2383650 "/usr/sbin/zabbix_agentd: listener #2 [waiting for connection]"
                 ├─2383651 "/usr/sbin/zabbix_agentd: listener #3 [waiting for connection]"
                 ├─2383652 "/usr/sbin/zabbix_agentd: listener #4 [waiting for connection]"
                 ├─2383653 "/usr/sbin/zabbix_agentd: listener #5 [waiting for connection]"
                 ├─2383654 "/usr/sbin/zabbix_agentd: listener #6 [waiting for connection]"
                 ├─2383655 "/usr/sbin/zabbix_agentd: listener #7 [waiting for connection]"
                 ├─2383656 "/usr/sbin/zabbix_agentd: listener #8 [waiting for connection]"
                 ├─2383657 "/usr/sbin/zabbix_agentd: listener #9 [waiting for connection]"
                 ├─2383659 "/usr/sbin/zabbix_agentd: listener #10 [waiting for connection]"
                 └─2383660 "/usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]"
    
    May 22 11:23:23 bigfoot systemd[1]: Starting zabbix-agent.service - Zabbix Agent...
    May 22 11:23:23 bigfoot systemd[1]: Started zabbix-agent.service - Zabbix Agent.
    and yet on the UI I see no data anbd instead a warning on the bottom of the page about s server not running and sure enough:

    Click image for larger version

Name:	image.png
Views:	63
Size:	58.2 KB
ID:	503342
    That's a puzzle. I'm guessing there's a misconfiguration at play. Or the server is running but not running, as in running as a systemd service but stuck on something and reporting to queries that it's stuck or not reporting when queried etc.
    Attached Files
  • ThumbOne
    Junior Member
    • May 2025
    • 4

    #2
    I have found the issue here. I was using a PostgreSQL cluster on a port other than the default and needed to configure the server with the port number. Doh! I found that in the log. In an ideal world, next the UI feedback there'd be a "Show log" link. And I'd have found it in an instant ;-)

    Comment


    • Verheyden
      Verheyden commented
      Editing a comment
      I have the same problem. Where do I change the port number?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #3
    In server config file most probably... And in UI config file..

    ideal world does not exist.. your webserver user most probably cannot read your zabbix server logs and as many people do, those are completely different servers... so reading is impossible..

    Comment

    Working...