[solved] how to add host in bulk in cacti

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
rastey
Posts: 19
Joined: Tue Nov 03, 2009 9:08 am

[solved] how to add host in bulk in cacti

Post by rastey »

Hi,

Is there any script or method to add host in bulk.
as i have to add 100 of host on cacti.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: [solved] how to add host in bulk in cacti

Post by TFC »

any chance to point a test file that contains hosts list?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: [solved] how to add host in bulk in cacti

Post by noname »

TFC wrote:any chance to point a test file that contains hosts list?
How about this script?
- User Scripts: Provisioning from CSV
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: [solved] how to add host in bulk in cacti

Post by TFC »

very nice but i cant use . because of an error:
root@servercacti:/var/www/cacti/cli/host_add/scripts# perl import_csv_file_to_cacti.pl --file ../csv/test.csv
Can't locate Functions.pm in @INC (@INC contains: lib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at import_csv_file_to_cacti.pl line 112.
BEGIN failed--compilation aborted at import_csv_file_to_cacti.pl line 112.
I try to solve it
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: [solved] how to add host in bulk in cacti

Post by TFC »

I solved it by copy files under lib/ dir. under perl.
But now i have another problem:
root@servercacti:/home/awtadm/host_add# perl scripts/import_csv_file_to_cacti.pl --file ../test.csv --debug
Script launched on Tue Nov 22 11:24:33 2011
Options :
file : '../test.csv'
config : 'conf/config.ini'
Can't use an undefined value as a HASH reference at lib/Functions.pm line 211.
how can i solve it?
grodno5
Posts: 36
Joined: Fri Feb 18, 2005 12:49 pm
Location: US/PA
Contact:

Re: [solved] how to add host in bulk in cacti

Post by grodno5 »

any update fix on this error? getting same problem
Can't use an undefined value as a HASH reference at lib/Functions.pm line 211
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: [solved] how to add host in bulk in cacti

Post by gandalf »

grodno5 wrote:any update fix on this error? getting same problem
Can't use an undefined value as a HASH reference at lib/Functions.pm line 211
I'm sorry, but we do not maintain perl code
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest