checking BGP states on Cisco routers
Mike McClure
mmcclure at pneservices.com
Wed Sep 24 23:23:40 CEST 2003
Did you install it via CPAN, like Subhendu described?
The way I described to fix it was wrong.
> I resolved one issues with net-snmp and have run into another trying to use
> check_bgpstate.pl.
>
> ./check_bgpstate.pl -c {community} -p 161 {ip_address}
>
> Can't locate object method "session" via package "Net::SNMP" (perhaps you
> forgot to load "Net::SNMP"?) at ./check_bgpstate.pl line 127.
>
> Any suggestion? I'm lost.
>
> TIA,
>
> /JC
>
> -----Original Message-----
> From: Mike McClure [mailto:mmcclure at pneservices.com]
> Sent: Thursday, September 18, 2003 5:24 PM
> To: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] checking BGP states on Cisco routers
>
> SNMP.pm does not appear to be in the correct place. How did you install it?
>
> Anyway, this should fix your problem:
>
> cd /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> mkdir Net
> cd Net
> ln -s ../SNMP.pm .
>
>
>> Can anyone answer this? When I use the check_bgpstate.pl script I get the
>> error below. Net-SNMP is installed and SNMP.pm is in
>> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/SNMP.pm.
>>
>> Do I need to modify the script in some way?
>>
>> TIA!
>>
>> ./check_bgpstate.pl x.x.x.x -c commnity
>> Can't locate Net/SNMP.pm in @INC (@INC contains:
>> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
>> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
>> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
>> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
>> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
>> ./check_bgpstate.pl line 30.
>> BEGIN failed--compilation aborted at ./check_bgpstate.pl line 30.
>>
>>
>>
>> On Thu, 18 Sep 2003, J.C. Hall wrote:
>>
>>> Thank you to those who responded. I admit I am a newbie :-( to this!
>>>
>>> I found check_bgpstate.pl in the contrib/ dir. My question now is must
> it
>>> be compiled, or what do I do to integrate it with Nagios to my libexec/
>> dir?
>>> Is that a dumb question?
>>
>> It's a perl script.. you can just copy it over. If it fails to work, just
>> check the first line of the script (load it into a text editor) and make
>> sure
>> the path to perl is correct.
>>
>> --
>> Matt Pounsett CIRA - Canadian Internet Registration
>> Authority
>> Technical Support Programmer 350 Sparks Street, Suite
>> 1110
>> matt.pounsett at cira.ca Ottawa, Ontario,
>> Canada
>> 613.237.5335 ext. 231
>> http://www.cira.ca
>>
>>
>>
>> -------------------------------------------------------
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>>
>> -------------------------------------------------------
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any
>> issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>>
>
>
> --
> Mike McClure, CCIE # 5125, CISSP # 30232
> PNE Services, Inc. - http://www.pneservices.com
> mmcclure [at] pneservices [dot] com
> mobile: 913-636-5590
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any
> issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
--
Mike McClure, CCIE # 5125, CISSP # 30232
PNE Services, Inc. - http://www.pneservices.com
mmcclure [at] pneservices [dot] com
mobile: 913-636-5590
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list