|
|
| Author |
Message |
Leddy Cacti User
Joined: 15 May 2005 Posts: 67
|
Posted: Tue Apr 08, 2008 2:36 pm Post subject: Update 0.3.9 (Look and Feel) |
|
|
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.
| Description: |
|
| Filesize: |
83.77 KB |
| Viewed: |
2608 Time(s) |

|
| Description: |
|
| Filesize: |
86.86 KB |
| Viewed: |
2608 Time(s) |

|
| Description: |
|
| Filesize: |
81.77 KB |
| Viewed: |
2608 Time(s) |

|
| Description: |
|
| Filesize: |
81.2 KB |
| Viewed: |
2608 Time(s) |

|
| 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
|
Posted: Wed Apr 09, 2008 8:13 am Post subject: |
|
|
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
|
Posted: Wed Apr 09, 2008 8:14 am Post subject: |
|
|
| 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
|
Posted: Wed Apr 09, 2008 9:17 am Post subject: |
|
|
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
|
Posted: Wed Apr 09, 2008 5:04 pm Post subject: |
|
|
| well best of both worlds of skins ?
|
|
| Back to top |
|
 |
Leddy Cacti User
Joined: 15 May 2005 Posts: 67
|
Posted: Fri Apr 11, 2008 3:20 pm Post subject: |
|
|
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
| 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
|
Posted: Sun Apr 13, 2008 3:05 pm Post subject: |
|
|
Cool! Tnx Leddy!
|
|
| Back to top |
|
 |
killshoot
Joined: 26 Mar 2008 Posts: 35
|
Posted: Tue Apr 22, 2008 12:53 am Post subject: |
|
|
| Good job, many thx
|
|
| Back to top |
|
 |
gthe Cacti User
Joined: 29 Jul 2006 Posts: 113 Location: RU
|
Posted: Wed Apr 23, 2008 10:22 am Post subject: |
|
|
I add one more column [status date] and sorting by status, status_date
| Description: |
| look with column status_date |
|
| Filesize: |
100.17 KB |
| Viewed: |
2130 Time(s) |

|
| 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
|
Posted: Wed Apr 23, 2008 11:27 am Post subject: |
|
|
| 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
|
Posted: Mon Apr 28, 2008 6:14 am Post subject: |
|
|
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 |
|
 |
|