使用带有 Nagios Core 的 Dell 开放管理插件;无法找到服务器

使用带有 Nagios Core 的 Dell 开放管理插件;无法找到服务器

我正在尝试使用 Dell OpenManage 插件监控 Dell R730 服务器 (https://www.dell.com/support/article/uk/en/ukbsdt1/sln311076/dell-emc-openmanage-plug-in-for-nagios-core?lang=en)。我已经构建了它,它似乎可以在我用于安装 Nagios Core 的 Raspberry Pi 上运行。我可以使用桌面上的 Openmanage 实用程序连接到服务器,并可以使用 rpi 中的 SNMPwalk 从服务器(打开的端口 161)获取信息,使用命令

snmpwalk -v1 -cpublic <ip_address>

它也适用于 -v2c 选项。但是当我尝试时,

python dellemc_nagios_discovery_service_utility.py --host=<ip_address> --snmp.version=2 --output.file=/usr/local/nagios/dell/config/objects/

它无法找到服务器,但似乎可以工作;

Dell EMC device discovery is in progress...

Total no of Hosts / IPs provided :1
Total no of Hosts / IPs processed successfully :0
Total no of Hosts / IPs already discovered:0
Total no of Hosts / IPs processing unsuccessful:1

Dell EMC 设备发现已完成。

我使用了此处的说明,但无法获取适用于 Raspbian 的 Dell RACADM deb 版本。它们有点旧,但我完成了大部分工作。

https://www.dell.com/support/article/uk/en/ukbsdt1/sln310604/installation-of-dell-openmanage-plugin-for-nagios-core-on-ubuntu-os?lang=en

插件构建得很好,我使用 pip 安装了 OMSDK。以上命令均未使用 sudo 运行,只是以 pi 用户而不是 nagiosadmin 的身份运行。这是安装阶段的输出;

Dell_OpenManage_Plugin/Install $ sudo bash install.sh

Dell EMC OpenManage Plug-in v3.0 for Nagios Core requires Nagios Core v3.5.0 or later.
Press 'Y' to continue if Nagios Core version is 3.5.0 or later.
Press any other key to exit installation (default: 'Y'):  Y

Provide the installed location of Nagios Core (Press ENTER to continue with the default location: '/usr/local/nagios'):

        Using the default Nagios Core installed location: /usr/local/nagios
        Nagios Core installed location verified: /usr/local/nagios

Checking prerequisites...
        SNMPTT is installed.
        JAVA is installed.
        PYTHON 2.7.13 is installed.
        PYTHON argparse module is installed.
        PYTHON netaddr module is installed.

        OpenManage Python Software Development Kit (OMSDK) module is not installed or not appropriate.
Read the Dell EMC End User License Agreement (EULA) license file (license_en.txt) packaged with this product before proceeding with the installation.
Press 'Y' to accept the license.
Press any other key to exit installation (default: 'Y'):  Y

Installing "dell emc" Plug-in specific folders and files...

Enabling HTML tags...

The attribute "escape_html_tags" in file "cgi.cfg" is set to 1. Set it to 0 for better readability in Nagios Core console (recommended).
Press 'Y' if you would like to set it to '0' (default: 'N'): Y

Updating nagios.cfg...

        The following entry is added for configuring Dell EMC OpenManage Plug-in config directory:
        --------------------------------------------------
        cfg_dir=/usr/local/nagios/dell/config
        --------------------------------------------------

Provide the file path where snmptt.ini is installed (Press ENTER to continue with the default file path: '/etc/snmp/snmptt.ini'):

        Provided file path /etc/snmp/snmptt.ini is valid.

Updating snmptt.ini...


        The following entry is added for supporting Dell EMC device traps:
        ---------------------------------------------------------------------
        /usr/local/nagios/dell/config/templates/Dell_Agent_free_Server_Traps.conf
        /usr/local/nagios/dell/config/templates/Dell_Chassis_Traps.conf
        /usr/local/nagios/dell/config/templates/Dell_Compellent_Traps.conf
        /usr/local/nagios/dell/config/templates/Dell_EqualLogic_Traps.conf
        /usr/local/nagios/dell/config/templates/Dell_F10_Switch_Traps.conf
        /usr/local/nagios/dell/config/templates/Dell_N_Series_Traps.conf
        /usr/local/nagios/dell/config/templates/Dell_PowerVaultMD_Traps.conf
        ---------------------------------------------------------------------

Provide the file path where JAVA is installed (Press ENTER to continue with the default file path: '/usr/bin/java'):

        Provided file path /usr/bin/java is valid.

Updating dellconfig.cfg...

SUCCESS: Dell EMC OpenManage Plug-in version v3.0 is installed successfully.

For the Dell EMC OpenManage Plug-in changes to take effect, verify the Nagios and SNMPTT configuration entries as per product guidelines and then restart the Nagios and SNMPTT services.

有人能指点一下为什么这个可能不起作用吗?我正在尝试弄清楚这是插件本身的问题还是网络问题。如果您需要我尝试做任何事情来缩小范围,请询问。

答案1

解决了这个问题,需要使用 OSMA 登录服务器,设置 iDrac 并在打开警报后使用上面命令中的地址和 snmp.version=2。

相关内容