'Create some \'modules\' from all nagios parameters if they are set and
the modules are not created'

def hack_old_nagios_parameters_for_arbiter(self):

    mod_to_add = []
    if (getattr(self, 'command_file', '') != ''):
        got_named_pipe_module = self.got_arbiter_module_type_defined('named_pipe')
        if (not got_named_pipe_module):
            data = {'command_file': self.command_file, 'module_name': 'NamedPipe-Autogenerated', 'module_type': 'named_pipe'}
            mod = Module(data)
            mod_to_add.append((mod, data))
    if (mod_to_add != []):
        logger.warning('I    autogenerated    some    Arbiter    modules,    please    look    at    your    configuration')
        for (mod, data) in mod_to_add:
            logger.warning('Module    %s    was    autogenerated', data['module_name'])
            for a in self.arbiters:
                a.modules = (getattr(a, 'modules', []) + [data['module_name']])
            self.modules.add_item(mod)
