Nagios

將戴爾開放式管理外掛與 Nagios Core 一起使用;找不到伺服器

  • December 19, 2018

我正在嘗試使用 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.

任何人都可以提供任何關於為什麼這可能不起作用的指示嗎?我正在嘗試確定這是外掛本身的問題還是網路問題。如果您需要我嘗試做任何事情來縮小範圍,請詢問。

解決了這個問題,需要使用 OSMA 登錄伺服器,設置 iDrac 並在打開警報後使用上面命令中的地址和 snmp.version=2。

引用自:https://serverfault.com/questions/945629