Command

Erik Hollensbe edited this page Nov 9, 2013 · 5 revisions
  • Type: command
  • Params: the arg list as would be passed to execv(). It does not run under a shell.

The command plugin runs a command, and accepts json output from it which it builds into the result.

An example from test.json:

{
  "echo hi": {
    "Type": "command",
    "Params": [ "echo", "{ \\" hi \\": 1 }" ]
  }
}

This results in this:

{ "echo hi": { " hi ": 1 } }

Note the value has been injected directly into the json form so that Circonus can treat it like a proper json value.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.