After the update 0.8.8c, not displayed color in graph thold

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
Arkasha18
Posts: 14
Joined: Tue Aug 14, 2012 9:00 am

After the update 0.8.8c, not displayed color in graph thold

Post by Arkasha18 »

After the update 0.8.8c, not displayed color in graph thold
cacti/plugins/thold/thold_graph.php
and
cacti/plugins/thold/listthold.php

need patch file lib/html_utility.php
in function form_alternate_row_color

if (strlen ($row_id)) {
// print "< tr class='$class' id='$row_id'>\n“;
print "< tr id='$row_id' bgcolor='#$current_color'>\n»;
}else{
hmorandell
Cacti User
Posts: 73
Joined: Mon May 03, 2010 11:48 am

Re: After the update 0.8.8c, not displayed color in graph th

Post by hmorandell »

Thanks for the solutions !!

:-)
_________________
Cacti - 1.2.14
Poller Type - SPINE 1.2.14
Devices 3,892
Graphs 21,483
JSchuricht
Posts: 8
Joined: Thu Mar 21, 2013 1:41 am

Re: After the update 0.8.8c, not displayed color in graph th

Post by JSchuricht »

I am having the same issue but the fix isn't working for me. Specifically the 3rd line prevents the system from showing anything. Has anyone else gotten this to work?
fongfc
Posts: 1
Joined: Sat Jan 24, 2015 1:05 pm

Re: After the update 0.8.8c, not displayed color in graph th

Post by fongfc »

Hi bros,

Line #3 should be:

Code: Select all

print "<tr id='$row_id' bgcolor='#$current_color'>\n";
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

Re: After the update 0.8.8c, not displayed color in graph th

Post by computer_guru »

The color array support was removed on purpose. I wonder why?

http://svn.cacti.net/viewvc/cacti/branc ... 66&r2=7479
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

Re: After the update 0.8.8c, not displayed color in graph th

Post by computer_guru »

Here is my solution using inline CSS instead of the "bgcolor" attribute which is not supported in HTML 5.

if (strlen($row_id)) {
print "<tr class='$class' id='$row_id' style='background-color: #$current_color;'>\n";
}else{
User avatar
blackstrip
Posts: 16
Joined: Tue Sep 10, 2013 10:45 pm

Re: After the update 0.8.8c, not displayed color in graph th

Post by blackstrip »

:wink: work fine, thx.
fabiomoreti10
Posts: 3
Joined: Mon Aug 20, 2018 10:10 am

Re: After the update 0.8.8c, not displayed color in graph th

Post by fabiomoreti10 »

It works fine for me Arkasha18.

Thanks man !
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest