Visual Fix for CACTI Graphs View Interface(list,preview)

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
_Dmitry_
Posts: 36
Joined: Tue Sep 18, 2007 4:58 am
Location: DE

Visual Fix for CACTI Graphs View Interface(list,preview)

Post by _Dmitry_ »

Because I have quite large Cacti instance(0.8.7.a) with a lot of Devices and Graph/Data Templates I am using very often List View and Preview View Graph Pages:

http://xxxxx/cacti/graph_view.php?action=list
http://xxxxx/cacti/graph_view.php?action=preview

In both modes you can select Host and/or Graph Template to view.
_but_ when you select some device and then want to select Graph Template you will see _all_ Graph templates in the System and not Graph templates for this device.
Same goes otherway, when you select some Graph Template and then want to select some device/host you will see _all_ devices in the system and not devices with this Graph Template.

I don't know if this bug or intension, but I've fixed this. Now after you select device you'll see only Graph Templates which exist for this device and vice versa.

I'll post patch later here.

To Developers: This is bug or not ? If yes I'll create Bug report.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Moving to Features Requests.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
_Dmitry_
Posts: 36
Joined: Tue Sep 18, 2007 4:58 am
Location: DE

Post by _Dmitry_ »

With the following Patch I've fixed this.
Attachments
patch_graph_list_preview.txt
(10.99 KiB) Downloaded 537 times
_Dmitry_
Posts: 36
Joined: Tue Sep 18, 2007 4:58 am
Location: DE

Post by _Dmitry_ »

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Thanks for the patch; will review later and post results here
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests