几个月/几周前,我使用此命令在多个服务器上安装 Nagios::Plugins:
perl -MCPAN -e 'install Nagios::Plugin'
现在我收到此错误信息:
Reading '/root/.cpan/Metadata'
Database was generated on Mon, 27 Apr 2015 00:29:02 GMT
Warning: Cannot install Nagios::Plugin, don't know what it is.
据我所知,该模块仍在 CPAN 中:http://search.cpan.org/dist/Nagios-Plugin/
怎么了?
答案1
Nagios::Plugins
曾是重命名由于Monitoring::Plugins
商标原因。cpan
不再索引Nagios::Plugins
。现在你必须安装Monitoring::Plugin
perl -MCPAN -e 'install Monitoring::Plugin'
或者您可以通过 cpanm 安装它。首先安装cpanm:
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
然后安装模块
cpanm Monitoring::Plugin
进一步阅读