![]() |
The Gateway Hooks feature is available in Geneos version GA3.0.22 (GWX-836) and above. Gateway Hooks provide a way for clients to fire custom programs or scripts when certain important gateway events occur. We call these programs hooks as they are hooked in to the gateway process. |
![]() |
To use Gateway Hooks, users will need to specify the -hooks-dir parameter on gateway startup, which points to a directory that contains customized scripts for their environment. One feature of Gateway Hooks is "Post Setup Apply" (another feature is "Validate Setup"). This is fired after the gateway has finished applying a new setup. The script should be named post-setup-apply, which will be triggered every time that the setup is reapplied. The gateway package includes sample scripts located at the ./resources/hooks/example directory. Users can use this as a starting point and customize the scripts to meet their requirements. The gateway passes the setup files and related information through environment variables to the script. The script can also pass back filename with versions and return code, and the gateway will process the output. Please refer to the Gateway Advanced Features - Technical Reference for more details and the blog Using Git with Geneos for an example. |
-
Tags:
- gateway
- hooks
- git
- versioncontrol
Comments
0 comments
Please sign in to leave a comment.