Jamie Baddeley | 1 Oct 2004 11:29
Picon

Re: Counting OIDs

cricket can be configured to call scripts. (ds-source exec)

a hack might be to use an expect script to login to the cmts, run the
necessary command. I guess some awk and grep and friends could be used
to parse the result to produce a single number returned - which is what
cricket understands.

hth.

jamie

On Fri, 2004-10-01 at 07:35, Robert Westendorp wrote:
> Hi,
> 
> I've got a CMTS that is DOCIS compliant. Here's the problem.
> 
> I want to count the number of connected modems, problem is that there is no
> OID that covers this. There is an overall modem table, but no total and each
> modem has it's own table.  It seems totals from the CMTS command line are
> generated by looking at each modem table and counting how many modems are
> connected to each channel.
> 
> I'm not too worried about the number of modems per chennl, just an overall
> total... so is there a way to count the number of OIDs at at particular
> level? I could then use that as the total connected modems.
> 
> Any help would be great.
> Thanks.
> ---------------------------------------------------------------
> Robert Westendorp
(Continue reading)

Steve Carr | 1 Oct 2004 21:30
Picon
Favicon

Manual Poll OK - Collector Poll Returns U

Hello,
   I have an issue where polling from crontab running 'collect-subtrees normal' returns U data yet when I run
collector manually for the subtree it returns data ok. 
   Data sources ds10-ds21 all return U yet when run manually they report back results everytime. The data for
those sources are retrieved via a script (EXEC
   datasource type). If I remove this subtree from subtree-sets and run the command every 5 minutes it
populates the rrd file with the retrieved data.

   Anyone have any ideas?

   cricket version 1.0.4 running on Solaris9

----SNIP FROM CRICKET LOG-----
[01-Oct-2004 11:55:04 ] Retrieving data (EXEC:
/export/home/cricket/cricket-config/../cricket/util/dns-snmp.pl servername community
1.3.6.1.4.1.2021.8.1.101.2) for servername
[01-Oct-2004 11:55:04 ] Retrieved data for servername (2): 0.02,0.03,0.04,1,2,97,1455,148,1554147467,185063919,U,U,U,U,U,U,U,U,U,U,U,U
[01-Oct-2004 11:55:04 ] Some data is missing for servername (2).

----COLLECTOR RUN MANUALLY----
[cricket <at> cricket:cricket-logs]$  ~/cricket/collector /systemperf -loglevel debug
[01-Oct-2004 11:57:57 ] Log level changed from warn to debug.
[01-Oct-2004 11:57:57 ] Starting collector: Cricket version 1.0.4 (2003-11-22)

[01-Oct-2004 11:57:58 ] target servername
        auto-base = /export/home/cricket/cricket-config
        auto-root = /..
        auto-target-path = /systemperf
        datadir = /export/home/cricket/cricket-config/../cricket-data//systemperf
        directory-desc = Server load, CPU, DNS queries/failues
(Continue reading)

soukihei | 2 Oct 2004 22:51

Failed to get dslist from view name

I am running cricket-1.0.5 on a FreeBSD v4.9 server still running the GENERIC kernel.  I am new to cricket, and have looked through the archives for a resolution to this issue, to no avail.  When I try to look at the graphs for my Accton Cheetah Workgroup switch, they come up empty, and I have these errors in my httpd-error.log file:

 

[Sat Oct 02 14:50:33 2004] [error] [client 172.16.146.100] Use of uninitialized value at /usr/local/www/data/cricket/grapher.cgi line 290., referer: http://10.100.1.1/cricket/grapher.cgi?target=%2Fswitch-ports%2Faccton

[Sat Oct 02 14:50:33 2004] [error] [client 172.16.146.100] [02-Oct-2004 14:50:33*] Failed to get dslist from view name., referer: http://10.100.1.1/cricket/grapher.cgi?target=%2Fswitch-ports%2Faccton

 

Below are the two config files within my /usr/local/cricket/cricket-1.0.5/cricket-config/switch-port directory.  I would really appreciate any help/advice that can be offered.  I have this very same switch being monitored via SNMP and mrtg on another server, however I wish to migrate to Cricket.

 

---Defaults---

                   Target  --default--

    rrd-datafile    =   %dataDir%/%auto-target-name%-%inst%.rrd

    switch          =   %auto-target-name%

    snmp-host       =   %switch%

    target-type     =   switch-port

 

targetType  switch-port

    ds  =   "ifInOctets, ifOutOctets"

 

targetType      standard-interface

    ds      = "ifInOctets, ifOutOctets, ifInErrors, ifOutErrors, ifInUcastPackets, ifOutUcastPackets"

    view    = "Octets: ifInOctets ifOutOctets, UcastPackets: ifInUcastPackets ifOutUcastPackets, Errors: ifInErrors ifOutErrors"

 

---switches---

target --default--

    inst=(1..16)

 

target  accton

    short-desc="accton cheetah workgroup switch"

    targetType=standard-interface

 

Thanks.

 

--

Chris Mutchler

soukihei <at> leibnizcreations.com

 

Gregory Bond | 4 Oct 2004 01:14
Picon

Re: Manual Poll OK - Collector Poll Returns U

Steve Carr wrote:

>   I have an issue where polling from crontab running 'collect-subtrees normal' returns U data yet when I run
collector manually for the subtree it returns data ok.
>  
>

