[solved] how to add host in bulk in cacti
Moderators: Developers, Moderators
[solved] how to add host in bulk in cacti
Hi,
Is there any script or method to add host in bulk.
as i have to add 100 of host on cacti.
Is there any script or method to add host in bulk.
as i have to add 100 of host on cacti.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I vote for http://docs.cacti.net/manual:087:6_refe ... ne_scriptsBSOD2600 wrote:http://docs.cacti.net/manual:088:6_refe ... ne_scripts
088 is not yet out

R.
Re: [solved] how to add host in bulk in cacti
any chance to point a test file that contains hosts list?
Re: [solved] how to add host in bulk in cacti
How about this script?TFC wrote:any chance to point a test file that contains hosts list?
- User Scripts: Provisioning from CSV
Re: [solved] how to add host in bulk in cacti
very nice but i cant use . because of an error:
I try to solve itroot@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.
Re: [solved] how to add host in bulk in cacti
I solved it by copy files under lib/ dir. under perl.
But now i have another problem:
But now i have another problem:
how can i solve it?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.
Re: [solved] how to add host in bulk in cacti
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
Can't use an undefined value as a HASH reference at lib/Functions.pm line 211
- 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
I'm sorry, but we do not maintain perl codegrodno5 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
R.
Who is online
Users browsing this forum: No registered users and 32 guests