Adding a large number of device

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
k-wilkinson
Posts: 2
Joined: Fri Nov 26, 2004 4:18 pm

Adding a large number of device

Post by k-wilkinson »

I would like to monitoring around 1000 devices that are all the same. Is there a easy way to add these devices into cacti and setup associated graphs. I think I can add the hosts directly to the host table in the DB with a script, but I don't think creating the graphs is going to be that simply. Any suggestions?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Not yet. It's on our list, but we have not gotten any one to write it for us yet.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
m_o_d
Posts: 15
Joined: Wed Nov 17, 2004 9:22 pm

Post by m_o_d »

I have that problem but no 1K :) only 160-200 devices.

Maby shell script can do that ?
Guest

Post by Guest »

TheWitness wrote:Not yet. It's on our list, but we have not gotten any one to write it for us yet.

TheWitness
A big step forward here would be changing the graph/host drop-down blocks in the tree editor to multi-select boxes. If you could select multiple graphs to add at the same time to a tree node adding devices like switches would be MUCH more effecient.
User avatar
Darwin
Posts: 27
Joined: Mon May 27, 2002 10:34 am
Location: Montreal, QC
Contact:

Post by Darwin »

Same issue here.. A few hundred hosts to add and having to add them manually would be a bit of a pain.. :(

If one would know all the information that gets added to the SQL database, would it not be possible to figure something out to mass-input a large number of new hosts?

Is this information available somewhere, or would I have to make a dump of the database, add a new host, make a new dump and then compare?

Thanks!

ps. Does cacti, by any chance, have an irc channel somewhere?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, it's complex....

I'm a developer and I would have to dump and compare... :( But, also, that is no my focus area.

What I would suggest is looking at writing a php script that you can run from the command line to add graphs. But, take a look at the existing php files so that you may include the correct includes and run the functions that already exist.

Also, major changes to the templating and graphing are happening in the next version of cacti.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
Darwin
Posts: 27
Joined: Mon May 27, 2002 10:34 am
Location: Montreal, QC
Contact:

Post by Darwin »

Thanks for the reply Tony.

Any somewhat "tentative" release date/schedule for this next version of cacti? These major changes are making me curious. :) Maybe I'll try and test it out on some test box. (Had just read your post in announce a bit earlier).

To wait or not to wait before implementing, hohum.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

TheWitness and I are in a holding pattern, working on other stuff, until Ian finalizes the templates stuff. So, I don't know when the changes are coming, all I know is they are.

At this time, we don't even have a tenative date, and I care not to give one, as this is a labor of love and not a job. ;)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

So elequently put! :D
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Darwin
Posts: 27
Joined: Mon May 27, 2002 10:34 am
Location: Montreal, QC
Contact:

Post by Darwin »

Hehe. Just thought I'd ask, you never know what might come up. ;)

I'll try and figure something out, hmm...

One thing's for sure, figuring out how cacti works has been interesting, made me understand alot about how rrdtool works also. Cool stuff.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests