'Add this device to monitoring
in your LogicMonitor account'

def add(self):

    self.module.debug('Running    Host.add...')
    if (self.collector and (not self.info)):
        self.module.debug('Host    not    registered.    Registering.')
        self.module.debug('System    changed')
        self.change = True
        if self.check_mode:
            self.exit(changed=True)
        h = self._build_host_hash(self.hostname, self.displayname, self.collector, self.description, self.groups, self.properties, self.alertenable)
        self.module.debug("Making    RPC    call    to    'addHost'")
        resp = json.loads(self.rpc('addHost', h))
        if (resp['status'] == 200):
            self.module.debug('RPC    call    succeeded')
            return resp['data']
        else:
            self.module.debug('RPC    call    failed')
            self.module.debug(resp)
            return resp['errmsg']
    elif (self.collector is None):
        self.fail(msg="Specified    collector    doesn't    exist")
    else:
        self.module.debug('Host    already    registered')
