Hi,

I already put a bug report in ages ago for this but have never be implemented

http://jira.observium.org/browse/OBSERVIUM-1566

Its still set as OPEN as I have this bug and had to also enter those lines to get it to POP up in hipchat as I use that too for notifications

Regards

Simon


On 20 Apr 2017, at 15:09, Steve Pierce <stevepierce@flexerasoftware.com> wrote:

I’m not sure if anyone else would find this useful or not, but this quick change to make Hipchat throw up a notification flag.  If this is a horrible hack, I apologize in advance.
 
 
 
[observium]# more ./includes/alerting/hipchat.inc.php
 
<?php
 
 
 
/**
 
 * Observium
 
 *
 
 *   This file is part of Observium.
 
 *
 
 * @package    observium
 
 * @subpackage alerting
 
 * @copyright  (C) 2006-2013 Adam Armstrong, (C) 2013-2016 Observium Limited
 
 *
 
 */
 
 
 
$color = ($message_tags['ALERT_STATE'] == "RECOVER" ? "green" : "red");
 
 
 
// Default URL if not set
 
if ($endpoint['url'] == "") { $endpoint['url'] = 'https://api.hipchat.com'; }
 
 
 
$message = '<a href="'.$message_tags['ALERT_URL'].'">'.$message_tags['TITLE'].'</a>';
 
$message .= '<br />';
 
$message .= str_replace("             ", "", str_replace("\n", " ", $message_tags['METRICS']));
 
 
 
// JSON data 
 
$data_string = json_encode(array(
 
  "from" => $endpoint['from'],
 
  "notify" => 'true',                                                                                                                                               //Added this statement
 
  "color" => $color,
 
  "message_format" => 'html',
 
  "message" => $message));
 
 
 
 
Thanks,
Steve Pierce
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium