PMDADBPING(1)
π PMDADBPING π
okay bestie, welcome to pmdadbping(1) from the General Commands Manual section β yes she's a section 1 girlie and she's here to tell you how your database is feeling π©Ίβ¨
β¨ NAME β¨
pmdadbping β the database response time and availability PMDA π¦
πΈ DESCRIPTION πΈ
So like, pmdadbping is a database response time measurement PMDA. That's her whole thing. That's the vibe. π
What she does is run dbprobe(1) and then export all the performance measurements that dbprobe(1) makes available as PCP metrics. literally just taking those numbers and putting them on the PCP shelf for you π₯
And here's the important part β dbprobe(1) should be configured to use the type of DBI appropriate for the local database, which includes all of this:
- RDBMS flavour π
- user/password π
- delay between "ping" requests β±οΈ
- the SQL statement to use π
no cap, you gotta set those. she's not gonna guess your database for you.
π INSTALLATION π
First things first: configure dbprobe(1) β she uses a configuration file from (in this order):
/etc/pcpdbi.conf$PCP_PMDAS_DIR/dbping/dbprobe.conf
This file can contain overridden values (Perl code, bestie, yes it's Perl) for the settings listed at the start of dbprobe.pl, namely:
- database name (see
DBI(3)for details) - database user name
- database pass word
- SQL statement to measure (probe)
- delay between probes
Once this is setup, you can access the names and values for the dbping performance metrics by doing the following as root:
# cd $PCP_PMDAS_DIR/dbping
# ./Install
To uninstall, the following must be done as root:
# cd $PCP_PMDAS_DIR/dbping
# ./Remove
β οΈ real talk:pmdadbpingis launched bypmcd(1)and should never be executed directly. do not run her by hand, she has main character energy but she is not a solo act. π
The Install and Remove scripts notify pmcd(1) when the agent is installed or removed. so it's all handled, you don't gotta text pmcd yourself π²
π¦ FILES π¦
$PCP_PMDAS_DIR/dbping/dbprobe.confβ probe configuration file fordbprobe(1), used indirectly bypmdadbping$PCP_PMDAS_DIR/dbping/Installβ installation script for thepmdadbpingagent$PCP_PMDAS_DIR/dbping/Removeβ undo installation script for thepmdadbpingagent$PCP_LOG_DIR/pmcd/dbping.logβ default log file for error messages frompmdadbping
π PCP ENVIRONMENT π
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. π§ On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).
so yeah β PCP_ prefix, /etc/pcp.conf for the local values, $PCP_CONF if you wanna point somewhere else. iykyk π
π SEE ALSO π
PCPIntro(1), pmcd(1), dbprobe(1) and DBI(3). go read those next, bestie, they're iconic β
okay that's the whole page!! this was brought to you by Performance Co-Pilot π β PCP era, PMDADBPING(1) edition. mwah, go ping your database responsibly π«Άβ¨
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2014 Red Hat
- Copyright (c) 2008 Aconex. All Rights Reserved
- Copyright (c) 2004 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms