Step by step guide to building a configuration management database(CMDB) using python and django, CMDB is a repository of information related to all the components of an information system. Then we can use the post_hardwave_and_softwave_infos_to_cmdb.py script to get the hardwave & softwave info from host and post the info data to CMDB automatically.
https://www.djangoproject.com/download/
# tar xzvf Django-1.5.1.tar.gz
# cd Django-1.5.1
# python setup.py install
# cd pycmdb
# python manager runserver $host_ip:$port
# cd pycmdb
# python post_hardwave_and_softwave_infos_to_cmdb.py
# nagios_configure_generate.py
# yum install nagios (nagios-3.4.4-1.fc16.x86_64) ...
# /usr/bin/nagiostats -v /etc/nagios/nagios.cfg
# /etc/rc.d/init.d/nagios start
# /etc/rc.d/init.d/nagios restart
# kill -HUP pidof nagios