Skip to content

Example and template for usage of MeshCentral-PluginHookScheduler

Notifications You must be signed in to change notification settings

bitctrl/MeshCentral-PluginHookExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MeshCentral-PluginHookExample

A plugin for MeshCentral to demonstrate and test the plugin MeshCentral-PluginHookScheduler.

Installation

See Plugins - Installation & Usage

To install, simply add the plugin configuration URL when prompted:

https://raw.githubusercontent.com/bitctrl/MeshCentral-PluginHookExample/main/config.json

Configuration

meshcentral-data/config.json

{
  "$schema": "https://raw.githubusercontent.com/Ylianst/MeshCentral/master/meshcentral-config-schema.json",
  "settings": {
    "plugins": {
      "enabled": true,
      "pluginSettings": {
        "pluginhookscheduler": {
          "backendhooks": [
            ["server_startup", []],
            ["hook_setupHttpHandlers", []],
            ["hook_userLoggedIn", []],
            ["hook_processAgentData", []],
            ["hook_agentCoreIsStable", []],
            ["hook_beforeCreateMeshAgent", []],
            ["hook_afterCreateMeshAgent", []],
            ["hook_beforeCreateMeshRelay", []],
            ["hook_afterCreateMeshRelay", []],
            ["hook_beforeCreateLocalRelay", []],
            ["hook_afterCreateLocalRelay", []],
            ["hook_beforeCreateMeshUser", []],
            ["hook_afterCreateMeshUser", []],
            ["hook_beforeNotifyUserOfDeviceStateChange", []],
            ["hook_afterNotifyUserOfDeviceStateChange", []],
            ["*", []]
          ],
          "webuihooks": [
            ["#", ["NOT IMPLEMENTED YET"]]
          ]
        }
      }
    }
  }
}

About

Example and template for usage of MeshCentral-PluginHookScheduler

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published