Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
my ($session, $error) = Net::SNMP->session(
-hostname => $Hostname,
-community => $Community,
#-miblist => 'F5-BIGIP-LOCAL-MIB',
#Above did not work
-port => 161,
-version => 'snmpv2c',
-nonblocking => 0
);
If that cannot be done, how can I convert ASCII ($PoolName) entered variable to decimal value to make that an OID within perl? (Kinda outside a nagios related question but figured I'd ask here as well)
Definitely something that would be best asked in a forum dedicated to Perl, as it does not seem to pertain to anything Nagios-specific.
Regarding the string -> int conversion, I don't think you need to do that since what you are building is itself a string. And I also seem to recall Perl handling string -> int conversion nicely anyway:
The main question in this post was about how can I get the plugin to be forced to use a MIB. I couldn't find anything in Net::SNMP about doing this.
I'm actually on stackoverflow now looking at the conversion process as well lol however what I found was exactly the opposite of what I was wanting: https://stackoverflow.com/questions/714 ... conversion
I'll give your link a shot if the MIB isn't an option.