PHP or Bash Script. OVH + Proxmox APIs
Budget: £150 – £350 GBP
I have a Proxmox cluster using servers from OVH. I want to use High Availability but when my VMs are fenced and moved to an online node the IP block the VM is using is left pointing to the old host. I require some sort of monitoring script that sends the required API calls to the OVH API to move the IP block to the correct host.
I think the best way to achieve this is to query the Proxmox API to look for changes. When a VM is fenced and moved the script would detect this and issue the correct API call to reroute the IP block.
It would be nice if the script queried the WHMCS API to pull back a list of IP addresses that the VM has assigned to it. If there are additional IP blocks the script would also reroute these. I think this could be achieved by using the VMID.
This would be a standalone script running on its own server, essentially a monitoring server.
I think the best way to achieve this is to query the Proxmox API to look for changes. When a VM is fenced and moved the script would detect this and issue the correct API call to reroute the IP block.
It would be nice if the script queried the WHMCS API to pull back a list of IP addresses that the VM has assigned to it. If there are additional IP blocks the script would also reroute these. I think this could be achieved by using the VMID.
This would be a standalone script running on its own server, essentially a monitoring server.