Skip to main content

Using Automatic Hostname Matching for VPS Upsells

Configuring the module to automatically relate VPS' to Agents for easy activation.

Pete Bishop avatar
Written by Pete Bishop
Updated over 3 weeks ago

The Monarx Upsell Module for WHMCS is capable of determining if an Agent is pre-installed on a VPS.

Automatic Hostname Matching runs during the cron and is not immediate. The cron job is scheduled to run once per day. This is however configurable by customising the cron job.

For Automatic Hostname Matching to work, it's important that the Domain field in the WHMCS service matches the host_id configured on the server.

The host_id is configured during agent set up in the /etc/monarx-agent.conf file.

For example, if the VPS hostname in the Domain field in WHMCS is vps1234.myawesomehost.net, you would configure the Monarx agent in /etc/monarx-agent.conf with the following line:

host_id=vps1234.myawesomehost.net

By matching these two exactly, the Cron will understand that this agent belongs to a specific customer, allowing for lead generation to occur.

Matching hostnames to agents also allows customers who purchase Monarx Active Protection to simply select their VPS and click Activate without any further steps such as copying an installation command.

Did this answer your question?