Discover 1.1 Auto Creation of Devices

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
nerdi
Posts: 24
Joined: Thu Mar 12, 2009 8:19 am

Discover 1.1 Auto Creation of Devices

Post by nerdi »

Does Discovery automatically add devices into the data base? Or is it necessary to manually add the device.
nerdi
Posts: 24
Joined: Thu Mar 12, 2009 8:19 am

Re: Discover 1.1 Auto Creation of Devices

Post by nerdi »

this is the error I get adding devices manually, which of course I can remedy by typing a name into the description field. However I had hoped that devices could be added automatically. Just wondering if anyone knows if that is a function of Discovery.
Thanks
Attachments
discovery-0.8.5_add_error.png
discovery-0.8.5_add_error.png (157.18 KiB) Viewed 1265 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Discover 1.1 Auto Creation of Devices

Post by gandalf »

This is indeed not yet available.
And it depends, which data field you'd like to see there. The SNMP sysName, the DNS name or what? I was thinking about making this available as a configuration option ...
R.
nerdi
Posts: 24
Joined: Thu Mar 12, 2009 8:19 am

Re: Discover 1.1 Auto Creation of Devices

Post by nerdi »

Good idea, either would work. I recently evaluated a product that allowed sysName, DNS or Host, and it gave the option to choose the order in which the three would be applied. This is seemingly a comprehensive approach, but one of the things that the discovery and naming does, is offer a opportunity to audit inventory, so when the assigned name is one of a group of choices makes that more difficult. I like the idea of picking.
So what do folk do now with cacti, where they want to add lots of devices? Manually add them?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Discover 1.1 Auto Creation of Devices

Post by gandalf »

They use the cli interface to retrieve data from their CMDB and feed this to cacti. Then, they use AUTOM8 to create all graphs and tree entries.

But hey, what do you think why I made the suggestions from above? I only need a sponsor, hehehe
R.
maroximus
Posts: 1
Joined: Thu Jun 02, 2011 7:51 am

Re: Discover 1.1 Auto Creation of Devices

Post by maroximus »

It is possible to automade the add host name actually but you need to make some manual coding on discover.php

here is the code i made

Code: Select all

                        <input type=hidden name=host_template_id value=16> // This was 0 , i changed to my custom template id
                        <input type=hidden name=description value=" . $row['sysName'] . "> //This was empty before, i put here the SNMP Name of the device.
my folder path:

Code: Select all

/var/www/html/cacti/plugins/discovery
file name:

Code: Select all

discover.php
This method can be applied to devices if there is no difference with them and if they are using all the same template. When your job finishes, just turn back to old values and it is ok.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests