[Nagiosplug-devel] Error when executing check_ifoperstatus plugin (Gavin)
Subhendu Ghosh
sghosh at sghosh.org
Fri Mar 16 04:26:04 CET 2007
Gavin command should give you an output - either a "Can't locate" error
message or a version string.
You need to install the Net::SNMP perl module as listed in the
requirements file.
try installing the module with the following line:
perl -MCPAN -e 'install Net::SNMP'
If this is the first time running CPAN - you will get prompted for some
config settings.
-sg
On Fri, 16 Mar 2007, Santhosh Injineri wrote:
> Hi Gavin,
>
> Thank you for your assistance ...
>
> I tried with somany options but still the same result ...
>
> I executed that command also but no output o/p is empty....
>
> I am here with sending you the check_ifoperstatus file attached along with
> this mail ...
>
> Thanks once agian....
>
> --Regards
> Santhosh
>
>
>
> ------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 15 Mar 2007 09:42:04 +1100
> From: Gavin Carr <gavin at openfusion.com.au>
> Subject: Re: [Nagiosplug-devel] Error when executing
> check_ifoperstatus plugin
> To: Nagios Plugin Development Mailing List
> <nagiosplug-devel at lists.sourceforge.net>
> Message-ID: <20070314224204.GA5312 at openfusion.com.au>
> Content-Type: text/plain; charset=us-ascii
>
> Hi Santhosh,
>
> On Wed, Mar 14, 2007 at 06:33:26PM +0530, Santhosh Injineri wrote:
>> Hi - I am new to nagios so thanks in advance for any assistance, we have
>> been haing real problems with this.
>>
>> when i execute the command ./check_ifoperstatus -k 22 -H localhost i am
>> getting out put as
>>
>> OUTPUT: Can't locate object method "session" via package "Net::SNMP"
>> (perhaps you forgot to load "Net::SNMP"?) at ./check_ifoperstatus line
> 443.
>>
>> where Line No 443 is
>>
>> 442 if ( $snmp_version =~ /[12]/ ) {
>> 443 ($session, $error) = Net::SNMP->session(
>> 444 -hostname => $hostname,
>> 445 -community => $community,
>> 446 -port => $port,
>> 447 -version => $snmp_version,
>> 448 -maxmsgsize => $maxmsgsize
>> 449 );
>> 450
>>
>> Can any one please assist me how to come resolve this problem and please
>> tell me if any set up is needed for Net::SNMP????
>
> Is that the first error you get? It looks like there's a problem with your
> Net::SNMP, but I'd have expected it to blow up on the 'use Net::SNMP' line
> earlier.
>
> What does the following give you?
>
> perl -MNet::SNMP -e 'printf "%vd\n", $Net::SNMP::VERSION'
>
>
> Cheers,
> Gavin
>
--
More information about the Devel
mailing list