Monitoring Cisco Routers
Hugo Rebello
hugo.rebello at br.danzas.com
Thu Mar 20 18:36:33 CET 2003
I installed the pre-req for Net::SNMP, but when running "./check_ifstatus -h
" command, show me :
****************************************************************************
**********************************************
[root at monitor libexec]# ./check_ifstatus -h
Use of uninitialized value in concatenation (.) or string at
/usr/lib/perl5/site_perl/5.8.0/Net/SNMP/Security/USM.pm line 88.
check_ifstatus plugin for Nagios monitors operational
status of each network interface (except PPP interfaces) on the target host
Usage:
-H (--hostname) Hostname to query - (required)
-C (--community) SNMP read community (defaults to public,
used with SNMP v1 and v2c
-v (--snmp_version) 1 for SNMP v1 (default)
2 for SNMP v2c
SNMP v2c will use get_bulk for less overhead
-p (--port) SNMP port (default 161)
-I (--ifmib) Agent supports IFMIB ifXTable. Do not use if
you don't know what this is.
-V (--version) Plugin version
-h (--help) usage help
check_ifstatus (nagios-plugins 1.3.0-beta3) 1.3
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
****************************************************************************
***********************************************
Why seem the message "Use of uninitialized value in concatenation (.) or
string at /usr/lib/perl5/site_perl/5.8.0/Net/SNMP/Security/USM.pm line 88."
?
Thank you.
Hugo
-----Original Message-----
From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
Sent: quinta-feira, 20 de março de 2003 13:12
To: Hugo Rebello
Cc: 'Nagios Users (E-mail) '
Subject: RE: [Nagios-users] Monitoring Cisco Routers
Looks like the pre-req for Net::SNMP were not installed..
(see attached)
Standard plugin way "-h"
[sghosh at slabgs plugins-scripts]$ ./check_ifstatus -h
check_ifstatus plugin for Nagios monitors operational
status of each network interface (except PPP interfaces) on the target
host
Usage:
-H (--hostname) Hostname to query - (required)
-C (--community) SNMP read community (defaults to public,
used with SNMP v1 and v2c
-v (--snmp_version) 1 for SNMP v1 (default)
2 for SNMP v2c
SNMP v2c will use get_bulk for less overhead
-p (--port) SNMP port (default 161)
-I (--ifmib) Agent supports IFMIB ifXTable. Do not use if
you don't know what this is.
-V (--version) Plugin version
-h (--help) usage help
On Thu, 20 Mar 2003, Hugo Rebello wrote:
> Please,
>
> How to alter snmp version ?
> I executed (./check_ifstatus -H "ip" -C "community") command and received
> the follow error:
>
> Use of uninitialized value in concatenation (.) or string at
> /usr/lib/perl5/site_perl/5.8.0/Net/SNMP/Security/USM.pm line 88.
> CRITICAL: No response from remote host '10.144.20.5' for
1.3.6.1.2.1.2.2.1.8
> with snmp version 1
>
> Thank you.
> Hugo
>
>
> -----Original Message-----
> From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
> Sent: quarta-feira, 19 de março de 2003 15:23
> To: Hugo Rebello
> Cc: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Monitoring Cisco Routers
>
>
> You can download the tar balls from your local CPAN mirror
>
> http://www.perl.com/CPAN/modules/by-authors/id/D/DT/DTOWN/
>
> The pre-req are:
> Crypt::DES
> Digest::MD5
> Digest::SHA1
> Digest::HMAC
>
> These can also be found on CPAN
>
> /CPAN/modules/by-category/14_Security_and_Encryption/Crypt
> /CPAN/modules/by-category/14_Security_and_Encryption/Digest
>
> -sg
>
> On Wed, 19 Mar 2003, Hugo Rebello wrote:
>
> > My Nagios machine doesn't has access to internet.
> > Can I install "Net::SNMP" of another way ?
> >
> > Thanks,
> > Hugo
> >
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net
> > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Subhendu
> > Ghosh
> > Sent: quarta-feira, 19 de março de 2003 10:15
> > To: David Adams; nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] Monitoring Cisco Routers
> >
> >
> >
> > Yes - missing a perl module...
> >
> > The correct one is Net::SNMP not SNMP
> >
> > perl -MCPAN -e'install Net::SNMP'
> >
> > There are some pre-req, but the install process should walk you through
> > those..
> >
> > -sg
> >
> > On Wed, 19 Mar 2003, Tomas Hautala wrote:
> >
> > > Looks like you are missing a perl module.
> > > Try the folowing.
> > >
> > > perl -MCPAN -e "install SNMP"
> > >
> > > hope this helps.
> > >
> > >
> > >
> > > ----------------------------------
> > > Tomas Hautala
> > > University of Växjö, It-department
> > > Phone:+46 (0)470 - 708515
> > > Cell:+46 (0)708 - 901066
> > > Mail:tomas.hautala at adm.vxu.se
> > >
> > >
> > >
> > > David Adams wrote:
> > > > Hi Everyone,
> > > >
> > > > Thanks for all the help so far. I am trying to run check_ifstatus
and
> > > > i'm getting the following error
> > > >
> > > > # ./check_ifstatus
> > > > Can't locate Net/SNMP.pm in @INC (@INC contains:
> > > > /usr/local/nagios/libexec /usr/libdata/perl5/i386-openbsd/5.6.1
> > > > /usr/local/libdata/perl5/i386-openbsd/5.6.1 /usr/libdata/perl5
> > > > /usr/local/libdata/perl5
> /usr/local/libdata/perl5/site_perl/i386-openbsd
> > > > /usr/libdata/perl5/site_perl/i386-openbsd
> > > > /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl
> > > > /usr/local/lib/perl5/site_perl .) at ./check_ifstatus line 35.
> > > > BEGIN failed--compilation aborted at ./check_ifstatus line 35.
> > > >
> > > > I installed net-snmp 5.0.8 *after *i installed nagios, could this be
> the
> > > > problem? I also had trouble installing net-snmp on openbsd3.0 and
had
> to
> > > > use options to exclude some of the MIB's.
> > > >
> > > > Has anyone else using openbsd run in to these problems?
> > > >
> > > > thanks
> > > >
> > > > Dave
> > > >
> > > > -----Original Message-----
> > > > *From:* Jon Lyons [mailto:jlyons30 at yahoo.com]
> > > > *Sent:* 18 March 2003 15:39
> > > > *To:* David Adams; nagios-users at lists.sourceforge.net
> > > > *Subject:* Re: [Nagios-users] Monitoring Cisco Routers
> > > >
> > > > Try the plugin check_ifstatus, work well for detecting link
> status.
> > > >
> > > > */David Adams <dadams at johncrowley.co.uk>/* wrote:
> > > >
> > > > Greetings all,
> > > >
> > > > Is there a way to monitor link states, interface states,
> > > > processor load etc on Cisco routers? I'm assuming this would
> > > > have to be done using check_snmp.
> > > > If that's how it's done, does anyone have any MIB's or link
to
> a
> > > > resource that could get me started? Of course, there is
always
> > > > the jackpot, has anyone made any plugins for Cisco kit ;-)
> > > >
> > > > Thanks
> > > >
> > > > Dave
> > > >
> > > >
> > >
>
------------------------------------------------------------------------
> > > > Do you Yahoo!?
> > > > Yahoo! Platinum
> > > >
> >
>
<http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.htm
> > l>
> > > > - Watch CBS' NCAA March Madness, live on your desktop
> > > >
> >
>
<http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.htm
> > l>!
> > >
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Does your code think in ink?
> > > You could win a Tablet PC. Get a free Tablet PC hat just for playing.
> > > What are you waiting for?
> > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> > > _______________________________________________
> > > 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: Does your code think in ink?
> > You could win a Tablet PC. Get a free Tablet PC hat just for playing.
> > What are you waiting for?
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> > _______________________________________________
> > 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: Tablet PC.
Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
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