WHMAPI1 hook for IP change
Completed
I am a plugin developer that is integrating the nginx server into the cPanel webstack.
For the proper working of the plugin; I will need hooks from the following WHMAPI functions
- Home »IP Functions »Change a Site’s IP Address
- Home »Multi Account Functions »Change Multiple Sites’ IP Addresses
Version 60 has gone to the CURRENT tier! You can take a look at the full release notes here:
https://documentation.cpanel.net/display/ALD/60+Release+Notes
If you have any questions, feel free to follow your typical support path, or email me directly!
Version 60 has gone to the CURRENT tier! You can take a look at the full release notes here:
https://documentation.cpanel.net/display/ALD/60+Release+Notes
If you have any questions, feel free to follow your typical support path, or email me directly!
The hook point for Change IP is available in the EDGE tier as of version 59.9999.130. If you're okay with it, I'd like to split the SSL hook points off into another request, as that one requires a much more significant time commitment, and isn't likely to get attention in this release.
The hook point for Change IP is available in the EDGE tier as of version 59.9999.130. If you're okay with it, I'd like to split the SSL hook points off into another request, as that one requires a much more significant time commitment, and isn't likely to get attention in this release.
Sure Benny . Its good news that the edge tier has this implemented at least partially. I will soon test it and update you the results.
Sure Benny . Its good news that the edge tier has this implemented at least partially. I will soon test it and update you the results.
Perfect! I've created the new request here, and adjusted this request to only be for IP changes.
Perfect! I've created the new request here, and adjusted this request to only be for IP changes.
I am running WHM 59.9999 (build 134) [DEV]
Added the hook like
# /usr/local/cpanel/bin/manage_hooks add script /opt/nDeploy/scripts/ipchange.sh --manual --category Whostmgr --event setsiteip --stage post
and the hook doesnt run when an account IP is changed from WHM. no debug log for the hooks execution as well in the cpanel error_log .
I am running WHM 59.9999 (build 134) [DEV]
Added the hook like
# /usr/local/cpanel/bin/manage_hooks add script /opt/nDeploy/scripts/ipchange.sh --manual --category Whostmgr --event setsiteip --stage post
and the hook doesnt run when an account IP is changed from WHM. no debug log for the hooks execution as well in the cpanel error_log .
@Kenneth - yes it works on both events
Home »IP Functions »Change a Site’s IP Address
Home »Multi Account Functions »Change Multiple Sites’ IP Addresses
Thanks
@Kenneth - yes it works on both events
Home »IP Functions »Change a Site’s IP Address
Home »Multi Account Functions »Change Multiple Sites’ IP Addresses
Thanks
Looks like I spoke too soon. The hook is there ..but it does not have the json data to identify the account name for which the IP address was changed . the data dict from the json is blank
{u'hook': {u'exectype': u'script', u'weight': u'100', u'escalateprivs': u'0', u'hook': u'/opt/nDeploy/scripts/xyz', u'id': u'C1naBGmmyHTs5ICMBtiBedIb', u'stage': u'post'}, u'data': None, u'context': {u'category': u'Whostmgr', u'stage': u'post', u'event': u'Accounts::SiteIP::set', u'blocking': 0, u'point': u'main'}}
Looks like I spoke too soon. The hook is there ..but it does not have the json data to identify the account name for which the IP address was changed . the data dict from the json is blank
{u'hook': {u'exectype': u'script', u'weight': u'100', u'escalateprivs': u'0', u'hook': u'/opt/nDeploy/scripts/xyz', u'id': u'C1naBGmmyHTs5ICMBtiBedIb', u'stage': u'post'}, u'data': None, u'context': {u'category': u'Whostmgr', u'stage': u'post', u'event': u'Accounts::SiteIP::set', u'blocking': 0, u'point': u'main'}}
Version 60 has gone to the CURRENT tier! You can take a look at the full release notes here:
https://documentation.cpanel.net/display/ALD/60+Release+Notes
If you have any questions, feel free to follow your typical support path, or email me directly!
Version 60 has gone to the CURRENT tier! You can take a look at the full release notes here:
https://documentation.cpanel.net/display/ALD/60+Release+Notes
If you have any questions, feel free to follow your typical support path, or email me directly!
Replies have been locked on this page!