Hi, I've created a python script to quickly generate Nagios configuration files based on cobbler profiles, using xmlrpc.
Requirements: 1) Begin your partitions definitions with the following comment: # BEGINPARTITIONS and put # ENDPARTITIONS at the end. This is because the script will render the entire kickstart, look for these 2 lines and take everything in the middle as partitions. 2) a working nagios installation Syntax is: ./nagios.py -y systemname -k customername It will then create a nagios configuration file as: /etc/nagios/objects/customername/systemname.cfg include this dir in your nagios.cfg (cfg_dir=/etc/nagios/objects/customername) and restart Nagios. It will also create a hostgroup.cfg in the same directory and add all found systems' cfg files in that dir to it as members of the group. Disclaimer: my python skills are sub-optimal. The code might require some improvement ;) Everything can be found under 'leon-nagios' at: http://bender.newnewyork.nl/git/gitweb.cgi Kind regards, Léon Keijser Stone-IT _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
