'Create a new collector in the associated
LogicMonitor account'

def _create(self):

    self.module.debug('Running    Collector._create...')
    if (self.platform == 'Linux'):
        self.module.debug('Platform    is    Linux')
        ret = (self.info or self._get())
        if (ret is None):
            self.change = True
            self.module.debug('System    changed')
            if self.check_mode:
                self.exit(changed=True)
            h = {'autogen': True, 'description': self.description}
            self.module.debug("Making    RPC    call    to    'addAgent'")
            create = json.loads(self.rpc('addAgent', h))
            if (create['status'] is 200):
                self.module.debug('RPC    call    succeeded')
                self.info = create['data']
                self.id = create['data']['id']
                return create['data']
            else:
                self.fail(msg=create['errmsg'])
        else:
            self.info = ret
            self.id = ret['id']
            return ret
    else:
        self.fail(msg=('Error:    LogicMonitor    Collector    must    be    ' + 'installed    on    a    Linux    device.'))
