Pages

Saturday, 27 June 2015

HCP driver issue R1soft Agent

Guys,

If any policy fails in R1soft, then you need to click on the failed policy and check the field "Alerts". If you see error related to "hcpdriver module", like

============================
An exception occurred during the request. The replication driver was not detected (detail:
An error occurred while loading the hcpdriver module, please check your system logs;
Please run "r1soft-setup --get-module " on your Agent to install one. ).
============================

Then you need to make sure you have installed Kernel-devel & Kernel-headers on your "Agent Server".

Run (On clients server);

# lsmod | grep hcp

If it returns no value, then the hcpdriver not running on your client machine. After that you need perform below steps,

1. Check the current running Kernel

# uname -r

2. Check you installed correct Kernel-devel & Kernel-headers

# rpm -qa | grep kernel

3. If it's not showing correct Kernel packages, then you need to remove those packages and install correct one,

# yum install "kernel-devel-uname-r == $(uname -r)"
# yum install "kernel-headers-uname-r == $(uname -r)"

If you are using custom Kernel, then  you need to install it using RPM package.

4. Then you need install the required r1soft modules using below command

# r1soft-setup --get-module
# r1soft-setup --get-module --no-binary (Use after checking his use)


5. Then restart the R1soft Agent

# /etc/init.d/cdp-agent restart

6. Then you need to check the hcpdriver loaded,

# lsmod | grep hcpdriver

If all went fine, then you will get a result like

============================
[root@server ~]# lsmod | grep hcpdriver

hcpdriver             602516  4
============================

Exception;

If you fail to get module loaded, then do below steps (I tried this for my openvz node)

*) Remove current loaded modules

# rm -f /lib/modules/r1soft/*

*) Load new modules using

# r1soft-setup --get-module --no-binary
OR
# r1soft-setup --get-module --no-binary --force

It will fix the policy error and the connection will fine after that.

Tuesday, 23 June 2015

WHMCS-SolusVM integration (Tested)

Have you faced any issues with WHMCS-SolusVM integration?

Issue

When you check the "Products/Services" for any VPS and get a message at the "Control" section

<Connection Error>

Reason

It's a communication issue between WHMCS server and SolusVM master server.

Fix

You need to check the API key details that you get from SolusVM. Do below steps

1. Login to your SolusVM master server and go to Configuration > API Users > Create API User.

The issue is, you need to give access to the main IP of the WHMCS server there. If you gave wrong IP, then

2. There will be an option to edit the API access, click on that and add main IP of your WHMCS server there.

3. Copy the API key and ID and paste that in

WHMCS > Setup > Products/Services > Servers > [Select Server] > Edit > Server Details (Section)

Type: Solusvmpro
Username: API ID
Password: API Key
Secure: Tick that option (Tick to use SSL Mode for Connections)

Please refer: https://documentation.solusvm.com/display/DOCS/Adding+a+Master+to+WHMCS

This will fix the issue :)