Ad Widget

Collapse

monitoring postgress 12 on ubuntu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ilia
    Member
    • Dec 2018
    • 37

    #1

    monitoring postgress 12 on ubuntu

    I want to monitor A PostgreSQLDB

    I have an ubuntu (lxc based) system with postgress12 i would like to monitor

    i tried different solution's i found online, but none worked..
    can anyone suggest a step by step solution that works?



    Thanks
    Last edited by ilia; 17-11-2020, 14:19.
  • AVP.Riga
    Member
    • Oct 2020
    • 59

    #2
    Hi,

    This one works perfectly but it's for CentOS, but I don't see any promlem to change dnf to apt-get and change repo links from rhel/centos to ubuntu.
    Use this step-by-step tutorial to install the latest Zabbix 7.0 on CentOS 9 or 8, RHEL 9 or 8, Oracle / Alma / Rocky Linux 9 or 8!

    Also I see there is article version for debian: https://bestmonitoringtools.com/how-...ver-on-debian/

    Comment

    • AVP.Riga
      Member
      • Oct 2020
      • 59

      #3
      Part with postgress12 timescaledb you can find there:
      https://techexpert.tips/zabbix/zabbi...-ubuntu-linux/
      I assume you want install with postgress because you want to use timescaledb extension?
      Last edited by AVP.Riga; 17-11-2020, 14:09.

      Comment

      • ilia
        Member
        • Dec 2018
        • 37

        #4
        i think i was not clear enough ( i just updated my original question )
        i already have a zabbix server 5.2.1 that monitor around 50 various hosts, no i want to monitor a specific PostgreSQL sql DB

        Comment

        • AVP.Riga
          Member
          • Oct 2020
          • 59

          #5
          Hello,

          It's not very tricky. You can use built-in template:

          Also you can use agent-less check by ssh commands.
          Like: [root@centos8min2 ~]# systemctl status mysqld.service
          ● mysqld.service - MySQL 8.0 database server
          Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
          Active: active (running) since Tue 2020-11-17 09:54:36 EET; 5h 49min ago
          After it you can use preprocessing to clean everything except: active (running) or inactive (dead), after it use Value Mapping to convenient it to more convenient look.

          Comment

          • ilia
            Member
            • Dec 2018
            • 37

            #6
            Originally posted by AVP.Riga
            Hello,

            It's not very tricky. You can use built-in template:

            Also you can use agent-less check by ssh commands.
            Like: [root@centos8min2 ~]# systemctl status mysqld.service
            ● mysqld.service - MySQL 8.0 database server
            Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
            Active: active (running) since Tue 2020-11-17 09:54:36 EET; 5h 49min ago
            After it you can use preprocessing to clean everything except: active (running) or inactive (dead), after it use Value Mapping to convenient it to more convenient look.
            but the template there is yml and not xml,

            Comment

            • AVP.Riga
              Member
              • Oct 2020
              • 59

              #7
              Templates already inside:
              Also you can try to use Postrgresql Prometheus exporter with https://www.zabbix.com/integrations/prometheus
              Click image for larger version

Name:	postgre.PNG
Views:	113
Size:	52.3 KB
ID:	413307

              Comment

              • ilia
                Member
                • Dec 2018
                • 37

                #8
                i found the template and imported it,
                but when all the items->test return
                • Unsupported item key.
                Last edited by ilia; 17-11-2020, 17:22.

                Comment

                Working...