Typically, the cause of "works from shell but not cron" problems is 
environment - $PATH or $LD_LIBRARY_PATH or some such.  Remember jobs run 
from cron have almost no environment set!

(This is a UNIX thing rather than a cricket thing - true of any UNIX 
cron jobs.)

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Jack A. Kanimea | 4 Oct 2004 07:18

Cricket alert via ports

Hello,
       This is my problem. Am trying to develop program to alert if a port on a ip is down for a period of time at same time have a report mechanism.  
 
I know this can be done using nmap .. but filter ing has to be done .. etc Haven't done this yet but it just a idea 
 
 Has anyone tried this using cricket via alerts of ports or if know of any free tools. Any ideas on this would greatly appreciated.
 
Thanks
Jack K 
Steve Carr | 4 Oct 2004 16:10
Picon
Favicon

Re: Manual Poll OK - Collector Poll Returns U

Thanks for the reply. I guess I should have mentioned I am polling 1008 targets from the cron job: 
(0,5,10,15,20,25,30,35,40,45,50,55 * * * * $HOME/cricket/collect-subtrees normal)
..and I am only having a problem with those 12 targets.

Steve

----- Original Message -----
From: Gregory Bond <gnb <at> itga.com.au>
Date: Sunday, October 3, 2004 5:14 pm
Subject: Re: [cricket-users] Manual Poll OK - Collector Poll Returns U

> Steve Carr wrote:
> 
> >   I have an issue where polling from crontab running 'collect-
> subtrees normal' returns U data yet when I run collector manually 
> for the subtree it returns data ok.
> >  
> >
> 
> Typically, the cause of "works from shell but not cron" problems is 
> environment - $PATH or $LD_LIBRARY_PATH or some such.  Remember 
> jobs run 
> from cron have almost no environment set!
> 
> (This is a UNIX thing rather than a cricket thing - true of any 
> UNIX 
> cron jobs.)
> 
> 

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Ted Kaczmarek | 4 Oct 2004 21:11
Favicon

Re: Cricket alert via ports


On Mon, 2004-10-04 at 17:18 +1200, Jack A. Kanimea wrote:
> Hello,
>        This is my problem. Am trying to develop program to alert if a
> port on a ip is down for a period of time at same time have a report
> mechanism.  
>  
> I know this can be done using nmap .. but filter ing has to be done ..
> etc Haven't done this yet but it just a idea  
>  
>  Has anyone tried this using cricket via alerts of ports or if know of
> any free tools. Any ideas on this would greatly appreciated.
>  
> Thanks
> Jack K 
I use OpenNMS and Cricket, basically between the two, I can collect data
from anything and monitor almost anything. OpenNMS notification and
escalation model is rather nice. Plus you can take rrd's generated by
Cricket and have them display in OpenNMS.

Ted

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Steve Carr | 4 Oct 2004 22:25
Picon
Favicon

Re: Manual Poll OK - Collector Poll Returns U

Gregory,
    Rechecked my perl script and sure enough no path to snmpget. Thanks for your insight. 

steve

----- Original Message -----
From: Steve Carr <steven <at> shaw.ca>
Date: Monday, October 4, 2004 8:10 am
Subject: Re: [cricket-users] Manual Poll OK - Collector Poll Returns U

> Thanks for the reply. I guess I should have mentioned I am polling 
> 1008 targets from the cron job: 
> (0,5,10,15,20,25,30,35,40,45,50,55 * * * * $HOME/cricket/collect-
> subtrees normal)
> ..and I am only having a problem with those 12 targets.
> 
> Steve
> 
> ----- Original Message -----
> From: Gregory Bond <gnb <at> itga.com.au>
> Date: Sunday, October 3, 2004 5:14 pm
> Subject: Re: [cricket-users] Manual Poll OK - Collector Poll 
> Returns U
> 
> > Steve Carr wrote:
> > 
> > >   I have an issue where polling from crontab running 'collect-
> > subtrees normal' returns U data yet when I run collector 
> manually 
> > for the subtree it returns data ok.
> > >  
> > >
> > 
> > Typically, the cause of "works from shell but not cron" problems 
> is 
> > environment - $PATH or $LD_LIBRARY_PATH or some such.  Remember 
> > jobs run 
> > from cron have almost no environment set!
> > 
> > (This is a UNIX thing rather than a cricket thing - true of any 
> > UNIX 
> > cron jobs.)
> > 
> > 
> 

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Chan Suet Lin | 6 Oct 2004 11:26

Possible to create mtarget on 2 mtargets? / aggregate diff target-types

Hi ,

I've several network caches that I'm monitoring currently using cricket. However, I've used 2 different
target-type to poll their bw different. 

I read that it's not possible to do a mtarget of all the caches since the target-type is different, and i've 2
different mtargets, one for each target-type. 

Is it possible for me to do a mtarget of the 2 mtargets to get the consolidated bandwidth?
If it's not possible, any suggestions to aggregate diff target-types to a single graph?

Thanks,
Suetlin 

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Rob Harp | 7 Oct 2004 17:35

Getting Cricket to work with Cisco Switches

So I have genCatConfig and I can add the switches but it will not poll for information and plot it out. When I click on the Link for the switch it tells me Current Values Not Available. This is for our 6509 and 6513’s. Any one have nay ideas?

 

Rob Harp

LPL Financial Services

9785 Towne Centre Dr.

San Diego, CA92121

(858) 450-9606 x7122 (work)

(619) 666-5004 (cell)

 


Gmane