Operating System - HP-UX
1825195 Members
4649 Online
109679 Solutions
New Discussion юеВ

Can't locate object method "session" via package "Net::SNMP"

 
CRAZY SANTHOSH
Occasional Advisor

Can't locate object method "session" via package "Net::SNMP"

Hi Folks,

I am porting Nagios Product on HP-UX and one of the deliverable is dependent on Net::SNMP ...

I have manually built the Net::SNMP perl module by taking the net-snmp source file and when i check the deliverable called(check_ifoperstatus) its giving error

Can't locate object method "session" via package "Net::SNMP"

command executed was ./check_ifoperstatus -k 1 -H localhost

I am also sending the check_ifoperstatus deliverable which is perl script ...

Please help me to rersolve this problem ..

Thanks in Advance

--Regards
Santhosh
4 REPLIES 4
Rasheed Tamton
Honored Contributor

Re: Can't locate object method "session" via package "Net::SNMP"

Hi Santhosh,

As Net::SNMP is a pure perl stuff it might be better to check in perl or Nagios related forums to solve it quickly.

Please see the below link:

http://www.nagiosexchange.org/nagiosplug-devel.31.0.html?&tx_maillisttofaq_pi1%5Bmode%5D=1&tx_maillisttofaq_pi1%5BshowUid%5D=131

Regards,
Rasheed Tamton.
CRAZY SANTHOSH
Occasional Advisor

Re: Can't locate object method "session" via package "Net::SNMP"

Hi All,

Problem got resolved ... I installed Net::SNMP perl module by using Command perl -MCPAN -e "install Net::SNMP"

--Regards
Santhosh
CRAZY SANTHOSH
Occasional Advisor

Re: Can't locate object method "session" via package "Net::SNMP"

Problem got resoleved and Thank you to one and all
Ralph Grothe
Honored Contributor

Re: Can't locate object method "session" via package "Net::SNMP"

Because it may have escaped your notice,
HP have already ported Nagios (partially, one should add) recently.
It's now available in their Internet Express collection of OpenSource software.

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111

But compiling your own nagios and plug-ins is of course preferable.
Besides, if your nagios server doesn't run any SNMP checks (or check_ifoperstatus) then there's no need to have net-snmp or Net::SNMP installed.
These are only required for the SNMP related Nagios plug-ins.

Madness, thy name is system administration