BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: {bb} bb-xsnmp.pl 1.77



Hello,
 
I'm not sure if my email was lost or it's just no one knows the answer to it :(
The error line is coming from line 817 in bb-xsnmp.pl =>
 
    # Determine properties used in all tests
 
    # Send a query to determine what brand the machine is.
    print("  Checking enterprise and uptime for $host\n") if $debug;
    my $objectid = undef;
    my $enterprise = undef;
    my $uptime = undef;
 
    if (my $result = $snmpsession->get_request(-varbindlist =>
                       [$snmpoids{'sysObjectID'},$snmpoids{'sysUpTime'}])) {
      $uptime = $result->{$snmpoids{'sysUpTime'}};
      $objectid = $result->{$snmpoids{'sysObjectID'}};
      (my $brandnum = substr($objectid,length($snmpoids{'enterprises'})+1)) =~ s/\..*$//;
      if (exists($enterprisenumbers{$brandnum})) {
        $enterprise = $enterprisenumbers{$brandnum};
      } else {
        print("Unknown enterprise number '$brandnum' in ObjectID '$objectid'\n");
        next;
      }
    } else {
      print((caller(0))[3].": SNMP get request failed for '$host': ".$snmpsession->error()."\n");
      return;
    }
 
 
Thank you!!
Olga.

From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Jagilya
Sent: Tuesday, December 28, 2004 3:27 AM
To: bb@bb4.com
Subject: RE: {bb} bb-xsnmp.pl 1.77

Hello, Ben, thank you for ur reply.

Well, bb-xsnmptab is here, I tried all the commented out lines also, wasn't sure - IP or hostname works =>

10.1.0.1 : my_string : l4 cpu fans power temperature ports
10.1.0.201 : my_string : l4 cpu fans power temperature ports
10.1.0.3 : my_string : l4 cpu fans power temperature ports
#vpn-gw.company.com : my_string : l4 cpu fans power temperature ports
#vpn-gw.company.com : my_string : cpu fans power temperature memory ports

-----Original Message-----
From: owner-bb@bb4.com on behalf of Ben Pitzer
Sent: Sun 12/26/2004 12:02 AM
To: bb@bb4.com
Cc:
Subject: Re: {bb} bb-xsnmp.pl 1.77

Olga,

What does your bb-xsnmptab file look like?  Can you give an example?
Make sure to leave out any community strings when you send us
something, of course.

Thanks,
Ben Pitzer


On Fri, 24 Dec 2004 01:57:00 -0500, Jagilya <Jagilya@comcast.net> wrote:

> Hello,
>  
> On Linux Red Hat Enterprise Linux WS release 3, BB1.9e.
> I just installed the script as it said in the README.
> But, then I get this at BBOUT =>
>  
>         Thu Dec 23 16:20:37 2004 bb-xsnmp.pl main::main: SNMP get request
> failed for '10.1.0.3': No response from remote host '10.1.0.3'
>  
> If I try to run it from command line, I get this =>
>  
>     [root@bb ext]# ./bb-xsnmp.pl
>     /usr/local/bb/bb/bin/bb-combo.sh start
>     main::main: SNMP get request failed for '10.1.0.3': No response from
> remote host '10.1.0.3'
>     [root@bb ext]#
>  
> I can run "snmpwalk -v1 -c comm_string 10.1.0.3" and I get all the results
> correctly. I'm running mrtg/routermon with no problems. But whatever
> switch/router/pix I put in bb-xsnmptab, I always get the same result. Any
> one has any ideas what it could be? I looked around in the archives -
> everyone had different problems from this one... Maybe I missed something?
>  
> Thank you!
> Olga


Home | Main Index | Thread Index