Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Update 0.3.9 (Look and Feel)

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold)
Author Message
Leddy
Cacti User


Joined: 15 May 2005
Posts: 67

PostPosted: Tue Apr 08, 2008 2:36 pm    Post subject: Update 0.3.9 (Look and Feel) Reply with quote

I've made some changes to the thold_graph.php so it looks like it belongs in cacti.

Unfortunately the default is horrendous to use (sorry devs). I have also made a few changes to the flow of the code as I never understood why some things were the way they were and made it easier to read. My ultimate goal is that this will be the "new" thold look so I won't have to modify every time a new version is available.

Hopefully someone out there enjoys it

Please note it was easier to make all my devices change status for screenshots then it would have been to down a device. Make sure you backup your existing file and remove the _vertical and the .txt extension

The screenshots depict a new "vertical" format. I have modified the code and made a "horizontal" that more resembles the current layout.



thold_unknown.JPG
 Description:
 Filesize:  83.77 KB
 Viewed:  2608 Time(s)

thold_unknown.JPG



thold_recovering.JPG
 Description:
 Filesize:  86.86 KB
 Viewed:  2608 Time(s)

thold_recovering.JPG



thold_down.JPG
 Description:
 Filesize:  81.77 KB
 Viewed:  2608 Time(s)

thold_down.JPG



thold_up.JPG
 Description:
 Filesize:  81.2 KB
 Viewed:  2608 Time(s)

thold_up.JPG



thold_graph_vertical.php.txt
 Description:

Download
 Filename:  thold_graph_vertical.php.txt
 Filesize:  7.41 KB
 Downloaded:  104 Time(s)



Last edited by Leddy on Fri Apr 11, 2008 3:21 pm; edited 3 times in total
Back to top
YoMarK
Cacti User


Joined: 02 Feb 2007
Posts: 69
Location: Eindhoven/The Netherlands

PostPosted: Wed Apr 09, 2008 8:13 am    Post subject: Reply with quote

Looks better, but the old layout(host of the left, and thresholds in a column on the right side) works better if you have a lot of devices there.

Last edited by YoMarK on Wed Apr 09, 2008 8:15 am; edited 1 time in total
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Wed Apr 09, 2008 8:14 am    Post subject: Reply with quote

Nice Idea I was thinking Thold needed a face life great start.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2248
Location: United Kingdom

PostPosted: Wed Apr 09, 2008 9:17 am    Post subject: Reply with quote

Hehe. There are at least three modified versions of 0.3.9 around now
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Wed Apr 09, 2008 5:04 pm    Post subject: Reply with quote

well best of both worlds of skins ?
Back to top
Leddy
Cacti User


Joined: 15 May 2005
Posts: 67

PostPosted: Fri Apr 11, 2008 3:20 pm    Post subject: Reply with quote

I have modified the code to have a horizontal layout more like what it is now.

Make sure to remove the _horizontal and the .txt extension



thold_graph_horizontal.php.txt
 Description:

Download
 Filename:  thold_graph_horizontal.php.txt
 Filesize:  7.56 KB
 Downloaded:  127 Time(s)

Back to top
YoMarK
Cacti User


Joined: 02 Feb 2007
Posts: 69
Location: Eindhoven/The Netherlands

PostPosted: Sun Apr 13, 2008 3:05 pm    Post subject: Reply with quote

Cool! Tnx Leddy!
Back to top
killshoot



Joined: 26 Mar 2008
Posts: 35

PostPosted: Tue Apr 22, 2008 12:53 am    Post subject: Reply with quote

Good job, many thx
Back to top
gthe
Cacti User


Joined: 29 Jul 2006
Posts: 113
Location: RU

PostPosted: Wed Apr 23, 2008 10:22 am    Post subject: Reply with quote

I add one more column [status date] and sorting by status, status_date


status_date.jpg
 Description:
look with column status_date
 Filesize:  100.17 KB
 Viewed:  2130 Time(s)

status_date.jpg



thold_graph.php.txt
 Description:
Don't forgot to change file name from thold_graph.php.txt to thold_graph.php

Download
 Filename:  thold_graph.php.txt
 Filesize:  8.38 KB
 Downloaded:  109 Time(s)

Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Wed Apr 23, 2008 11:27 am    Post subject: Reply with quote

Can you include user Auth for both Graphs and Triggers so you only show the hosts and DS you should be able to see ?
Back to top
killshoot



Joined: 26 Mar 2008
Posts: 35

PostPosted: Mon Apr 28, 2008 6:14 am    Post subject: Reply with quote

IF you are like me ( ~30'000 thold ) you can modify the first SQL request to have only the the breached thold:

$sql = "SELECT thold_data.*, host.description FROM thold_data LEFT JOIN host ON thold_data.host_id=host.id WHERE thold_enabled='on' AND thold_alert!='0' ORDER BY thold_alert DESC, bl_alert DESC, host.description ASC, rra_id ASC";


Vince
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group