Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_ifstatus and check_ifoperstatus are compiled when Net::SNMP perl module is not present #248

Closed
box293 opened this issue Mar 13, 2017 · 1 comment

Comments

@box293
Copy link
Contributor

box293 commented Mar 13, 2017

I notice when running configure:

checking for snmpget... no
configure: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins
checking for snmpgetnext... no
configure: WARNING: Tried /usr/bin/perl - install Net::SNMP perl module if you want to use the perl snmp plugins

This is OK, it's not installed so it's an expected warning.

However make & make install seem to still create the plugins:

 /usr/bin/install -c  check_breeze check_disk_smb check_flexlm check_ircd check_log check_oracle check_rpc check_sensors check_wave check_ifstatus check_ifoperstatus check_mailq check_file_age utils.sh utils.pm '/usr/local/nagios/libexec'

Running the plugins gives the output:

# /usr/local/nagios/libexec/check_ifstatus 

Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /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/libexec/check_ifstatus line 41.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_ifstatus line 41.


# /usr/local/nagios/libexec/check_ifoperstatus

Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /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/libexec/check_ifoperstatus line 42.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_ifoperstatus line 42.

I would expect that if the pre-requisites of configure were not met then they would not be compiled.

@jfrickson
Copy link
Contributor

There's not really a good way to deal with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants