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