I set this up a while ago (7.1) Here are the files that I used. As you
can see from this, your first idea to check the attribute 11f4d as a
Boolean is correct. What I have done here is to check the
"acknowledged" flag to be "true". If it is, then I call this
"acknowledged". Later I set the scheme for acknowledged to make the
alarm "light purple".
Then since "light purple" is not a known scheme I also had to update the
color schemes to know this color.
I hope this helps you.
Bill Barnes
Here are the files:
-------------custom/common/config/enumerated-severity-color-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
########################################################################
#######
#
# CA Incorporated
# 273 Corporate Drive
# Portsmouth, NH 03801
# Copyright (c) 2006 CA, Inc.
# All rights reserved.
#
# IN NO EVENT SHALL CA INCORPORATED BE LIABLE FOR
# ANY INCIDENTAL, INDIRECT, SPECIAL, OR CONSEQUENTIAL DAMAGES
# WHATSOEVER (INCLUDING BUT NOT LIMITED TO LOST PROFITS) ARISING OUT
# OF OR RELATED TO THIS SOFTWARE, EVEN IF APRISMA MANAGEMENT
# TECHNOLOGIES HAS BEEN ADVISED OF, KNOWN, OR SHOULD HAVE KNOWN, THE
# POSSIBILITY OF SUCH DAMAGES.
#
########################################################################
#######
-->
<enumerated-color id="enumerated-severity-color-config">
<renderer>
<select>
<case>
<expression>attr(0x11f56) == null </expression>
<yield>default</yield>
</case>
<!-- HD - Added acknowleged for purple alarms -->
<case>
<expression>attrBoolean(0x11f4d) == true</expression>
<yield>acknowledged</yield>
</case>
<!-- HD -->
<case>
<expression>attrInt(0x11f56) == 0</expression>
<yield>normal</yield>
</case>
<case>
<expression>attrInt(0x11f56) == 1</expression>
<yield>minor</yield>
</case>
<case>
<expression>attrInt(0x11f56) == 2</expression>
<yield>major</yield>
</case>
<case>
<expression>attrInt(0x11f56) == 3</expression>
<yield>critical</yield>
</case>
<case>
<expression>attrInt(0x11f56) == 4</expression>
<yield>maintenance</yield>
</case>
<case>
<expression>attrInt(0x11f56) == 5</expression>
<yield>suppressed</yield>
</case>
<case>
<expression>attrInt(0x11f56) == 6</expression>
<yield>initial</yield>
</case>
<default>default</default>
</select>
</renderer>
<color-schemes>
<!-- HD - Acknowledged alarms turn purple -->
<scheme id="acknowledged">
<background>light_purple_cond_background</background>
<foreground>black</foreground>
</scheme>
<!-- -->
<scheme id="critical">
<background>light_red_cond_background</background>
<foreground>white</foreground>
</scheme>
<scheme id="major">
<background>light_orange_cond_background</background>
<foreground>black</foreground>
</scheme>
<scheme id="minor">
<background>light_yellow_cond_background</background>
<foreground>black</foreground>
</scheme>
<scheme id="initial">
<background>light_blue_cond_background</background>
<foreground>white</foreground>
</scheme>
<scheme id="maintenance">
<background>light_brown_cond_background</background>
<foreground>white</foreground>
</scheme>
<scheme id="suppressed">
<background>light_gray_cond_background</background>
<foreground>black</foreground>
</scheme>
<scheme id="normal">
<background>light_green_cond_background</background>
<foreground>white</foreground>
</scheme>
<scheme id="default">
<background>light_background_color</background>
<foreground>black</foreground>
</scheme>
</color-schemes>
<selected-scheme>
<background>selected_background</background>
<foreground>selected_foreground</foreground>
</selected-scheme>
</enumerated-color>
-------------custom/common/config/common-color-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
########################################################################
#######
#
# CA Incorporated
# 273 Corporate Drive
# Portsmouth, NH 03801
# Copyright (c) 2006 CA, Inc.
# All rights reserved.
#
# IN NO EVENT SHALL CA INCORPORATED BE LIABLE FOR
# ANY INCIDENTAL, INDIRECT, SPECIAL, OR CONSEQUENTIAL DAMAGES
# WHATSOEVER (INCLUDING BUT NOT LIMITED TO LOST PROFITS) ARISING OUT
# OF OR RELATED TO THIS SOFTWARE, EVEN IF CONCORD COMMUNICATIONS
# INCORPORATED HAS BEEN ADVISED OF, KNOWN, OR SHOULD HAVE KNOWN, THE
# POSSIBILITY OF SUCH DAMAGES.
#
########################################################################
#######
-->
<common-colors id="common-color-defs">
<!-- HD - Light Purple Added for Acknowledged Alarms -->
<color id="light_purple_cond_background">
<rgb>#cc66ff</rgb>
</color>
<color id="light_green_cond_background">
<rgb>#0bbb37</rgb>
</color>
<color id="green_cond_background">
<rgb>#009900</rgb>
<brighter>light_green_cond_background</brighter>
<darker>#005500</darker>
</color>
<color id="light_blue_cond_background">
<rgb>#2d57bb</rgb>
</color>
<color id="blue_cond_background">
<rgb>#0000bb</rgb>
<brighter>light_blue_cond_background</brighter>
<darker>#000055</darker>
</color>
<color id="light_gray_cond_background">
<rgb>#cccccc</rgb>
</color>
<color id="gray_cond_background">
<rgb>#bbbbbb</rgb>
<brighter>#cccccc</brighter>
<darker>#555555</darker>
</color>
<color id="light_red_cond_background">
<rgb>#ff6666</rgb>
</color>
<color id="red_cond_background">
<rgb>#ff1111</rgb>
<brighter>light_red_cond_background</brighter>
<darker>#000055</darker>
</color>
<color id="light_orange_cond_background">
<rgb>#ffaa55</rgb>
</color>
<color id="orange_cond_background">
<rgb>#ff5d08</rgb>
<brighter>light_orange_cond_background</brighter>
<darker>#cc6600</darker>
</color>
<color id="light_yellow_cond_background">
<rgb>#ffff99</rgb>
</color>
<color id="yellow_cond_background">
<rgb>#ffff77</rgb>
<brighter>light_yellow_cond_background</brighter>
<darker>#cccc00</darker>
</color>
<color id="light_brown_cond_background">
<rgb>#a36c29</rgb>
</color>
<color id="brown_cond_background">
<rgb>#996600</rgb>
<brighter>light_brown_cond_background</brighter>
<darker>#664400</darker>
</color>
<color id="gold_background">
<rgb>#ddcc88</rgb>
<brighter>#ffff88</brighter>
<darker>#aa8877</darker>
</color>
<color id="silver_background">
<rgb>#505050</rgb>
<brighter>#efefef</brighter>
<darker>#7c7c7c</darker>
</color>
<color id="device_background">
<rgb>#eaead9</rgb>
<brighter>#ffffff</brighter>
<darker>#949889</darker>
</color>
<color id="container_background">
<rgb>#cd8b8b</rgb>
<brighter>#e2bdbd</brighter>
<darker>#9a6060</darker>
</color>
<color id="nondevice_background">
<rgb>#8c8e8c</rgb>
<brighter>#cecfce</brighter>
<darker>#6b6d6b</darker>
</color>
<color id="lightblue_background">
<rgb>#bfd7d8</rgb>
<brighter>#f1fafc</brighter>
<darker>#8bb0b7</darker>
</color>
<color id="orgcontainer_background">
<rgb>#cebe9c</rgb>
<brighter>#decfad</brighter>
<darker>#9c8e6b</darker>
</color>
<!-- Background color for topology views -->
<color id="default_topology_background_color">
<rgb>#556879</rgb>
</color>
<color id="default_neighbor_topology_background_color">
<rgb>#556879</rgb>
</color>
<color id="default_link_information_background_color">
<rgb>#556879</rgb>
</color>
<color id="default_global_collections_topology_background_color">
<rgb>#556879</rgb>
</color>
<color id="default_service_dashboard_topology_background_color">
<rgb>#556879</rgb>
</color>
<!-- Background and foreground colors for topology icon text -->
<color id="classic_default_text_foreground">
<rgb>#000000</rgb>
</color>
<color id="classic_default_text_foreground_selected">
<rgb>#e0dede</rgb>
</color>
<color id="classic_default_shaded_text_background_selected">
<rgb>#778c99</rgb>
</color>
<color id="classic_container_shaded_text_background">
<rgb>#b78181</rgb>
</color>
<color id="classic_device_shaded_text_background">
<rgb>#d2d2c2</rgb>
</color>
<color id="classic_lightblue_shaded_text_background">
<rgb>#aecccd</rgb>
</color>
<color id="classic_org_shaded_text_background">
<rgb>#d2d2c2</rgb>
</color>
<color id="classic_link_text_foreground">
<rgb>#ffffff</rgb>
</color>
<color id="utility_default_text_foreground">
<rgb>#000000</rgb>
</color>
<color id="oneclick_default_text_foreground">
<rgb>#000000</rgb>
</color>
<!-- Backgrond for selected rows and component details highlight -->
<color id="selected_background">
<rgb>#556879</rgb>
</color>
<color id="selected_foreground">
<rgb>#ffffff</rgb>
</color>
<color id="nonfocus_selected_background">
<rgb>#94a5b4</rgb>
</color>
<color id="white">
<rgb>#ffffff</rgb>
</color>
<color id="black">
<rgb>#000000</rgb>
</color>
<!-- Default color for the navigation row -->
<color id="navigation_row_color">
<rgb>#e2e1db</rgb>
</color>
<!-- Default color for the navigation vertical divider lines and
the alarm table horizontal lines -->
<color id="dark_gray_divider_color">
<rgb>#a7a6a2</rgb>
</color>
<!-- Default color for the alarm view table vertical lines -->
<color id="light_gray_divider_color">
<rgb>#d0d0cc</rgb>
</color>
<!-- Default color for the background behind all panels and any
dotted line used in any panel -->
<color id="application_oil_base">
<rgb>#3f3e42</rgb>
</color>
<!-- Default color for the background in navigation panel, background
in alarm view (without colored rows), and background in Component
Detail panel -->
<color id="light_background_color">
<rgb>#fafaf7</rgb>
</color>
<!-- Font color for all headers, text, tabs, and navigation -->
<color id="default_foreground_color">
<rgb>#000000</rgb>
</color>
<!-- Font color for Menu Bar - File, View, Tools, Console, Help -->
<color id="menu_foreground_color">
<rgb>#515153</rgb>
</color>
<!-- Font color for any content link -->
<color id="link_foreground_color">
<rgb>#3939c5</rgb>
</color>
</common-colors>
-----Original Message-----
From: Christophe Babilotte [mailto:[email protected]]
Sent: Tuesday, March 10, 2009 5:08 PM
To: spectrum
Subject: [spectrum] changing color of alarms once it has been
acknowledged
Hi all,
I am trying to change the color of an alarm once it has been
acknowledged.
I have copied the enumarated-severity-color-config.xml to
custom/common/config directory and I have the following code in it
<case>
<expression>
attrInt(0x11f56) == 3 &&
attrInt(0x11f4d) == 1
</expression>
<yield>criticalack</yield>
</case>
<case>
<expression>
attrInt(0x11f56) == 3 &&
attrInt(0x11f4d) == 0
</expression>
<yield>critical</yield>
</case>
<scheme id="criticalack">
<background>blue_cond_background</background>
<foreground>white</foreground>
</scheme>
<scheme id="critical">
<background>light_red_cond_background</background>
<foreground>white</foreground>
</scheme>
my first though was that attrib 0x11f4d is boolean hence I first put
attrBoolean == true or attrBoolean == false but that didn't work. I
could only load OneClick if I do an attrInt instead or attBoolean.
Anyway after having the above code in
enumarated-severity-color-config.xml the Alarms show with a white
background and the one I acknowledged don't change background colors. Is
there any way to change the color for an alarm once it has been
acknowledged?
---
To unsubscribe from spectrum, send email to [email protected] with the
body: unsubscribe spectrum [email protected]
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]