|
|
| Author |
Message |
cpickering
Joined: 08 Jan 2007 Posts: 6 Location: Cheshire, UK
|
Posted: Mon Jan 08, 2007 9:02 am Post subject: Advice on HTML location |
|
|
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 |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Mon Jan 08, 2007 10:45 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
cpickering
Joined: 08 Jan 2007 Posts: 6 Location: Cheshire, UK
|
Posted: Mon Jan 08, 2007 11:44 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Tue Jan 09, 2007 1:35 pm Post subject: |
|
|
I love the idea 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 |
|
| Back to top |
|
 |
cpickering
Joined: 08 Jan 2007 Posts: 6 Location: Cheshire, UK
|
Posted: Fri Jan 12, 2007 10:37 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|