From b125dd1eae6cd79113c06626d1a8a24692949f37 Mon Sep 17 00:00:00 2001 From: SourceDoctor Date: Fri, 27 Dec 2019 10:57:29 +0100 Subject: [PATCH] get colors from getColorState function (#10955) --- LibreNMS/Alert/Transport/Rocket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/Alert/Transport/Rocket.php b/LibreNMS/Alert/Transport/Rocket.php index 6c6c8ba6c2..f628aa92fc 100644 --- a/LibreNMS/Alert/Transport/Rocket.php +++ b/LibreNMS/Alert/Transport/Rocket.php @@ -40,7 +40,7 @@ class Rocket extends Transport $host = $api['url']; $curl = curl_init(); $rocket_msg = strip_tags($obj['msg']); - $color = ($obj['state'] == 0 ? '#00FF00' : '#FF0000'); + $color = self::getColorForState($obj['state']); $data = array( 'attachments' => array( 0 => array(