Skip to content

Commit

Permalink
alerting: Better VictorOps message (librenms#8502)
Browse files Browse the repository at this point in the history
* adding fields to VictorOps transport for better alerts

* adding fields to VictorOps transport for better alerts
  • Loading branch information
joshrabino authored and laf committed Apr 4, 2018
1 parent 85d0e3b commit 189b428
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LibreNMS/Alert/Transport/Victorops.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public function deliverAlert($obj, $opts)
$protocol = array(
'entity_id' => ($obj['id'] ? $obj['id'] : $obj['uid']),
'state_start_time' => strtotime($obj['timestamp']),
'entity_display_name' => $obj['title'],
'state_message' => $obj['msg'],
'monitoring_tool' => 'librenms',
);
if ($obj['state'] == 0) {
Expand Down

0 comments on commit 189b428

Please sign in to comment.