Ad Widget

Collapse

The decompressed version of zabbix agent cannot monitor mysql and other components

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yongrenziraozhi
    Junior Member
    • Apr 2023
    • 1

    #1

    The decompressed version of zabbix agent cannot monitor mysql and other components

    I get agent from https://cdn.zabbix.com/zabbix/binari...-static.tar.gz.
    When I try to monitor mysql, MongoDB, and some other software and hardware, an error will be prompted on the zabbix webpage. For example: unsupported keys, Cannot evaluate function. while the others are null values.
    Please help me to solve this problem. Thanks a lot.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    You are downloading classic agent, which does not support monitoring of mongodb or mysql etc... You need agent2 for that.

    Comment


    • yongrenziraozhi
      yongrenziraozhi commented
      Editing a comment
      Due to the large number of hosts that need to be monitored, a considerable number of hosts cannot access the public network, so I decided to use an agent. But if the agent cannot monitor some software, I have to consider using agent2 uniformly. So far I haven't found agent2 that can be used after decompression. All the articles tell me to install it through the package management tool.

    • yongrenziraozhi
      yongrenziraozhi commented
      Editing a comment
      I try to migrate the agent2 installed through apt in the ubuntu system to a server without agent2 installed and place it according to the previous file placement, and then start it through ./zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf, Still receive an error. (The attribution of all related files has been changed to root)
      here is the message:
      root@ecs-4383:/usr/sbin# ./zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf
      panic: failed to start plugin /usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql, fork/exec /usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql: permission denied

      goroutine 1 [running]:
      zabbix.com/plugins/external.(*Plugin).ExecutePlugin(0xc0002aaaa0)
      /tmp/build-ubuntu-2004-x86_64.TkI3euuW/buildroot/zabbix-6.0.14/debian/tmp.build-sqlite3/src/go/plugins/external/plugin.go:67 +0x4f4
      main.initExternalPlugin({0xc000231bf0, 0xa}, 0xc0002aaaa0, 0x10feb20)
      /tmp/build-ubuntu-2004-x86_64.TkI3euuW/buildroot/zabbix-6.0.14/debian/tmp.build-sqlite3/src/go/cmd/zabbix_agent2/external.go:91 +0x6b
      main.initExternalPlugins(0x10feb20)
      /tmp/build-ubuntu-2004-x86_64.TkI3euuW/buildroot/zabbix-6.0.14/debian/tmp.build-sqlite3/src/go/cmd/zabbix_agent2/external.go:78 +0x4a9
      main.main()
      /tmp/build-ubuntu-2004-x86_64.TkI3euuW/buildroot/zabbix-6.0.14/debian/tmp.build-sqlite3/src/go/cmd/zabbix_agent2/zabbix_agent2.go:366 +0x9f8
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #3
    I have no idea... this is non-standard way to use and start things...

    Comment

Working...