mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-04 08:02:05 +02:00
Change event resource
This commit is contained in:
@@ -36,11 +36,11 @@ $msg_body = array(
|
|||||||
"event_type" => "check",
|
"event_type" => "check",
|
||||||
"source_type" => "resource",
|
"source_type" => "resource",
|
||||||
"component" => $obj['hostname'],
|
"component" => $obj['hostname'],
|
||||||
"resource" => $obj['device_id'],
|
"resource" => $obj['faults'][1]['storage_descr'],
|
||||||
"state" => $state,
|
"state" => $state,
|
||||||
"state_type" => 1,
|
"state_type" => 1,
|
||||||
"output" => $obj['msg'],
|
"output" => $obj['msg'],
|
||||||
"display_name" =>"librenms_test"
|
"display_name" => "librenms"
|
||||||
);
|
);
|
||||||
$msg_raw = json_encode($msg_body);
|
$msg_raw = json_encode($msg_body);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user