------------------------------------------------------------------------------- 1. Overview 1.1 lenovo_xcc_discover.py "lenovo_xcc_discover.py" provides the capabilities to discover Lenovo ThinkSystem through SNMPv3 protocol. 2. System Requirements 2.1 Protocol SNMPv3 protocol is the only supported protocol IPv4 is the only supported Internet protocol 2.2 Prerequisite SNMPv3 agent and account have been enabled on the target system's XCC webpage. 2.3 Hardware Requirements Lenovo ThinkSystem 2.4 Software Requirements • python2.7 or python3.5 • net-snmp-utils (e.g, "yum install net-snmp-utils" on RHEL) 2.5 Language English only 3. Usage 3.1 File organization |-- lenovo_xcc_discover.py | |-- README.txt | |-- template.cfg 3.2 How to use 1) Make sure lenovo_xcc_discover.py has executable permission with command "chmod +x lenovo_xcc_discover.py" 2) Modify file template.cfg to provide the IP range, SNMPv3 account, etc 3) Run command ./lenovo_xcc_discovery.py -f template.cfg. It will generate lenovo_snmp_command.cfg and Lenovo_XCC.cfg(defined in template.cfg) to given output path. 4) Copy lenovo_snmp_command.cfg and Lenovo_XCC.cfg to Nagios (/usr/local/nagios/etc/objects/) 5) Modify the Nagios configuration file(/usr/local/nagios/etc/nagios.cfg) to include the two configuration files generated in step 3. (e.g, cfg_file=/usr/local/nagios/etc/objects/lenovo_snmp_command.cfg cfg_file=/usr/local/nagios/etc/objects/Lenovo_xcc.cfg) 6) Restart Nagios service: service nagios restart