Users Guide

範例:
python dellemc_nagios_discovery_service_utility.py --host=100.98.67.123 --
addservices="NIC,Disk,Controller" --removeservices="StorageEnclosure,VDisks" -
output.file=/usr/local/nagios/dell/config/objects
新增或移除在指定主機群組下探索到的所有主機或裝置的元件服務
語法:下列指令檔或語法可協助使用者在主機群組下新增和移除服務:
python dellemc_nagios_discovery_service_utility.py --host=<hostgroup> --
addservices=<servicename> --removeservices=<servicename> -output.file=<host file
範例:
python dellemc_nagios_discovery_service_utility.py --host="Dell EMC Networking" --
addservices="NIC,Disk,Controller" --removeservices="StorageEnclosure,VDisks" -
output.file=/usr/local/nagios/dell/config/objects
: 如果有一個以上的服務具有相同的元件名稱,則新增和移除服務會移除所有重複的元件名稱。此外,--addservices
--removeservices 僅接受預先定義的元件名稱。如需更多資訊,請參閱 GUI 服務名稱和元件名稱
: 如果未提供 output.file 選項,則會採用「<NAGIOS_HOME>/dell/config/objects」的
探索 Dell EMC 裝置
可以使用這個附掛程式探索所有支援的 Dell EMC 裝置。
先決條件
如果探索使用的是 SNMP 通訊協定,務必 SNMP 版本 1 SNMP 版本 2,並 Dell EMC 伺服器、Dell EMC 儲存裝置,和
Dell EMC Network Switch 設定及配置社群字串。如需詳細資訊,請參閱附錄
隨即在 Nagios Core 和裝置之間建立受保護的網路連線。
建議裝置必須有可解析的 FQDN
WSMan 用,並設定探索 Dell EMC 機箱裝置。
WSMan 用並設定,以使用 WSMan 通訊協定探索 Dell EMC 伺服器。
Redfish 用並設定,以使用 Redfish 探索 Dell EMC 伺服器。
探索 Dell EMC 裝置:
1. Nagios 管理員權限登入 Nagios Core
2. 導覽至目錄 <NAGIOS_HOME>/dell/scripts
3. 以這個選項執行 Dell Device Discovery Utilitypython dellemc_nagios_discovery_service_utility.py
指令檔語法和選項相關資訊隨即顯示。如需詳細資訊,請參閱關於 Dell 探索公用程式
根據的需求,請執行下列動作:
使用主機 IP 位址來探索 SNMP 裝置:
python dellemc_nagios_discovery_utility.py --host=<host name or IP address> --
snmp.version=2 --output.file=/usr/local/nagios/dell/config/objects/
使用子網路遮,透過 SNMP WSMan 通訊協定/ Redfish REST 應用程式發展介面來探索:
python dellemc_nagios_discovery_utility.py --subnet=<subnet with mask> --snmp.version=2
--http.user=<username> --http.password=<password text> --output.file=/usr/local/nagios/
dell/config/objects/
: 如果沒有傳遞其他 Dell EMC Discovery 公用程式參數,命令會以預設執行。
: 確保以 IP 位址或 FQDN 其中之一來探索 Dell EMC 裝置,而不是在某個於特定例項中同時使用兩者。
4. 依預設,以 Redfish 通訊協定來探索 Dell EMC 伺服器。如果沒有在命令中傳遞 WSMan 通訊協定參數,探索會透過 SNMP 進行。
根據的需求,可以變更 --prefProtocol
使用以下命令,可透過 WSMan RedfishDell SNMP 來探索 Dell EMC 伺服器。
裝置探索和 25