Advice on HTML location

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
cpickering
Posts: 8
Joined: Mon Jan 08, 2007 8:57 am
Location: Cheshire, UK

Advice on HTML location

Post by cpickering »

Hello,

Could someone please point me in the direction of where the following HTML is kept?

'Add new device' - host.php?action=edit&host_template_id=-1&host_status=-1

Basically, im looking to add an extra field to the form so I can setup 'groups' and then group devices together. I'm aware ill need to edit/amend the SQL process, I should be ok I think.. I hope, lol

Thank you for your help :)

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

Post by gandalf »

Please explain in more detail how you want to group target systems and why the graph tree is not an option for it.
For modifications, personally I would advise using the plugin architecture as a basis. find more at http://cactiusers.org
Reinhard
cpickering
Posts: 8
Joined: Mon Jan 08, 2007 8:57 am
Location: Cheshire, UK

Post by cpickering »

My idea is simple.

- Create a new mysql table called 'groups' with the structure of
id, groupname, description, device_id

- Add a new field called 'Group' which could either be a drop downlist or freeform text box. This would be on the 'add device' page and edit page.

- When you add a device, you can join it to a group ie;
NS0 -> DNS Servers
NS1 -> DNS Servers
MX1 -> Mail Servers

etc

- Then, modify the monitor/index.php page to show a new table or css layout for each group, with the devices inside. Why?
Make the monitor page look cleaner and easier for people to see what they are by looking at them.

Does that make sense? And yeah I checked host.php, but couldn't find the form elements
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I love the idea :wink: cause we're using this approach but perform the association manually. Of course you may try to write a plugin, but this would change tree view significantly.
BTB: find the html form elements in the include directory along with other static definitions
Reinhard
cpickering
Posts: 8
Joined: Mon Jan 08, 2007 8:57 am
Location: Cheshire, UK

Post by cpickering »

I wouldnt have a clue on how to build the plugin, even tho ive read the information. I'll have another read when my brain isnt as fried.

Glad you like it.

Carl
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests