2014年2月6日 星期四

[研究] NETDISCO 1.1 網路管理工具安裝 (Fedora 20 x64)(失敗)

[研究] NETDISCO 1.1 網路管理工具安裝 (Fedora 20 x64)(失敗)

2014-02-06
Lu

NETDISCO - Network Management Tool

這個Web-based應用被設計為管理中到大型網絡和其中的SNMP網絡設備。

官方網站
http://netdisco.org/

目前最新版 Netdisco 1.3.2,於 29 Aug 2013 釋出

Fedora 20 的 yum 提供 1.1 版

[root@localhost ganglia]# yum list | grep netdisco
netdisco.noarch                         1.1-6.fc20                       fedora
[root@localhost ganglia]#

安裝


yum  -y  install  netdisco
/usr/sbin/netdisco_config

firefox   https://localhost/netdisco  &


進行設定

[root@localhost ~]# /usr/sbin/netdisco_config

[ netdisco_config ] Configuration Script for Netdicso

   * This script will configure Netdisco on a stock Fedora installation


UNSUPPORTED -  Please use at your own risk.
               This script was contributed by Kaven Rousseau and is untested.
               This script was modified by Oden Eriksson <oeriksson@mandriva.com>
               This script was modified by Walter Gould <gouldwp@fedoraproject.org> for Fedora install

Hit Return to continue or Ctrl-C to exit :


Starting postgresql.......


Hint: the preferred way to do this is now "postgresql-setup initdb"
Initializing database ... OK

/usr/sbin/netdisco_config: line 31: /etc/init.d/postgresql: No such file or directory


Backing up and editing postgresql files.......


/usr/sbin/netdisco_config: line 45: /etc/init.d/postgresql: No such file or directory


About to edit the netdisco config files..........


Enter Netdisco Database password:
Enter domain name:

Enter SNMP read string:

Enter SNMP write string:

mv: cannot stat ‘/etc/httpd/conf.d/apreq.conf’: No such file or directory


Creating Netdisco database tables........





Finished creating Netdisco database tables........


Populating the OUI database for Netdisco........



Finished installing OUI database........




About to setup netdisco crontab........


Enter center CDP device for network discovery:


Finished setting up netdisco crontab........


Note: Forwarding request to 'systemctl enable postgresql.service'.
ln -s '/usr/lib/systemd/system/postgresql.service' '/etc/systemd/system/multi-user.target.wants/postgresql.service'
Note: Forwarding request to 'systemctl enable httpd.service'.
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'


About to create netdisco admin user........



syntax error at /usr/share/perl5/vendor_perl/netdisco.pm line 337, near "$type qw(booleans array_refs hash_refs array_refs_mult hash_refs_mult)"
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 341.
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 341.
Global symbol "@array_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 346.
Global symbol "@hash_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 349.
Global symbol "@booleans" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 421.
Global symbol "@array_refs" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 430.
Global symbol "@array_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 440.
Global symbol "@hash_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 447.
Global symbol "@hash_refs" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 454.
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 480.
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 481.
syntax error at /usr/share/perl5/vendor_perl/netdisco.pm line 485, near "}"
/usr/share/perl5/vendor_perl/netdisco.pm has too many errors.
Compilation failed in require at /usr/sbin/netdisco line 27.
BEGIN failed--compilation aborted at /usr/sbin/netdisco line 27.



!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Netdisco is about to discover your network, perform a macsuck on each device, and
setup your network graph.

This portion of the install process may take some time, depending on the size of your
network.  Please be patient and don't cancel out of it.  This would be a good time
to get up and take a break, get a drink or go to lunch....
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



