PMDAMSSQL(1)
π PMDAMSSQL π
okay bestie, welcome to pmdamssql(1) β yeah it's a section 1 General Commands Manual page, and no, we're not being boring about it π
β¨ NAME β¨
pmdamssql β the Microsoft SQL Server database PMDA, and yes she's iconic for it π
πΈ DESCRIPTION πΈ
so like, pmdamssql is a Performance Co-Pilot (PCP) Performance Metrics Domain Agent (PMDA), which is a very fancy way of saying: she pulls live performance data straight out of a running Microsoft SQL Server database server. real-time tea, no cap β¨
π CONFIGURATION π
first things first, bestie β pmdamssql needs some support packages installed before she can do her thing:
mssql-serverβ the main character π the primary Microsoft SQL Server database package.msodbcsql18,msodbcsql17ormsodbcsqlβ the Microsoft SQL Server ODBC bindings. pick your fighter, any of these three works.pyodbcβ the general Python ODBC module, with Microsoft SQL Server support enabled. she needs that switch flipped, fr fr.
next up, pmdamssql reads an optional ini-style configuration file:
$PCP_PMDAS_DIR/mssql/mssql.conf
this file currently has room for two sections β one for configuring the library that connects to SQL server, and the other for authenticating with SQL server. two little rooms, two little vibes π¦
[connection] section π«Ά
this one specifies values for the following settings (their default values are shown in parenthesis, iykyk):
driver({ODBC Driver 17 for SQL Server}) β the ODBC driver string.server(tcp:localhost) β the SQL Server socket connection string.timeout(2) β the connection timeout setting, in seconds.
[authentication] section π₯
this section specifies values for the two supported modes of authentication with SQL Server.
mode one: SQL Server authentication (the default)
the default is to use SQL Server authentication, which requires a username and password to be provided. these are the configuration settings (defaults in parenthesis, as always bestie):
username(pcp) β username to connect to the database.password(empty) β password to connect to the database.
π¨ note that if a SQL Server Assessments API configuration file is found at/var/opt/mssql/secrets/assessment, thenpmdamssqlreads the username and password from that file preferentially. the format is simply a two line text file β the first line contains the username, and the second line contains the password. simple, clean, iconic.
mode two: Windows authentication mode
the second option is Windows authentication mode, where logins are created in SQL Server that are not based on operating system user accounts.
trusted(false) β set totrueto use Windows authentication when connecting to the database.
this is a Kerberos-style connection, and credentials must be available before the PMDA is started (see kinit(1) for further details β go read her, she's important π§).
π INSTALLATION π
to install, the following must be done as root:
# cd $PCP_PMDAS_DIR/mssql
# ./Install
to uninstall, the following must be done as root:
# cd $PCP_PMDAS_DIR/mssql
# ./Remove
okay so important: pmdamssql is launched by pmcd(1) and should never be executed directly. she does not take walk-ins, she gets booked π the Install and Remove scripts notify pmcd(1) when the agent is installed or removed, so everything stays in the loop.
also good news: pmdamssql will automatically attempt to reconnect to the SQL Server if its connection is lost β e.g. if the SQL Server service is restarted. resilient queen π
β FILES β
$PCP_PMDAS_DIR/mssql/mssql.confβ configuration file for thepmdamssqlagent.$PCP_PMDAS_DIR/mssql/Installβ installation script for thepmdamssqlagent.$PCP_PMDAS_DIR/mssql/Removeβ undo installation script for thepmdamssqlagent.$PCP_LOG_DIR/pmcd/mssql.logβ default log file for messages from thepmdamssqlagent.
π note that the usual/default value for$PCP_PMDAS_DIRis/var/lib/pcp/pmdasand the default for$PCP_LOG_DIRis/var/log/pcpβ but these settings are platform dependent, so don't come for her if your paths are different bestie π
π 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). periodt π
π SEE ALSO π
PCPIntro(1), kinit(1) and pmcd(1). go give them a read, they're all slay in their own way π«Ά
and that's the whole page bestie!! this was Performance Co-Pilot, PCP, PMDAMSSQL(1) β thanks for reading, ily, now go monitor some databases πβ¨ππ¦
π¦ 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) 2019-2021 Red Hat. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms