Hey! These docs are for version 6.3, which is no longer officially supported. Click here for the latest version, 6.7!

Setting Host or Servicecheck states

Input:

{
 "notifications": { "enabled": 0 }
}

Output:

{"success": "1"}

Possible input values for host:

{ 
 "active_checks": { 
  "host_enabled": 0, // or 1
  "services_enabled": 1 // or 0
 },
 "passive_checks": {
  "enabled": 0, // or 1
 },
 "set_state": {
  "result": 0, // 0=UP, 1=DOWN, 2=UNREACHABLE
  "output": "Plugin output", // Must be set not empty
  "perfdata": "time=9",      // Optional
 },
 "notifications": {
  "host_enabled": 0, // or 1
  "services_enabled": 0, // or 1
 },
 "event_handler": {
  "enabled": 0, // or 1
 },
 "flap_detection": {
  "enabled": 0, // or 1
 },
 "recheck": {
  "check_host": 0,       // or 1. If both are 0, then nothing is sent to the Orchestrator
  "check_services": 0, // or 1
  "time" : 1234567890, // Epoch seconds. Default now
 }
}

Possible input for services:

{ 
 "active_checks": { 
  "enabled": 0, // or 1
 },
 "passive_checks": {
  "enabled": 0, // or 1
 },
 "set_state": {
  "result": 0, // 0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN
  "output": "Plugin output", // Must be set not empty
  "perfdata": "time=9",      // Optional
 },
 "notifications": {
  "enabled": 0, // or 1
 },
 "event_handler": {
  "enabled": 0, // or 1
 },
 "flap_detection": {
  "enabled": 0, // or 1
 },
 "recheck": {
   "time" : 1234567890, // Epoch seconds. Default now
 }
}