Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Installer Hooks

matt maier edited this page Mar 31, 2016 · 2 revisions

Installation hooks

There are currently two hooks available to perform custom actions before and after NAD installation. These can be used to install additional plugins or alter the agent.

Pre hook

Run before NAD package installation. If the file exists and is executable, it will be run, errors will be ignored.

Location: /opt/circonus/cosi/agent_pre_hook.sh

Post hook

Run after NAD package installation. If the file exists and is executable, it will be run, errors will be ignored.

Location: /opt/circonus/cosi/agent_post_hook.sh


For an example of post hooks, see the example/ directory in this repository. Specifically the CentOS tasks and files in the cosi role.