Installing HostBill
HostBill installation is fully automated and takes just seconds, more info at Installation
Configuring Cacti
Make sure your Devices in cacti are configured with "Interface - Traffic" data source.
Create traffic graph (i.e. bits i/o) for each port you wish to monitor trough HostBill.
Connecting HostBill with Cacti
- Make sure that hb_api.php file from includes/modules/Hosting/cacti directory (relative to main HostBill dir, usually /home/hostbill/public_html/) is uploaded into main Cacti dir (one accessible from web/serving Cacti index.php file).
- In HostBill go to Settings > Modules, find and activate Cacti hosting module
- You will be redirected to Settings > Apps to set connection with Cacti
- Enter Cacti admin credentials, use Test Connection to check if HostBill can connect
Creating your first package with billable bandwidth overages
- In HostBill go to Settings > Products & Services, and Add new order page
- From Order Types select Colocation or Dedicated Servers
- After creating order page add new product in it, provide name & Save changes
- In billing settings choose Bandwidth billing, configure your limits and pricing.
- From Connect with App section select your cacti module & app.
- Under Client Functions tab enable "Bandwidth usage graphs".
Connecting port from Cacti in HostBill
- In HostBill adminarea go to Account with package configured with Cacti module
- Proceed to "Bandwidth" tab
- Click on "Select switch/ports to connect"
- Select switch & port fetched from cacti to monitor, make sure it has graph generated in Cacti
Configuring bandwidth billing for Cacti/Observium/Libre NMS