我正在尝试为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]
我已经用Google搜索了答案,但没有找到任何明确的答案来解决这个问题.我以前从未使用过Perl模块(我们所有的软件都是Python),那么我需要做些什么才能安装这个依赖?我正在使用Ubuntu 10.04.4 LTS.
许多perl模块将在通常的包层次结构中可用.对于Ubuntu,我相信你想要的软件包名为libdbd-pg-perl – 所以尝试安装:
sudo apt install libdbd-pg-perl
对于未包含在包层次结构中的包,您可以使用perl模块CPAN来安装它们.以root身份运行
perl -MCPAN -eshell
并按照说明配置从哪个站点下载perl模块.配置完成后,键入
install DBD::PG
安装模块及其依赖的任何模块.