CaMM Color for SNMP message

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
fcalleja
Posts: 7
Joined: Mon Feb 23, 2009 5:14 am

CaMM Color for SNMP message

Post by fcalleja »

Hello,

I've seen in cacti.plugin.camm-min.js , that there is actually 2 colors defined for Normal (Green) and Major (Orange).

I'd like to add other colors for Minor and Critical trap messages.

I tried to modifiy as follow with or without "unminify" the JS, but it doesn't work :

Code: Select all

view: new Ext.grid.GroupingView({
                forceFit: true,
                getRowClass: function (d, b) {
                    var a = "";
                    var c = Ext.util.Format.lowercase(d.data.severity);
                    switch (c) {
                    case "normal":
                        a = "info-row";
                        break;
                    case "minor":
                        a = "alert-row";
                        break;
                    case "critical":
                        a = "critical-row";
                        break;
                    case "major":
                        a = "error-row";
                        break
                    }


How could I do ?
Tks for your help

Franck
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Try replace file by this one from archive
Attachments
cacti.plugin.camm-min.zip
(61.29 KiB) Downloaded 77 times
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests