Joe McGuckin | 1 Aug 2005 18:48
Favicon

Mtargets question

Can I create an mtargets from targets on different pages? E.g. Sum the
totals of port '1' on 3 different ethernet switches?

Examples?

Thanks!

Joe

--

-- 

Joe McGuckin

ViaNet Communications
994 San Antonio Road
Palo Alto, CA  94303

Phone: 650-213-1302
Cell:  650-207-0372
Fax:   650-969-2124

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Marc Powell | 1 Aug 2005 18:56
Favicon

RE: Mtargets question


> -----Original Message-----
> From: cricket-users-admin <at> lists.sourceforge.net [mailto:cricket-users-
> admin <at> lists.sourceforge.net] On Behalf Of Joe McGuckin
> Sent: Monday, August 01, 2005 11:49 AM
> To: cricket-users <at> lists.sourceforge.net
> Subject: [cricket-users] Mtargets question
> 
> Can I create an mtargets from targets on different pages? E.g. Sum the
> totals of port '1' on 3 different ethernet switches?
> 

Yes.

> Examples?

http://news.gmane.org/gmane.network.cricket.user

See my post in response to 'mtargets working?' on July 26th. It's third
from the top currently.

--
Marc

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
(Continue reading)

Ed Ravin | 2 Aug 2005 16:19
Picon
Favicon

Re: Cricket and Perl5.8.7 on FreeBSD 5.4-STABLE

On Tue, Aug 02, 2005 at 10:26:52AM +0400, Pavel A Crasotin wrote:
> Hello all -
> 
> We are using Cricket 1.0.5 from ports on FreeBSD 5.4-STABLE.
> After upgrading Perl to 5.8.7 version Cricket fails on compile:
> 
> /usr/local/cricket/cricket/compile
> [02-Aug-2005 10:14:08 ] Log level changed from warn to info.
> [02-Aug-2005 10:14:08 ] Starting compile: Cricket version 1.0.5 (2004-03-28)
> [02-Aug-2005 10:14:08 ] Config directory is /usr/local/cricket/cricket-config
> Bus error
> 
> After little investigation I've found out the problem is in
> Text::ParseWords::quotewords in lib/ConfigTree/Node.pm, subroutine
> parseLines.

Test::ParseWords is buggy - we had the same problem with the Mon project.
Try increasing the ulimit for stack size before running the collector.
Failing that, we should use different code - in Mon, the developers ended
up coding a different parsing routine so they could dump that module.

   http://www.mail-archive.com/mon <at> linux.kernel.org/msg01272.html

> But before FreeBSD fix this problem I think it's reasonable to change
> slightly Node.pm to workaround this problem.
> Is it possible?

As I said before, it worked for the Mon developers.

	-- Ed
(Continue reading)

Patrick Topping | 1 Aug 2005 20:42

Error with the collector

I have been trying to get a new install of cricket up and running but I am running into issues when testing the collector.  GenRtrConfig runs fine and builds the targets file but when I test the collector against it I get the errors listed below.  Any help or suggestions would be greatlt appreciated.  Thanks in advance.

-Patrick

-----------------------

