Andrew Davidoff | 5 Nov 2012 02:52

Cricket on OS X 10.8 Mountain Lion

Hi,

I just got cricket working on OS X 10.8 Mountain Lion and figured I should
share. I think what I did was reasonable, but I'm open to criticism.

Before I get into the specifics of the install, I should note that I ran
into one issue related to targetTypes that don't contain a "view"
dictionary. Whether this is my fault or a bug, I am not sure.

On line 233 of grapher.cgi we have this:

my($view) = lc $gQ->param('view');

Following that assignment, various statements check to see if $view is
defined. It appears as though "lc" is returning an empty string (i.e. $view
is defined) in the case of $gQ->param('view') being undefined, which breaks
display of targets that aren't views. I am currently only using a single
target that does use a targetType that contains a view dictionary, so I
have essentially worked around this (for now).

And here's what I did to get cricket running on OS X 10.8 Mountain Lion.
Oh, I just remembered, the links to SNMP_Session and rrdtool in the
beginner guide are both out of date. Correct links are below in my notes.

Making cricket work:

1. Download cricket source
2. Untar into ~/, symlink cricket to cricket-1.0.5
3. Install RRDTool (http://oss.oetiker.ch/rrdtool/) via macports
   * `sudo port install rrdtool`
(Continue reading)

John Cardinale | 25 Oct 2012 01:36

CiscoAP 1142N

Hello all,
                This is my first cricket instance, and while the data is being logged and graphed correctly for routers,
when I attempted to add my access points to cricket it draws empty graphs.

Summary

100.0 MBits/s ethernetCsmacd
Values at last update:
Average bits in (for the day):
Cur: -nan bits/sec
Avg: nan bits/sec
Max: nan bits/sec

Average bits out (for the day):
Cur: -nan bits/sec
Avg: nan bits/sec
Max: nan bits/sec

Last updated at Wed Oct 24 16:30:01 2012
Here is how I generated it initially,
root <at> Maas-core:/etc/cricket/config# /usr/share/cricket/util/genDevConfig -c public -rtragents
--loglevel debug -2 --vendorint accesspoint03

And the following output

Use of uninitialized value $Common::global::isCollector in numeric eq (==) at
/usr/share/cricket/lib/ConfigTree/Cache.pm line 58.
[Warn *] Using current version of the config.db. Make sure it is up to date.
[Info  ] Log level changed from warn to debug.
[Info  ] Script genDevConfig started on: 24-Oct-2012 16:33:07
(Continue reading)

Franz Skale | 2 May 2012 21:21
Picon
Favicon

Contribute things !


Hi List,
i ported the mysql-snmp cacti prefs to cricket.
Could you please tell me, how to contribute the defaults file. (Also a
sample client config as well).
These are 37 views with 150 datapoints.
All you need is to install the mysql-snmp package. (Available from the
contributer of the package as debian stype package).

Rgds.

Franz

Optional, i can also post this via mailinglist, if you will.

--

-- 

kind regards,           +43-664-8468643
Franz Skale             +43-1-7189880-0
Senior Systems Engineer www.cubit.at
PGP KeyID               0xB294D39A
Key Fingerprint         B508 8896 B83C B374 770D 80EF 3AD9 4A66 B294 D39A

Neuer Standort: 1070 Wien, Zieglergasse 67/3/1

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
(Continue reading)

George | 5 Apr 2012 21:34

problems with Thresholds in 1.0.5

I have cricket 1.0.5 and for some reason I can only get a single data
source to work with thresholds. And to make it even more weird it's a
different data source on every target.

Any know bugs?? help would be appreciated??

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
George Wilbert | 5 Apr 2012 17:30

Monitor Thresholds not working

I have cricket 1.0.5 and for some reason I can only get a single data
source to work with thresholds. And to make it even more weird it's a
different data source on every target.

Any know bugs?? help would be appreciated??

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
Ashlen Rohde | 25 Jan 2012 07:35
Picon
Favicon

Failed to draw graph - check your server's error log for details - Help

Hi Cricket Users,

I have been tasked with rebuilding a server that was running cricket as the old hardware is out of support.

The original server was running Solaris 10 sparc.

I have rebuilt it with RHEL 6 x86_64.

I copied all the old cricket config over to the new server once it was built and got cricket up and running.
I applied the patch to make it support 64 bit.

A lot of the devices still display graphs so I know that it is working to a certain extent.

Since adding a new device with genRtrConfig it appeared to generate the targets file ok.

However, when I open the ports on that device via crickets it gives the error "Failed to draw graph - check
your server's error log for details"

The following error is found in my apache error_log after attempting to view the graph page for that device.

[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] Use of uninitialized value in localtime at
/home/cricket/public_html/cricket/./grapher.cgi line 1492., referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] Use of uninitialized value in localtime at
/home/cricket/public_html/cricket/./grapher.cgi line 1492., referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Unable to create graph:
opening
'/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd':
No such file or directory, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] , referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Unable to create graph:
(Continue reading)

