Ad Widget

Collapse

ZBX_NOTSUPPORTED for Zabbix agent 2 with postgres 15

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • msl09
    Junior Member
    • May 2024
    • 5

    #1

    ZBX_NOTSUPPORTED for Zabbix agent 2 with postgres 15

    I'm trying to use Zabbix agent 2 to monitor a postgres 15 installation on an Oracle Linuz 7 but the Zabbix agent tells me that the item is not supported.

    The installed packages on the host:

    Code:
    # yum list installed "zabbix*"
    Plugins carregados: rhnplugin, ulninfo
    This system is receiving updates from RHN Classic or Red Hat Satellite.
    Installed packages
    zabbix-agent2.x86_64 6.0.29-release1.el7 @ol7_zabbix6_agent2
    zabbix-agent2-plugin-mongodb.x86_64 6.0.29-release1.el7 @ol7_zabbix6_agent2
    zabbix-agent2-plugin-postgresql.x86_64 6.0.29-release1.el7 @ol7_zabbix6_agent2
    The test I'm doing:

    Code:
    # zabbix_agent2 -t 'pgsql.version["tcp://localhost:5432","zbx_monitor","<password>"]'
    pgsql.version["tcp://localhost:5432","zbx_monitor","password"][m|ZBX_NOTSUPPORTED] [Unknown metric pgsql.version]​
    psql works for that user:

    Code:
    # psql -h 127.0.0.1 -U zbx_monitor postgres
    Password for user zbx_monitor:
    psql (15.7)
    Type "help" for help.
    
    postgres=> \q
    That's all I can think of now. Am I doing something wrong? A missing step, perhaps?​
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    The error message suggests that even though you apparently have installed the PostgreSQL plugin rpm, the plugin is not properly loaded as the agent does not recognize the item key. First check zabbix_agent2.log if you find any hints there, maybe even increasing the log level for the agent.

    Markku

    Comment

    • msl09
      Junior Member
      • May 2024
      • 5

      #3
      Sorry I forgot to answer to this post. I was doing something wrong.

      During the setup of zabbix I would remove the zabbix-agent2.conf file and replace it with my own which didn't have the step that loads the plugins.

      Comment

      Working...