[01-Aug-2005 11:29:51 ] Log level changed from warn to info.
[01-Aug-2005 11:29:51 ] Starting collector: Cricket version 1.0.5 (2004-03-28)
[01-Aug-2005 11:29:51*] Found unknown tag 'dataDir' during expansion of '%dataDir%/%auto-t...'.
[01-Aug-2005 11:29:51*] No ds tag found for target type foundry-generic-router.
[01-Aug-2005 11:29:51*] Found unknown tag 'dataDir' during expansion of '%dataDir%/%auto-t...'.
Use of uninitialized value in hash element at ././lib/Common/Map.pm line 136.
Use of uninitialized value in substitution (s///) at ././lib/Common/Map.pm line 149.
Use of uninitialized value in concatenation (.) or string at ././lib/Common/Map.pm line 153.
[01-Aug-2005 11:29:51 ] Walking ifDescr for  to resolve interface-name mapping
Use of uninitialized value in hash element at ././lib/snmpUtils.pm line 47.
Use of uninitialized value in string eq at ././lib/snmpUtils.pm line 61.
[01-Aug-2005 11:29:51*] Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.8.5/SNMP_util.pm line 383.
Use of uninitialized value in hash element at ././lib/Common/Map.pm line 188.
[01-Aug-2005 11:29:51*] Failed to map instance for gigabitethernet1_1. Instance is now set to nothing.
[01-Aug-2005 11:29:51*] Found unknown tag 'snmp' during expansion of 'snmp://%snmp%/ifH...'.
[01-Aug-2005 11:29:51*] Found unknown tag 'snmp' during expansion of 'snmp://%snmp%/ifH...'.

Merrett Willett | 3 Aug 2005 06:53

monitor quotient Couldn't fetch value

All,

I'm working on setting up thresholds, and I haven't seen this particular
question in the archives.
If the errors on the interface collected are 0, and you have a quotient
threshold, should you get this error when its checking?

[03-Aug-2005 00:33:54 ] in rrdFetch: file is
~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
car00buk/gigabitethernet7_0_0.rrd
[03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
[03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 2
[03-Aug-2005 00:33:54 ] in rrdFetch: return is 0
[03-Aug-2005 00:33:54*] Monitor: Couldn't fetch value for 0 seconds ago
from . <##############ERROR################
[03-Aug-2005 00:33:54 ]
/Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0 -
ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : MAIL : Mail  :
me\ <at> spam passed.

Most of the collector debug

[03-Aug-2005 00:33:53 ] target gigabitethernet7_0_0
--mapkey-- = interface-name
--verify-mapkey-- = interface-name
inst = 60
interface-name = GigabitEthernet7/0/0
monitor-thresholds = ifHCInOctets : value : 62500 : 40000000 : MAIL :
Mail  : me\ <at> spam,
               ifHCOutOctets : value : 62500 : 40000000 : MAIL : Mail :
me\ <at> spam,
               ifInErrors : quotient : 0.1 pct : : ifInUcastPackets :
MAIL : Mail  : me <at> spam,
               ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets :
MAIL : Mail  : me <at> spam

[03-Aug-2005 00:33:53 ] Retrieving data for target gigabitethernet7_0_0
(60) (standard-interface)
[03-Aug-2005 00:33:53 ] ds0 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifHCInOctets.60
[03-Aug-2005 00:33:53 ] ds1 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifHCOutOctets.60
[03-Aug-2005 00:33:53 ] ds2 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifInErrors.60
[03-Aug-2005 00:33:53 ] ds3 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifOutErrors.60
[03-Aug-2005 00:33:53 ] ds4 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifInUcastPkts.60
[03-Aug-2005 00:33:53 ] ds5 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifOutUcastPkts.60
[03-Aug-2005 00:33:53 ] ds6 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/1.3.6.1.2.1.2.2.1.2.60
[03-Aug-2005 00:33:53 ] Getting from xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2
1.3.6.1.2.1.31.1.1.1.6.60 1.3.6.1.2.1.31.1.1.1.10.60
1.3.6.1.2.1.2.2.1.14.60 1.3.6.1.2.1.2.2.1.20.60 1.3.6.1.2.1.2.2.1.11.60
1.3.6.1.2.1.2.2.1.17.60 1.3.6.1.2.1.2.2.1.2.60
[03-Aug-2005 00:33:53 ] Got: 74058164656559 71358882314014 0 0
3525266147 4045710736 GigabitEthernet7/0/0
[03-Aug-2005 00:33:53 ] Retrieved data for gigabitethernet7_0_0 (60):
74058164656559,71358882314014,0,0,3525266147,4045710736
[03-Aug-2005 00:33:53 ] Processing
/Atlanta/atl-router-interfaces/car00buk/gigabitethernet8_0_0...
[03-Aug-2005 00:33:53 ] Preparing map(interface-name)
[03-Aug-2005 00:33:53 ] Evaling inst which is: 0

SKIP a little ..
[03-Aug-2005 00:33:54 ] in rrdFetch: file is
~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
car00buk/gigabitethernet7_0_0.rrd
[03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
[03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 2
[03-Aug-2005 00:33:54 ] in rrdFetch: return is 0
[03-Aug-2005 00:33:54*] Monitor: Couldn't fetch value for 0 seconds ago
from .
[03-Aug-2005 00:33:54 ]
/Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0 -
ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : MAIL : Mail  :
me\ <at> spam passed.
[03-Aug-2005 00:33:54 ] in rrdFetch: file is
~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
car00buk/gigabitethernet7_0_0.rrd
[03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
[03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 3
[03-Aug-2005 00:33:54 ] in rrdFetch: return is 0
[03-Aug-2005 00:33:54*] Monitor: Couldn't fetch value for 0 seconds ago
from .
[03-Aug-2005 00:33:54 ]
/Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0 -
ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets : MAIL : Mail  :
me\ <at> spam passed.

Thanks,
Merrett

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
Merrett Willett | 4 Aug 2005 05:54

RE: monitor quotient Couldn't fetch value

Running through code and completing a number of more tests I've narrowed
it down, but true root cause still unknown.
(FYI the quotient failure using ucast packets happens for all my
targets, not just one)

For some reason, the subroutine getDSNum is able to pull ds# for:
ifHCInOctets
ifHCOutOctets
ifInErrors
ifOutErrors

But not:
ifInUcastPkts
ifOutUcastPkts

The quotient fails since it is using one of the Ucast variables;

They fail at the undefined return from rrdFetch:
sub rrdFetch {
    my($self,$datafile,$dsNum,$sec) =  <at> _;
    # check all of our arguments;
    return if (!defined($dsNum));

I've been able to hack/follow the code up to this point, but I'm getting
lost in the getDSNum function.

Can anyone provide some ideas as to why it would not pull the ds value
for ucast even though they are there, they graph and summaries are
available?

Thanks,
Merrett

getDSNnum subroutine:

# Given a target reference and datasource name,
# returns the datasource number or undef if no
# datasource of that name can be found in target's
# target-type dictionary
sub getDSNum {
    my($self, $target, $dsName) =  <at> _;
    my($ttRef) = $Common::global::gCT->configHash(
                                 join('/',$target->{'auto-target-path'},
                                      $target->{'auto-target-name'}),
                                                  'targettype',

lc($target->{'target-type'}),
                                                  $target);
    my($Counter) = 0;
    my(%dsMap) = map { $_ => $Counter++ }
split(/\s*,\s*/,$ttRef->{'ds'});

    return $dsMap{$dsName};

}

-----Original Message-----
From: cricket-users-admin <at> lists.sourceforge.net
[mailto:cricket-users-admin <at> lists.sourceforge.net] On Behalf Of Merrett
Willett
Sent: Wednesday, August 03, 2005 12:54 AM
To: cricket-users <at> lists.sourceforge.net
Subject: [cricket-users] monitor quotient Couldn't fetch value

All,

I'm working on setting up thresholds, and I haven't seen this particular
question in the archives. If the errors on the interface collected are
0, and you have a quotient threshold, should you get this error when its
checking?

[03-Aug-2005 00:33:54 ] in rrdFetch: file is
~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
car00buk/gigabitethernet7_0_0.rrd
[03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
[03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 2
[03-Aug-2005 00:33:54 ] in rrdFetch: return is 0 [03-Aug-2005 00:33:54*]
Monitor: Couldn't fetch value for 0 seconds ago from .
<##############ERROR################
[03-Aug-2005 00:33:54 ]
/Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0 -
ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : MAIL : Mail  :
me\ <at> spam passed.

Most of the collector debug

[03-Aug-2005 00:33:53 ] target gigabitethernet7_0_0
--mapkey-- = interface-name
--verify-mapkey-- = interface-name
inst = 60
interface-name = GigabitEthernet7/0/0
monitor-thresholds = ifHCInOctets : value : 62500 : 40000000 : MAIL :
Mail  : me\ <at> spam,
               ifHCOutOctets : value : 62500 : 40000000 : MAIL : Mail :
me\ <at> spam,
               ifInErrors : quotient : 0.1 pct : : ifInUcastPackets :
MAIL : Mail  : me <at> spam,
               ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets :
MAIL : Mail  : me <at> spam

[03-Aug-2005 00:33:53 ] Retrieving data for target gigabitethernet7_0_0
(60) (standard-interface)
[03-Aug-2005 00:33:53 ] ds0 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifHCInOctets.60
[03-Aug-2005 00:33:53 ] ds1 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifHCOutOctets.60
[03-Aug-2005 00:33:53 ] ds2 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifInErrors.60
[03-Aug-2005 00:33:53 ] ds3 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifOutErrors.60
[03-Aug-2005 00:33:53 ] ds4 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifInUcastPkts.60
[03-Aug-2005 00:33:53 ] ds5 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifOutUcastPkts.60
[03-Aug-2005 00:33:53 ] ds6 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/1.3.6.1.2.1.2.2.1.2.60
[03-Aug-2005 00:33:53 ] Getting from xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2
1.3.6.1.2.1.31.1.1.1.6.60 1.3.6.1.2.1.31.1.1.1.10.60
1.3.6.1.2.1.2.2.1.14.60 1.3.6.1.2.1.2.2.1.20.60 1.3.6.1.2.1.2.2.1.11.60
1.3.6.1.2.1.2.2.1.17.60 1.3.6.1.2.1.2.2.1.2.60 [03-Aug-2005 00:33:53 ]
Got: 74058164656559 71358882314014 0 0 3525266147 4045710736
GigabitEthernet7/0/0 [03-Aug-2005 00:33:53 ] Retrieved data for
gigabitethernet7_0_0 (60):
74058164656559,71358882314014,0,0,3525266147,4045710736
[03-Aug-2005 00:33:53 ] Processing
/Atlanta/atl-router-interfaces/car00buk/gigabitethernet8_0_0...
[03-Aug-2005 00:33:53 ] Preparing map(interface-name) [03-Aug-2005
00:33:53 ] Evaling inst which is: 0

SKIP a little ..
[03-Aug-2005 00:33:54 ] in rrdFetch: file is
~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
car00buk/gigabitethernet7_0_0.rrd
[03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
[03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 2
[03-Aug-2005 00:33:54 ] in rrdFetch: return is 0 [03-Aug-2005 00:33:54*]
Monitor: Couldn't fetch value for 0 seconds ago from . [03-Aug-2005
00:33:54 ] /Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0
- ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : MAIL : Mail  :
me\ <at> spam passed. [03-Aug-2005 00:33:54 ] in rrdFetch: file is
~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
car00buk/gigabitethernet7_0_0.rrd
[03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
[03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 3
[03-Aug-2005 00:33:54 ] in rrdFetch: return is 0 [03-Aug-2005 00:33:54*]
Monitor: Couldn't fetch value for 0 seconds ago from . [03-Aug-2005
00:33:54 ] /Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0
- ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets : MAIL : Mail
: me\ <at> spam passed.

Thanks,
Merrett

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
_______________________________________________
cricket-users mailing list
cricket-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cricket-users

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Renata Vidal | 4 Aug 2005 16:42
Picon

Re: cricket-users digest, Vol 1 #1931 - 1 msg

I think the correct syntax is:
ifOutErrors : quotient : 0.1 pct :  : ifOutUcastPackets :  :MAIL : Mail  :
me\ <at> spam 

or 

ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets : 900 : MAIL : Mail  :
me\ <at> spam

and not

ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets : MAIL : Mail  :
me\ <at> spam passed

because you can tell what is the step, you can use for instance 900,
but if you left it blank it use the cricket default (I think it is 300
seconds).

Renata Vidal

On 8/4/05, cricket-users-request <at> lists.sourceforge.net
<cricket-users-request <at> lists.sourceforge.net> wrote:
> Send cricket-users mailing list submissions to
>        cricket-users <at> lists.sourceforge.net
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.sourceforge.net/lists/listinfo/cricket-users
> or, via email, send a message with subject or body 'help' to
>        cricket-users-request <at> lists.sourceforge.net
> 
> You can reach the person managing the list at
>        cricket-users-admin <at> lists.sourceforge.net
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cricket-users digest..."
> 
> 
> Today's Topics:
> 
>   1. monitor quotient Couldn't fetch value (Merrett Willett)
> 
> --__--__--
> 
> Message: 1
> Date: Wed, 3 Aug 2005 00:53:57 -0400
> From: "Merrett Willett" <Merrett.Willett <at> cbeyond.net>
> To: <cricket-users <at> lists.sourceforge.net>
> Subject: [cricket-users] monitor quotient Couldn't fetch value
> 
> All,
> 
> I'm working on setting up thresholds, and I haven't seen this particular
> question in the archives.
> If the errors on the interface collected are 0, and you have a quotient
> threshold, should you get this error when its checking?
> 
> [03-Aug-2005 00:33:54 ] in rrdFetch: file is
> ~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
> car00buk/gigabitethernet7_0_0.rrd
> [03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
> [03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 2
> [03-Aug-2005 00:33:54 ] in rrdFetch: return is 0
> [03-Aug-2005 00:33:54*] Monitor: Couldn't fetch value for 0 seconds ago
> from . <##############ERROR################
> [03-Aug-2005 00:33:54 ]
> /Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0 -
> ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : MAIL : Mail  :
> me\ <at> spam passed.
> 
> 
> 
> 
> 
> Most of the collector debug
> 
> [03-Aug-2005 00:33:53 ] target gigabitethernet7_0_0
> --mapkey-- =3D interface-name
> --verify-mapkey-- =3D interface-name
> inst =3D 60
> interface-name =3D GigabitEthernet7/0/0
> monitor-thresholds =3D ifHCInOctets : value : 62500 : 40000000 : MAIL :
> Mail  : me\ <at> spam,
>               ifHCOutOctets : value : 62500 : 40000000 : MAIL : Mail :
> me\ <at> spam,
>               ifInErrors : quotient : 0.1 pct : : ifInUcastPackets :
> MAIL : Mail  : me <at> spam,
>               ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets :
> MAIL : Mail  : me <at> spam
> 
> 
> [03-Aug-2005 00:33:53 ] Retrieving data for target gigabitethernet7_0_0
> (60) (standard-interface)
> [03-Aug-2005 00:33:53 ] ds0 is:
> //xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifHCInOctets.60
> [03-Aug-2005 00:33:53 ] ds1 is:
> //xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifHCOutOctets.60
> [03-Aug-2005 00:33:53 ] ds2 is:
> //xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifInErrors.60
> [03-Aug-2005 00:33:53 ] ds3 is:
> //xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifOutErrors.60
> [03-Aug-2005 00:33:53 ] ds4 is:
> //xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifInUcastPkts.60
> [03-Aug-2005 00:33:53 ] ds5 is:
> //xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifOutUcastPkts.60
> [03-Aug-2005 00:33:53 ] ds6 is:
> //xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/1.3.6.1.2.1.2.2.1.2.60
> [03-Aug-2005 00:33:53 ] Getting from xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2
> 1.3.6.1.2.1.31.1.1.1.6.60 1.3.6.1.2.1.31.1.1.1.10.60
> 1.3.6.1.2.1.2.2.1.14.60 1.3.6.1.2.1.2.2.1.20.60 1.3.6.1.2.1.2.2.1.11.60
> 1.3.6.1.2.1.2.2.1.17.60 1.3.6.1.2.1.2.2.1.2.60
> [03-Aug-2005 00:33:53 ] Got: 74058164656559 71358882314014 0 0
> 3525266147 4045710736 GigabitEthernet7/0/0
> [03-Aug-2005 00:33:53 ] Retrieved data for gigabitethernet7_0_0 (60):
> 74058164656559,71358882314014,0,0,3525266147,4045710736
> [03-Aug-2005 00:33:53 ] Processing
> /Atlanta/atl-router-interfaces/car00buk/gigabitethernet8_0_0...
> [03-Aug-2005 00:33:53 ] Preparing map(interface-name)
> [03-Aug-2005 00:33:53 ] Evaling inst which is: 0
> 
> SKIP a little ..
> [03-Aug-2005 00:33:54 ] in rrdFetch: file is
> ~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
> car00buk/gigabitethernet7_0_0.rrd
> [03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
> [03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 2
> [03-Aug-2005 00:33:54 ] in rrdFetch: return is 0
> [03-Aug-2005 00:33:54*] Monitor: Couldn't fetch value for 0 seconds ago
> from .
> [03-Aug-2005 00:33:54 ]
> /Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0 -
> ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : MAIL : Mail  :
> me\ <at> spam passed.
> [03-Aug-2005 00:33:54 ] in rrdFetch: file is
> ~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
> car00buk/gigabitethernet7_0_0.rrd
> [03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
> [03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 3
> [03-Aug-2005 00:33:54 ] in rrdFetch: return is 0
> [03-Aug-2005 00:33:54*] Monitor: Couldn't fetch value for 0 seconds ago
> from .
> [03-Aug-2005 00:33:54 ]
> /Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0 -
> ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets : MAIL : Mail  :
> me\ <at> spam passed.
> 
> Thanks,
> Merrett
> 
> 
> 
> --__--__--
> 
> _______________________________________________
> cricket-users mailing list
> cricket-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cricket-users
> 
> 
> End of cricket-users Digest
>

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Merrett Willett | 4 Aug 2005 21:23

RE: monitor quotient Couldn't fetch value

Fixed
Quick answer is quotient/Mail syntax, below is the correct format:

ifInErrors  : quotient : %inerrpct%  : : ifInUcastPackets  : 0 : MAIL :
Mail  : %email_list%
ifOutErrors : quotient : %outerrpct% : : ifOutUcastPackets : 0 : MAIL :
Mail  : %email_list%

Longer story is:

Somewhere while troubleshooting, I changed to the ds-source name, which
by default is ifInUcastPkts and not the datasource which is
ifOutUcastPackets (notice packets is spelled out on one).  If worked for
in/out octets and in/out errors as the ds-source and datasource are
named the same, but not ucast because they are spelled different.  Thus
when I tried to query the wrong name, the subroutine errored out and
gave an error (may be nice in the future if rrdFetch returned an error
along with undefined in the future - not complaining, just sayin).  The
other was the time variable missing.

Merrett

-----Original Message-----
From: Merrett Willett 
Sent: Wednesday, August 03, 2005 11:55 PM
To: Merrett Willett; cricket-users <at> lists.sourceforge.net
Subject: RE: [cricket-users] monitor quotient Couldn't fetch value

Running through code and completing a number of more tests I've narrowed
it down, but true root cause still unknown. (FYI the quotient failure
using ucast packets happens for all my targets, not just one)

For some reason, the subroutine getDSNum is able to pull ds# for:
ifHCInOctets ifHCOutOctets ifInErrors ifOutErrors

But not:
ifInUcastPkts
ifOutUcastPkts

The quotient fails since it is using one of the Ucast variables;

They fail at the undefined return from rrdFetch:
sub rrdFetch {
    my($self,$datafile,$dsNum,$sec) =  <at> _;
    # check all of our arguments;
    return if (!defined($dsNum));

I've been able to hack/follow the code up to this point, but I'm getting
lost in the getDSNum function.

Can anyone provide some ideas as to why it would not pull the ds value
for ucast even though they are there, they graph and summaries are
available?

Thanks,
Merrett

getDSNnum subroutine:

# Given a target reference and datasource name,
# returns the datasource number or undef if no
# datasource of that name can be found in target's
# target-type dictionary
sub getDSNum {
    my($self, $target, $dsName) =  <at> _;
    my($ttRef) = $Common::global::gCT->configHash(
                                 join('/',$target->{'auto-target-path'},
                                      $target->{'auto-target-name'}),
                                                  'targettype',

lc($target->{'target-type'}),
                                                  $target);
    my($Counter) = 0;
    my(%dsMap) = map { $_ => $Counter++ }
split(/\s*,\s*/,$ttRef->{'ds'});

    return $dsMap{$dsName};

}

-----Original Message-----
From: cricket-users-admin <at> lists.sourceforge.net
[mailto:cricket-users-admin <at> lists.sourceforge.net] On Behalf Of Merrett
Willett
Sent: Wednesday, August 03, 2005 12:54 AM
To: cricket-users <at> lists.sourceforge.net
Subject: [cricket-users] monitor quotient Couldn't fetch value

All,

I'm working on setting up thresholds, and I haven't seen this particular
question in the archives. If the errors on the interface collected are
0, and you have a quotient threshold, should you get this error when its
checking?

[03-Aug-2005 00:33:54 ] in rrdFetch: file is
~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
car00buk/gigabitethernet7_0_0.rrd
[03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
[03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 2
[03-Aug-2005 00:33:54 ] in rrdFetch: return is 0 [03-Aug-2005 00:33:54*]
Monitor: Couldn't fetch value for 0 seconds ago from .
<##############ERROR################
[03-Aug-2005 00:33:54 ]
/Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0 -
ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : MAIL : Mail  :
me\ <at> spam passed.

Most of the collector debug

[03-Aug-2005 00:33:53 ] target gigabitethernet7_0_0
--mapkey-- = interface-name
--verify-mapkey-- = interface-name
inst = 60
interface-name = GigabitEthernet7/0/0
monitor-thresholds = ifHCInOctets : value : 62500 : 40000000 : MAIL :
Mail  : me\ <at> spam,
               ifHCOutOctets : value : 62500 : 40000000 : MAIL : Mail :
me\ <at> spam,
               ifInErrors : quotient : 0.1 pct : : ifInUcastPackets :
MAIL : Mail  : me <at> spam,
               ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets :
MAIL : Mail  : me <at> spam

[03-Aug-2005 00:33:53 ] Retrieving data for target gigabitethernet7_0_0
(60) (standard-interface)
[03-Aug-2005 00:33:53 ] ds0 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifHCInOctets.60
[03-Aug-2005 00:33:53 ] ds1 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifHCOutOctets.60
[03-Aug-2005 00:33:53 ] ds2 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifInErrors.60
[03-Aug-2005 00:33:53 ] ds3 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifOutErrors.60
[03-Aug-2005 00:33:53 ] ds4 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifInUcastPkts.60
[03-Aug-2005 00:33:53 ] ds5 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/ifOutUcastPkts.60
[03-Aug-2005 00:33:53 ] ds6 is:
//xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2/1.3.6.1.2.1.2.2.1.2.60
[03-Aug-2005 00:33:53 ] Getting from xxxxx <at> car00buk.atl0:161:2.0:5:1.0:2
1.3.6.1.2.1.31.1.1.1.6.60 1.3.6.1.2.1.31.1.1.1.10.60
1.3.6.1.2.1.2.2.1.14.60 1.3.6.1.2.1.2.2.1.20.60 1.3.6.1.2.1.2.2.1.11.60
1.3.6.1.2.1.2.2.1.17.60 1.3.6.1.2.1.2.2.1.2.60 [03-Aug-2005 00:33:53 ]
Got: 74058164656559 71358882314014 0 0 3525266147 4045710736
GigabitEthernet7/0/0 [03-Aug-2005 00:33:53 ] Retrieved data for
gigabitethernet7_0_0 (60):
74058164656559,71358882314014,0,0,3525266147,4045710736
[03-Aug-2005 00:33:53 ] Processing
/Atlanta/atl-router-interfaces/car00buk/gigabitethernet8_0_0...
[03-Aug-2005 00:33:53 ] Preparing map(interface-name) [03-Aug-2005
00:33:53 ] Evaling inst which is: 0

SKIP a little ..
[03-Aug-2005 00:33:54 ] in rrdFetch: file is
~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
car00buk/gigabitethernet7_0_0.rrd
[03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
[03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 2
[03-Aug-2005 00:33:54 ] in rrdFetch: return is 0 [03-Aug-2005 00:33:54*]
Monitor: Couldn't fetch value for 0 seconds ago from . [03-Aug-2005
00:33:54 ] /Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0
- ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : MAIL : Mail  :
me\ <at> spam passed. [03-Aug-2005 00:33:54 ] in rrdFetch: file is
~/cricket/cricket-config/../cricket-data//Atlanta/atl-router-interfaces/
car00buk/gigabitethernet7_0_0.rrd
[03-Aug-2005 00:33:54 ] in rrdFetch: skipping RRA
[03-Aug-2005 00:33:54 ] in rrdFetch: rraNum is 0 rowNum is 0 dsNum is 3
[03-Aug-2005 00:33:54 ] in rrdFetch: return is 0 [03-Aug-2005 00:33:54*]
Monitor: Couldn't fetch value for 0 seconds ago from . [03-Aug-2005
00:33:54 ] /Atlanta/atl-router-interfaces/car00buk/gigabitethernet7_0_0
- ifOutErrors : quotient : 0.1 pct : : ifOutUcastPackets : MAIL : Mail
: me\ <at> spam passed.

Thanks,
Merrett

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
_______________________________________________
cricket-users mailing list
cricket-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cricket-users

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Treptow, Craig | 5 Aug 2005 15:35
Favicon

Monitor threshold behaving incorrectly

Hi.  We are running Cricket 1.0.5.  We have memory used monitoring in place for our Cisco switches.  We are testing the thresholds and have them configured to email only.  However, for three devices, it sends a trap instead of email.

The meta file (switch-mem.meta) for the data shows:

ciscoMemoryPoolUsed : value : n : 59810775 : MAIL 1123245787 failure value 61745
473.92
ciscoMemoryPoolUsed : value : n : 45738885 : MAIL : /usr/bin/mailx : nmsmessages
\ <at> exchange.principal.com 1123245787 failure value 61745473.92
last-inst1

The config file shows:

target switch-mem
   inst                 = map(mem-stats)
   interface-name       = switch-mem
   long-desc            = "Switch memory statistics"
   order                = 996
   short-desc           = "Switch memory statistics"
   target-type          = switch-mem
   monitor-thresholds = "ciscoMemoryPoolUsed : value : n : 45738885 : MAIL : %ma
il-pgm% : %nms-email%, ciscoMemoryPoolUsed : value : n : 59810775 : MAIL"

The log file shows:

[05-Aug-2005 08:26:06 ] Monitor: Email sent to: nmsmessages\ <at> exchange.principal.
com
type:           value -- threshold:     ciscoMemoryPoolUsed : value : n : 457388
85 : MAIL : /usr/bin/mailx : nmsmessages\ <at> exchange.principal.com -- target:    
/wan/catos/trusted/ris/rismasoncity1ia-sw2.net.principal.com/switch-mem -- ds: 
        ciscoMemoryPoolUsed -- val:             61745473.92
[05-Aug-2005 08:26:06 ] Monitor: Trap Sent to netview.principal.com:
 .1.3.6.1.4.1.0.1 -- string -- value -- .1.3.6.1.4.1.0.2 -- string -- ciscoMemor
yPoolUsed : value : n : 59810775 : MAIL -- .1.3.6.1.4.1.0.3 -- string -- /wan/ca
tos/trusted/ris/rismasoncity1ia-sw2.net.principal.com/switch-mem -- .1.3.6.1.4.1
.0.4 -- string -- ciscoMemoryPoolUsed -- .1.3.6.1.4.1.0.5 -- string -- cricket -
- .1.3.6.1.4.1.0.8 -- string -- treptow.craig <at> principal.com -- .1.3.6.1.4.1.0.9
-- string -- 61745473.92

I've tried deleting the meta file, and updating the value for the threshold.  If I set the value to something high (99999999) and recompile, it does work correctly by not firing, but putting the value back to where we had it starts the theshold firing again, which would be ok, if it emailed instead of sending a trap.

Where do I need to be looking to figure this out?  Maybe turn on some more debugging in the collector?

Craig Treptow
IT Network Analyst - Senior
IS Network Administration - Network Management
515-247-6207

-----Message Disclaimer----- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to Connect <at> principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act ("E-Sign") unless a specific statement to the contrary is included in this message.
Picon
Favicon

Multiple Instance of cricket in one server

Hi all,

I want to have two instance of cricket in one server.
One instance will be used for Production purpose and the other for 
Development purpose.
I am not sure whether multiple instance can exist in the same server.
FYI
I have already installed the production instance and it is running fine.
Or kidly provide some idea on how to have multiple instance of cricket on 
one server.

Server info:

Sun Solaris 5.8
Apache 3.28
Perl 5.3
RRDTool 1.0.40
Cricket 1.5

Thanks in advacne

Arun.

_________________________________________________________________
Aamir Khan is back! http://server1.msn.co.in/SP05/Mangalpandey/index.html 
See him in the ‘mustached’ avatar in Mangal Pandey.

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Gmane