Update 0.3.9 (Look and Feel)

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
Leddy
Cacti User
Posts: 93
Joined: Sun May 15, 2005 6:55 pm

Update 0.3.9 (Look and Feel)

Post by Leddy »

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.
Attachments
thold_graph_vertical.php.txt
(7.41 KiB) Downloaded 213 times
thold_up.JPG
thold_up.JPG (81.2 KiB) Viewed 5378 times
thold_down.JPG
thold_down.JPG (81.77 KiB) Viewed 5378 times
thold_recovering.JPG
thold_recovering.JPG (86.86 KiB) Viewed 5378 times
thold_unknown.JPG
thold_unknown.JPG (83.77 KiB) Viewed 5378 times
Last edited by Leddy on Fri Apr 11, 2008 3:21 pm, edited 3 times in total.
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

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.
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Post by chrisgapske »

Nice Idea I was thinking Thold needed a face life great start.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Hehe. There are at least three modified versions of 0.3.9 around now :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Post by chrisgapske »

well best of both worlds of skins ?
Leddy
Cacti User
Posts: 93
Joined: Sun May 15, 2005 6:55 pm

Post by Leddy »

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
Attachments
thold_graph_horizontal.php.txt
(7.56 KiB) Downloaded 239 times
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

Cool! Tnx Leddy! :D
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Post by killshoot »

Good job, many thx
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

I add one more column [status date] and sorting by status, status_date
Attachments
thold_graph.php.txt
Don't forgot to change file name from thold_graph.php.txt to thold_graph.php
(8.38 KiB) Downloaded 396 times
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Post by chrisgapske »

Can you include user Auth for both Graphs and Triggers so you only show the hosts and DS you should be able to see ?
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Post by killshoot »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests