Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Easier way to add devices (i.e. sync with Cacti)

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
wwwdrich
Cacti User


Joined: 03 Feb 2005
Posts: 59
Location: San Jose, CA

PostPosted: Mon Jan 14, 2008 2:55 pm    Post subject: Easier way to add devices (i.e. sync with Cacti) Reply with quote

So I have just started adding MACTrack to my cacti installation, and I have to ask: is there an easier way to add devices other than via. the Cacti console?

I really don't like the fact that I have to have double-entry for all of my network devices, once in Cacti, once in MACTrack. Can't MACTrack use the data (i.e. name, description, community string, etc.) that Cacti already has in its database?

At the moment, I have 15 devices in MACTrack and 173 in Cacti -- most of which are network devices that belong in MACTrack. I really don't want to spend the next few days trying to enter all of them via. the web interface, as I was able to bulk-add them to cacti with add_device.php and friends.

Any thoughts?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Tue Jan 15, 2008 10:59 pm    Post subject: Reply with quote

Currently there is CSV export. I had, at one point thought of integrating directly, but choose against it in the end. This was all written before the Plugin Architecture was born.

Now, I no longer support networks, and the interrest has faided down the list a bit. Had I started all over again, I would integrate directly and simply have a checkbox. I could still do this, but then migrating devices could be a problem.

TheWitness
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 268
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Tue Jan 15, 2008 11:15 pm    Post subject: Reply with quote

They could call it MAC-TRACK 2.0 maybe even no migration path..
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Tue Jan 15, 2008 11:36 pm    Post subject: Reply with quote

Well, I'll think about it. First there is the 0.8.8 to finish. Lot's to do.

TheWitness
Back to top
wwwdrich
Cacti User


Joined: 03 Feb 2005
Posts: 59
Location: San Jose, CA

PostPosted: Wed Jan 16, 2008 11:13 am    Post subject: Reply with quote

Sounds like I should whip something up then. After all, it only took me about 30 minutes to put a script together yesterday that pulls our ethers data out of LDAP and marks all of those hosts as authorized.

If there is interest in that I can post it.
Back to top
wwwdrich
Cacti User


Joined: 03 Feb 2005
Posts: 59
Location: San Jose, CA

PostPosted: Wed Jan 16, 2008 3:25 pm    Post subject: Reply with quote

Ok, I think I'm going to put something together that will allow me to specify a host template and have it put all devices in that template into MacTrack (of course, I have to come up with some way to limit devices by site as well, probably with a regexp on the hostnames).

As as sanity check, is it a true statement that all I have to do to add a device is to set the following values in mac_track_devices: device_id, site_id, hostname, device_name, notes, scan_type, snmp_readstring, snmp_readstrings, snmp_version, snmp_port, snmp_timeout, snmp_retries, user_name, user_password, ignorePorts, and disabled? That appears to be what mactrack_devices.php does when a device is added via. the web interface if I am reading the code correctly..
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group