Update 0.3.9 (Look and Feel)
Moderators: Developers, Moderators
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.
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 (81.2 KiB) Viewed 5372 times
-
- thold_down.JPG (81.77 KiB) Viewed 5372 times
-
- thold_recovering.JPG (86.86 KiB) Viewed 5372 times
-
- thold_unknown.JPG (83.77 KiB) Viewed 5372 times
Last edited by Leddy on Fri Apr 11, 2008 3:21 pm, edited 3 times in total.
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.
- chrisgapske
- Cacti User
- Posts: 278
- Joined: Tue May 22, 2007 7:56 am
- Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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!)
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!)
- chrisgapske
- Cacti User
- Posts: 278
- Joined: Tue May 22, 2007 7:56 am
- Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL
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
Make sure to remove the _horizontal and the .txt extension
- Attachments
-
- thold_graph_horizontal.php.txt
- (7.56 KiB) Downloaded 239 times
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
- chrisgapske
- Cacti User
- Posts: 278
- Joined: Tue May 22, 2007 7:56 am
- Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL
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
$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
Who is online
Users browsing this forum: No registered users and 1 guest