使用NAGIOS监控ESXI
1 下载 check_esxi_hardware.py
URL: %2A-Virtual-Environments/VMWare/check_esxi_hardware-2Epy/details
2 安装python pywbem 支持
wget %3A%2F%2Fsourceforge.net%2Fprojects%2Fpywbem%2Ffiles%2Fpywbem%2F&ts=1299742557&use_mi
mv pywbem-0.7.0.tar.gz?r=http:%2F%2Fsourceforge.net%2Fprojects%2Fpywbem%2Ffiles%2Fpywbem%2F pywbem-0.7.0.tar.gz
tar zxvf pywbem-0.7.0.tar.gz
cd pywbem-0.7.0
python setup.py build
python setup.py install --record files.txt
3 安装 yum install python-py.noarch
4 语法 usage: check_esxi_hardware.py --host=hostname --user=username --pass=password [--vendor=system --verbose --perfdata --html=XX]
5 实际查看结果
./check_esxi_hardware.py --host=xxx.xxx.xxx.xxx --user=xxxxxx --pass=xxxxxx
OK - Server: IBM IBM System x3650 M4: -[xxxxxx]- s/n: xxxxxx System BIOS: -[xxxxxxx1.73]- 2014-07-31
阅读(1682) | 评论(0) | 转发(0) |