syntax error at /usr/share/perl5/vendor_perl/netdisco.pm line 337, near "$type qw(booleans array_refs hash_refs array_refs_mult hash_refs_mult)"
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 341.
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 341.
Global symbol "@array_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 346.
Global symbol "@hash_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 349.
Global symbol "@booleans" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 421.
Global symbol "@array_refs" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 430.
Global symbol "@array_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 440.
Global symbol "@hash_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 447.
Global symbol "@hash_refs" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 454.
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 480.
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 481.
syntax error at /usr/share/perl5/vendor_perl/netdisco.pm line 485, near "}"
/usr/share/perl5/vendor_perl/netdisco.pm has too many errors.
Compilation failed in require at /usr/sbin/netdisco line 27.
BEGIN failed--compilation aborted at /usr/sbin/netdisco line 27.
syntax error at /usr/share/perl5/vendor_perl/netdisco.pm line 337, near "$type qw(booleans array_refs hash_refs array_refs_mult hash_refs_mult)"
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 341.
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 341.
Global symbol "@array_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 346.
Global symbol "@hash_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 349.
Global symbol "@booleans" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 421.
Global symbol "@array_refs" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 430.
Global symbol "@array_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 440.
Global symbol "@hash_refs_mult" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 447.
Global symbol "@hash_refs" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 454.
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 480.
Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 481.
syntax error at /usr/share/perl5/vendor_perl/netdisco.pm line 485, near "}"
/usr/share/perl5/vendor_perl/netdisco.pm has too many errors.
Compilation failed in require at /usr/sbin/netdisco line 27.
BEGIN failed--compilation aborted at /usr/sbin/netdisco line 27.


 Starting up Netdisco front-end........


Starting netdisco (via systemctl):  Job for netdisco.service failed. See 'systemctl status netdisco.service' and 'journalctl -xn' for details.
                                                           [FAILED]



Netdisco Installation completed!!!!


eth0: error fetching interface information: Device not found
Login via https:///netdisco/


Enjoy!!!

設定失敗,看一下錯誤原因

[root@localhost ~]# systemctl status netdisco.service
netdisco.service - LSB: start and stop netdisco admin daemon
   Loaded: loaded (/etc/rc.d/init.d/netdisco)
   Active: failed (Result: exit-code) since Thu 2014-02-06 10:36:43 CST; 2min 21s ago
  Process: 4771 ExecStart=/etc/rc.d/init.d/netdisco start (code=exited, status=2)

Feb 06 10:36:43 localhost.localdomain netdisco[4771]: Global symbol "@hash_refs" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 454.
Feb 06 10:36:43 localhost.localdomain netdisco[4771]: Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 480.
Feb 06 10:36:43 localhost.localdomain netdisco[4771]: Global symbol "$file" requires explicit package name at /usr/share/perl5/vendor_perl/netdisco.pm line 481.
Feb 06 10:36:43 localhost.localdomain netdisco[4771]: syntax error at /usr/share/perl5/vendor_perl/netdisco.pm line 485, near "}"
Feb 06 10:36:43 localhost.localdomain netdisco[4771]: /usr/share/perl5/vendor_perl/netdisco.pm has too many errors.
Feb 06 10:36:43 localhost.localdomain netdisco[4771]: Compilation failed in require at /usr/sbin/netdisco line 27.
Feb 06 10:36:43 localhost.localdomain netdisco[4771]: BEGIN failed--compilation aborted at /usr/sbin/netdisco line 27.
Feb 06 10:36:43 localhost.localdomain systemd[1]: netdisco.service: control process exited, code=exited status=2
Feb 06 10:36:43 localhost.localdomain systemd[1]: Failed to start LSB: start and stop netdisco admin daemon.
Feb 06 10:36:43 localhost.localdomain systemd[1]: Unit netdisco.service entered failed state.
[root@localhost ~]#


(待研究 ...)

相關

[研究] NETDISCO 1.1 網路管理工具安裝 (Fedora 20 x64)(失敗)
http://shaurong.blogspot.com/2014/02/netdisco-11-fedora-20-x64.html

[研究] NETDISCO 1.1 網路管理工具安裝 (CentOS 6.5 x64)(失敗)
http://shaurong.blogspot.tw/2014/02/netdisco-11-centos-65-x64.html

[研究] NETDISCO - Network Management Tool 安裝 (CentOS 5.4 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=18020

沒有留言:

張貼留言