【问题标题】:Undefined subroutine &Util::disconnect called at /usr/local/nagios/libexec/check_esx3-0.5.pl line 555在 /usr/local/nagios/libexec/check_esx3-0.5.pl 第 555 行调用的未定义子例程 &Util::disconnect
【发布时间】:2015-11-22 16:47:20
【问题描述】:

我想使用 Nagios 插件 check_esxi 监控 esxi 服务器。执行时出现此错误:

在 /usr/local/nagios/libexec/check_esx3-0.5.pl 第 555 行调用的未定义子例程 &Util::disconnect

我关注了these installation instructions。 Perl 库及其模块已安装:

Nagios::Plugin via CPAN 
perl -MCPAN -e shell
cpan> install Bundle::CPAN
cpan> reload CPAN
cpan> install Nagios::Plugin
cpan> install Crypt::SSLeay
cpan> install Compress::Zlib

尽管如此,错误(似乎指向缺少库)仍然发生。

【问题讨论】:

    标签: perl nagios esxi


    【解决方案1】:

    Util::disconnect()VMware::VIRuntime 中定义,可以在VILib.pm 中找到,它是VMware vSphere SDK for Perl API 的一部分。您必须安装 VMware vSphere SDK for Perl API 才能运行 check_esx3.pl。

    安装说明可以在这里找到:https://kb.op5.com/display/HOWTOs/How+to+Install+VMware+vSphere+SDK+for+Perl+5.1

    更多信息(例如:源链接)可以在这里找到:https://www.vmware.com/support/developer/viperltoolkit/viperl-1-200706-releasenotes.html

    【讨论】:

      猜你喜欢
      • 2021-11-18
      • 2020-05-05
      • 1970-01-01
      • 1970-01-01
      • 2012-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多