You are here

problem running /usr/local/nagios/bin/db_opsview db_install

2 posts / 0 new
Last post
adam110102
adam110102's picture
problem running /usr/local/nagios/bin/db_opsview db_install

I'm following the directions here - http://docs.opsview.com/doku.php?id=opsview-core:rhel-installation - to install core on a RHEL 6.4 system.

When I run "/usr/local/nagios/bin/db_opsview db_install" as indicated, I receive the following error:

[nagios@monitor2 nagios]$ /usr/local/nagios/bin/db_opsview db_install Can't locate Class/Data/Inheritable.pm in @INC (@INC contains: /usr/local/nagios/perl/lib /usr/local/nagios/bin/../lib /usr/local/nagios/bin/../etc /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/bin/../lib/ClassDBIExtras.pm line 24. BEGIN failed--compilation aborted at /usr/local/nagios/bin/../lib/ClassDBIExtras.pm line 24. Compilation failed in require at /usr/local/nagios/bin/../lib/Opsview.pm line 29. BEGIN failed--compilation aborted at /usr/local/nagios/bin/../lib/Opsview.pm line 29. Compilation failed in require at (eval 10) line 3. ...propagated at /usr/share/perl5/base.pm line 94. BEGIN failed--compilation aborted at /usr/local/nagios/bin/../lib/Opsview/Icon.pm line 24. Compilation failed in require at /usr/local/nagios/bin/hosticon_admin line 45. BEGIN failed--compilation aborted at /usr/local/nagios/bin/hosticon_admin line 45. Cannot import hosticons.db Cannot populate via populate_db.plThe file "Inheritable.pm" seems to be located here - /opt/opsview/perl/lib/perl5/Class/Data/Inheritable.pm - which is not in the path the script is using to find it.  I've tried a few things with no success.  Am I missing something?  What's the correct way to get the script to properly locate the modules?   Thanks!   Adam  
adam110102
adam110102's picture
Re: problem running /usr/local/nagios/bin/db_opsview db_install

Reinstalled the 'opsview-perl' package.  It seems to have created the proper links and the scripts run fine now.