Verena Petro | 29 Dec 2011 09:52
Favicon

Wrong summary Values

Hi,

I assume that I ran into the problem concerning displaying wrong ds sources in the summary header.
For example ("Cur:"-Value obviously does not match):

Summary
Values at last update:
Average bits in (for the day):
Cur: 0.00 Bits/sec
Avg: 1.51 MBits/sec
Max: 1.83 MBits/sec

Average bits out (for the day):
Cur: 1.60 MBits/sec
Avg: 108.02 kBits/sec
Max: 295.91 kBits/sec

Average Errors In * 10^4 (for the day):
Cur: 127.52 Merr/sec
Avg: 0.00 err/sec
Max: 0.00 err/sec

Average Errors Out * 10^4 (for the day):
Cur: 0.00 err/sec
Avg: 0.00 err/sec
Max: 0.00 err/sec

Unfortunately I could not find a solution, yet.
I think your sysadmins did an update (unfortunately I don't know the previous version), but currently we use

(Continue reading)

Kiss Gabor (Bitman | 26 May 2011 12:28
Picon

Collector bug found

Hi guys!

I've just found a bug in collector.

Sometimes the program aborted with this message:
Undefined subroutine &main:: called at /usr/share/cricket/lib/ConfigTree/Cache.pm line 266.

that is
            &{$w}("Found unknown tag '$name' during expansion of '$sstr'.");

Variable $w had no value. It should be $self->{"Warn"}.

Now I tracked down what happens.
collector begins with this:

$Common::global::gCT ||= new ConfigTree::Cache;
$gCT = $Common::global::gCT;
$gCT->Base($Common::global::gConfigRoot);
$gCT->Warn(\&Warn);                       <-------- normal case

[...]

my($recomp, $why) = $gCT->needsRecompile();
if ($recomp) {
    Warn("Config tree needs to be recompiled: $why");

    system("/usr/bin/cricket-compile " .
           "-base $Common::global::gConfigRoot");

    $gCT = new ConfigTree::Cache;        <---- Ooops! New $gCT has no Warn
(Continue reading)

Andy Dills | 31 Mar 2011 18:43

Getting frequent "NaN" gaps in graphs, yet data is being retrieved ok


I've been using cricket for around a decade.

In the last few years, we've grown to the gigabit ethernet level. Since 
then, we've been getting strange gaps in our graphs, with NaN listed as 
the current value if you look at the graph when the gap is occuring. It 
doesn't seem to be based on a traffic level threshhold...I'll see valid 
data displayed at times that are higher usage than the traffic rates when 
the data is NaN.

Whenever I run a manual collector, the data is being retrieved fine. I 
can't figure out why the data isn't being displayed properly, and I'm not 
able to think of a way to troubleshoot this further. I've tried specifying 
the speeds of the interfaces, and I've even tried doing a fresh install on 
a much more modern server (as the server cricket has been on since 2004 is 
still chugging along, and producing graphs a bit more slowly than it 
should).

Any suggestions?

Thanks,
Andy

---
Andy Dills
Xecunet, Inc.
www.xecu.net
301-682-9972
---

(Continue reading)

Ed Ravin | 19 Aug 2010 17:29
Picon
Favicon

graph displays daily but not weekly/monthly/yearly stats

This is strange - starting last week, one of my Cricket graphs stopped
displaying data for the weekly/monthly/yearly graph.

The daily graph continues to show current data collected today.

But all the other graphs show a dropoff to zero at the day the problem
started.

I don't see any error messages in the Cricket logs, other than one
of the datasets being collected returns "U", but that's normal
for this setup, where the data is collected by a bunch of EXEC
scripts and some of the values aren't always available.

I dumped the RRD file out to XML and restored it, and just for laughs
I deleted the Cricket image cache, but nothing helped.  I do see
when looking at the RRD XML that all of the RRAs have recent values.

Any idea how to debug this further?

Thanks,

	-- Ed

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
(Continue reading)

Anders Synstad | 19 Jul 2010 13:37
Picon

Cricket compile segfault

Hello,

Unsure if this mailing list is still alive, but thought I should give it 
a go.

I'm currently having some issues with Cricket's compile. One of the 
configuration files I generate, contain 'mtargets = ""' with a large 
number of targets (1000+). This seems to cause compile to segfault 
consistently. :(

Another config file have mtargets with aprox 300 targets. And this seems 
to work fine.

Before I started to investigate the deep and gory perl details, I was 
wondering if anyone had experienced this and possible had a solution for it?

Regards,
Anders Synstad
Basefarm AS

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

Gmane