我正在尝试激活Munin的Postgresql插件。当我运行munin-node-configure --suggest | grep postgres时,我得到以下输出:
postgres_bgwriter | no | no [DBD::Pg not found, and cannot do psql yet]
postgres_cache_ | no | no [DBD::Pg not found, and cannot do psql yet]
postgres_checkpoints | no | no [DBD::Pg not found, and cannot do psql yet]
postgres_connections_ | no | no [DBD::Pg not found, and cannot do psql yet]
postgres_connections_db | no | no [DBD::Pg not found, and cannot do psql yet]
postgres_locks_ | no | no [DBD::Pg not found, and cannot do psql yet]
postgres_querylength_ | no | no [DBD::Pg not found, and cannot do psql yet]
postgres_scans_ | no | no [DBD::Pg not found, and cannot do psql yet]
postgres_size_ | no | no [DBD::Pg not found, and cannot do psql yet]
postgres_transactions_ | no | no [DBD::Pg not found, and cannot do psql yet]我在谷歌上搜索了一个答案,但对于如何解决这个问题,我还没有找到明确的答案。我以前从未使用过Perl模块(我们所有的软件都使用Python),所以我需要做些什么来安装这个依赖项呢?我正在使用Ubuntu10.04.4LTS。
发布于 2014-06-17 10:33:55
许多perl模块将在通常的包层次结构中可用。对于Ubuntu,我相信您想要的包名为libdbd-pg-perl -所以请尝试使用以下方法安装:
sudo apt install libdbd-pg-perl对于包层次结构中没有包含的包,可以使用perl模块CPAN来安装它们。作为根,运行
perl -MCPAN -eshell 并按照说明配置要从哪些站点下载perl模块。配置完成后,键入
install DBD::PG 若要安装模块及其所依赖的任何模块,请执行以下操作。
https://serverfault.com/questions/605697
复制相似问题