Actions
Bug #13509
openNRPE: Checks requiring net-snmp fail
Status:
New
Priority:
Normal
Assignee:
-
Category:
NRPE
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Affected Version:
2.6.0
Affected Plus Version:
22.05
Affected Architecture:
All
Description
Some NRPE checks require the Net SNMP perl module to be installed and it is not a dependency of the package.
You can install Net-SNMP manually either directly or using the pfSense package but the SNMP.pm file is not found by perl as it's not in the path.
A symnlink allows it to find the file, for exmaple:
ln /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm /usr/local/lib/perl5/5.32/Net/SNMP.pm
Tested in 2.6
Updated by Steve Wheeler over 2 years ago
Something more that that is required here. Attempting to actually use it produced the following error:
[2.6.0-RELEASE][admin@cedev-6.stevew.lan]/usr/local/libexec/nagios: ./check_ifstatus -C firewall -p 161 -H 127.0.0.1 Subroutine AUTOLOAD redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 53. Subroutine register_debug_tokens redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 138. Subroutine getenv redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 144. Subroutine setenv redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 150. Subroutine setMib redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 158. Subroutine initMib redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 169. Subroutine addMibDirs redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 186. Subroutine addMibFiles redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 195. Subroutine loadModules redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 205. Subroutine unloadModules redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 216. Subroutine translateObj redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 222. Subroutine getType redefined at /usr/local/lib/perl5/site_perl/mach/5.32/SNMP.pm line 251. Can't locate object method "session" via package "Net::SNMP" (perhaps you forgot to load "Net::SNMP"?) at ./check_ifstatus line 128.
Updated by Jim Pingle over 1 year ago
- Target version deleted (
2.7.0) - Plus Target Version deleted (
Plus-Next)
Actions