Skip to content

Instantly share code, notes, and snippets.

@tomas-edwardsson
Created September 24, 2013 21:14
Show Gist options
  • Save tomas-edwardsson/6691353 to your computer and use it in GitHub Desktop.
Save tomas-edwardsson/6691353 to your computer and use it in GitHub Desktop.
Install Opsview::NagiosPlugin::SNMP manually
# Create the module directory
mkdir -p /usr/lib64/perl5/vendor_perl/Opsview/NagiosPlugin
# Fetch the SNMP helper module
curl https://secure.opsview.com/svn/opsview/trunk/opsview-core/lib/Opsview/NagiosPlugin/SNMP.pm > /usr/lib64/perl5/vendor_perl/Opsview/NagiosPlugin/SNMP.pm
# Test
perl -e 'use Opsview::NagiosPlugin::SNMP'
@albarki
Copy link

albarki commented Dec 12, 2021

perl -e 'use Opsview::NagiosPlugin::SNMP'
Base class package "Nagios::Plugin" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base).
 at /usr/lib/x86_64-linux-gnu/perl-base/Opsview/NagiosPlugin/SNMP.pm line 8.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl-base/Opsview/NagiosPlugin/SNMP.pm line 8.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment