Thursday, June 6, 2013

cricket-users Digest, Vol 58, Issue 1

Send cricket-users mailing list submissions to
cricket-users@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@lists.sourceforge.net

You can reach the person managing the list at
cricket-users-owner@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. Re: CiscoAP 1142N (John Cardinale)
2. Cricket on OS X 10.8 Mountain Lion (Andrew Davidoff)
3. Re: Cricket on OS X 10.8 Mountain Lion (Andrew Davidoff)
4. Graphing Issue (Brandon Baker)
5. Re: Graphing Issue (Merrett Willett)


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

Message: 1
Date: Fri, 26 Oct 2012 16:41:38 +0000
From: John Cardinale <JohnC@trivedieffect.com>
Subject: Re: [cricket-users] CiscoAP 1142N
To: Francois Mikus <fmikus@acktomic.com>
Cc: "cricket-users@lists.sourceforge.net"
<cricket-users@lists.sourceforge.net>
Message-ID:
<31E5007EB917FC46B4BBF70ADB19CD1307481E12@BLUPRD0811MB438.namprd08.prod.outlook.com>

Content-Type: text/plain; charset="us-ascii"

Yup, actually I got it working about 2 hours later, turned on global debug for a min and watched it try to poll, and saw all the issues. Everything is working perfectly now. Thanks for your help!



-----Original Message-----
From: Francois Mikus [mailto:fmikus@acktomic.com]
Sent: Thursday, October 25, 2012 8:47 PM
Cc: cricket-users@lists.sourceforge.net
Subject: Re: [cricket-users] CiscoAP 1142N

Hello John,

Your problem is simply that genDevConfig is creating an invalid configuration.

It is identifying the wireless interfaces as if they were ethernet interfaces, which they arent!

They need to be identified as wireless interfaces and the correct target type applied.

The target type for wireless interfaces uses:

### OIDS For Aironet Wireless Access Point

OidClientsAssociated = .1.3.6.1.4.1.522.3.12.1.8
OidClientsTotal = .1.3.6.1.4.1.522.3.12.1.7
OidAPCount = .1.3.6.1.4.1.522.3.12.1.13
OidawcFtBridge = .1.3.6.1.4.1.522.3.12.1.9
OidawcFtBridgeSelf = .1.3.6.1.4.1.522.3.12.1.10

If the OIDs for you AP are different you need to identify what they are.

If you supply the OIDs that should be monitored I can update the Defaults.cisco file to add the new OIDs, datasources and targettypes.

Once that is done, genDevConfig needs to be updated to recognize the sysObjectID of your device(s) and the new target types applied for chassis type information and interface specific information.

genDevConfig 2.x templates haven't been updated in a looong time.
genDevConfig 3.x has been converted for use with Shinken and that is were all they new stuff will be going. Though genDevConfig 2.x can still be updated in the Cricket svn. The acktomic.com web site has a word document which explains how it works and how to add new devices. :-)

Hope that helps! Do not worry, your setup is working...

Cheers,

Francois

On 12-10-25 12:46 PM, John Cardinale wrote:
> Thanks Francois, I am actually getting PPS from the AP, so the string is ok, guess I'll just have to debug and go line by line =( I was hoping there was a known issue. But at least I know where I have to test next.
>
> Checking logs, I guess it will be a long process, but looks like this is where the issue resides.
>
> //log sniplet
> [25-Oct-2012 09:40:02 ] Retrieved data for bvi1 (14):
> U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
> [25-Oct-2012 09:40:02 ] Some data is missing for bvi1 (14).
> [25-Oct-2012 09:40:02 ] Retrieved data for bvi1 (14):
> U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
> [25-Oct-2012 09:40:02 ] Some data is missing for bvi1 (14).
> [25-Oct-2012 09:40:02*] Received SNMP response with error code
> noSuchName. OID: 1.3.6.1.4.1.9.2.1.57.0
> [25-Oct-2012 09:40:02 ] Retrieved data for chassis (0): U,U,U,U,U
> [25-Oct-2012 09:40:02 ] Some data is missing for chassis (0).
> [25-Oct-2012 09:40:02 ] Retrieved data for device-traffic (): 0,12836
> [25-Oct-2012 09:40:02*] Received SNMP response with error code
> noSuchName. OID: 1.3.6.1.4.1.9.2.2.1.1.10.1
> [25-Oct-2012 09:40:02 ] Walking ifDescr for
> 192.168.10.5:161:2.0:5:1.0:1 to resolve interface-name mapping
> [25-Oct-2012 09:40:02*] Received SNMP response with error code
> noSuchName. OID: 1.3.6.1.4.1.9.2.2.1.1.10.1
> [25-Oct-2012 09:40:02 ] Retrieved data for dot11radio0 (1):
> U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
> [25-Oct-2012 09:40:02 ] Some data is missing for dot11radio0 (1).
> [25-Oct-2012 09:40:02 ] Retrieved data for dot11radio0 (1):
> U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
> [25-Oct-2012 09:40:02 ] Some data is missing for dot11radio0 (1).
> [25-Oct-2012 09:40:02*] Received SNMP response with error code
> noSuchName. OID: 1.3.6.1.4.1.9.2.2.1.1.10.2
> [25-Oct-2012 09:40:02*] Received SNMP response with error code
> noSuchName. OID: 1.3.6.1.4.1.9.2.2.1.1.10.2
> [25-Oct-2012 09:40:02 ] Retrieved data for dot11radio1 (2):
> U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
> [25-Oct-2012 09:40:02 ] Some data is missing for dot11radio1 (2).
> [25-Oct-2012 09:40:02 ] Retrieved data for dot11radio1 (2):
> U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
> [25-Oct-2012 09:40:02 ] Some data is missing for dot11radio1 (2).
> [25-Oct-2012 09:40:02*] Received SNMP response with error code
> noSuchName. OID: 1.3.6.1.4.1.9.2.2.1.1.10.3
> [25-Oct-2012 09:40:02*] Received SNMP response with error code
> noSuchName. OID: 1.3.6.1.4.1.9.2.2.1.1.10.3
> [25-Oct-2012 09:40:02 ] Retrieved data for gigabitethernet0 (3):
> U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
> [25-Oct-2012 09:40:02 ] Some data is missing for gigabitethernet0 (3).
> [25-Oct-2012 09:40:02 ] Retrieved data for gigabitethernet0 (3):
> U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
>
>
> -----Original Message-----
> From: Francois Mikus [mailto:fmikus@acktomic.com]
> Sent: Wednesday, October 24, 2012 7:21 PM
> To: cricket-users@lists.sourceforge.net
> Subject: Re: [cricket-users] CiscoAP 1142N
>
> Hello John,
>
> Apart from the few debug statements bugging out on unescaped or empty values, it should work as advertised.
>
> I would suggest running Cricket with an info or debug log level. You will see what the issue is.
>
> I would also suggest making sure the basics work: Like your community string in the config tree.
> You can also check what your server is sending and receiving using Wireshark, if you are more familiar with that. You will see if the snmp requests just timeout or return an error.
>
> If they timeout, it is a community string issue. ;-)
>
> Cheers,
>
> Francois
>
> -- genDevConfig 3.x is now on github --
> -- No new supported devices compared to the 2.x Cricket version --
>
> ----------------------------------------------------------------------
> -------- Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> cricket-users mailing list
> cricket-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cricket-users
>
>


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
cricket-users mailing list
cricket-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cricket-users





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

Message: 2
Date: Sun, 4 Nov 2012 18:52:10 -0700
From: Andrew Davidoff <davidoff@qedmf.net>
Subject: [cricket-users] Cricket on OS X 10.8 Mountain Lion
To: cricket-users@lists.sourceforge.net
Message-ID:
<CAJLXCZSuxJbcFCbxpnmMtcFi21XuuqwU33AyaV0i7FU6G5geJA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

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`
4. Install SNMP_Session (http://code.google.com/p/snmp-session/) via
macports
* `sudo port install p5-snmp_session`
5. Install required modules via *macports* cpan
* cpan> install MD5
* cpan> install LWP
* cpan> install DB_File
* cpan> install Date::Parse
* cpan> install Time::HiRes
6. cd to ~/cricket, run util/relocate-perl
* Should update shebangs to macports perl installation in /opt

Cricket now works (compile/collector).


Making apache/grapher.cgi work:

1. You can no longer enable apache from System Preferences in 10.8.
* To enable serving of content from ~user/Sites, and enable the options
necessary for getting cricket's grapher to work, create a file:

/etc/apache2/users/$username.conf

That looks like this:

<Directory "/Users/$username/Sites/">
Options Indexes MultiViews FollowSymlinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all

AddHandler cgi-script .cgi
</Directory>

The really important stuff is:
* The path that you want to act as your public_html directory
* FollowSymlinks
* ExecCGI
* AddHandler cgi-script .cgi
2. Uncomment from /etc/apache2/httpd.conf:
* LoadModule perl_module libexec/apache2/mod_perl.so
3. Start apache with
* `sudo apachectl start`
* Logs are in /var/log/apache2
4. To make apache start at boot:
* sudo launchctl load -w
/System/Library/LaunchDaemons/org.apache.httpd.plist
5. Update cricket's RRD::Format to know about
architecture darwin-thread-multi-2level
* Get rrdtool source, untar somewhere
* In cricket/util/
- Modify getFormat.c (see diff)
. Without these modifications, I received warnings that rrd_format.h
shouldn't be included directly
- `gcc -I<path to RRD Tool's src dir> -o getFormat getFormat.c`
- `./getFormat`
- add getFormat output to Format.pm, including manually adding the
liveHead3 section (see diff)

Apache/grapher.cgi now work.


diff -wur cricket-1.0.5-orig/lib/RRD/Format.pm
/Users/davidoff/cricket-1.0.5/lib/RRD/Format.pm
--- cricket-1.0.5-orig/lib/RRD/Format.pm 2004-01-20 19:11:09.000000000
-0700
+++ /Users/davidoff/cricket-1.0.5/lib/RRD/Format.pm 2012-11-03
17:18:21.000000000 -0600
@@ -177,7 +177,18 @@
$self->{'liveHead'} = "Q";
$self->{'rraPtr'} = "Q";
$self->{'element'} = "d";
- } else {
+ } elsif ( $archname eq 'darwin-2level' ) {
+ $self->{'statHead'} = "a4 a5 x7 d Q Q Q x80";
+ $self->{'dsDef'} = "a20 a20 Q d d x56";
+ $self->{'rraDef'} = "a20 x4 Q Q d x72";
+ $self->{'pdpDef'} = "a30 x2 Q d x64";
+ $self->{'cdpDef'} = "d Q x64";
+ $self->{'liveHead'} = "Q";
+ $self->{'liveHead3'} = "Q Q";
+ $self->{'rraPtr'} = "Q";
+ $self->{'element'} = "d";
+ }
+ else {
return;
}
}


diff -wur cricket-1.0.5-orig/util/getFormat.c
/Users/davidoff/cricket-1.0.5/util/getFormat.c
--- cricket-1.0.5-orig/util/getFormat.c 2002-07-02 19:40:14.000000000 -0600
+++ /Users/davidoff/cricket-1.0.5/util/getFormat.c 2012-11-03
17:08:06.000000000 -0600
@@ -15,6 +15,8 @@
*
*/

+#define _RRD_TOOL_H
+
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
@@ -22,7 +24,7 @@
#include <time.h>
#include <ctype.h>

-#include <rrd_format.h>
+#include <rrd.h>

void format_stat_head (void) {
stat_head_t h1;



Hope this is helpful in some way.

Andy


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

Message: 3
Date: Fri, 9 Nov 2012 21:11:18 -0700
From: Andrew Davidoff <davidoff@qedmf.net>
Subject: Re: [cricket-users] Cricket on OS X 10.8 Mountain Lion
To: cricket-users@lists.sourceforge.net
Message-ID:
<CAJLXCZTQexao6S-T=h0NVRKTZphuUcrMBh7VzOShfF6+j1R01w@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Just a follow up here. While working on getting mtargets working (still not
sure if it's just me using it incorrectly...) I found another part of
grapher.cgi that is handling an undefined 'view' correctly (see quoted
email below). It looks like this is what needs to happen to line 233:

--- /Users/davidoff/Downloads/cricket-1.0.5/grapher.cgi 2004-02-06
09:27:34.000000000 -0700
+++ ./grapher.cgi 2012-11-09 21:10:02.000000000 -0700
@@ -230,7 +230,8 @@

# put the view into the target dict, so it's
# there if they want to use it.
- my($view) = lc $gQ->param('view');
+ my($view) = $gQ->param('view');
+ $view = lc $view if defined $view;
if (defined($view)) {
$targRef->{'auto-view'} = $view;
}

Refer to line 1363 for where I saw how this was being handled correctly
elsewhere.

Andy

On Sun, Nov 4, 2012 at 6:52 PM, Andrew Davidoff <davidoff@qedmf.net> wrote:

> 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).
>


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

Message: 4
Date: Thu, 6 Jun 2013 10:45:54 -0400
From: "Brandon Baker" <bbaker@cascable.com>
Subject: [cricket-users] Graphing Issue
To: <cricket-users@lists.sourceforge.net>
Message-ID: <005001ce62c4$8c01e6d0$a405b470$@com>
Content-Type: text/plain; charset="us-ascii"



Hello, I am using Cricket to graph Cable modems, I have updated the cron
table and am showing that it is in use when I use the crontab -l command. I
have also uploaded the files through FTP into the cricket server. My graphs
are not displaying yet for the new modems I have entered. Am I missing a
command or reboot or something to get these to start graphing? Any help is
appreciated.



Thank You,

Brandon Baker





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

Message: 5
Date: Thu, 6 Jun 2013 11:07:50 -0400
From: Merrett Willett <Merrett.Willett@cbeyond.net>
Subject: Re: [cricket-users] Graphing Issue
To: Brandon Baker <bbaker@cascable.com>,
"cricket-users@lists.sourceforge.net"
<cricket-users@lists.sourceforge.net>
Message-ID: <CDD61CD5.12B73%merrett.willett@cbeyond.net>
Content-Type: text/plain; charset="us-ascii"

Brandon,

Your setup isn't real clear. For generic troubleshooting I'd:

1) Check the cricket log directory for errors on the collection set
2) run the collector manually and verify if there are any errors. If
there are not, your graphs should show up immediately
3) If the collector runs, try running the command you have listed in cron
and see if it generates errors
4) check http logs (apache, IIS, etc) for errors on why graphs are not
drawing

If you are FTPing the data, how is cricket collecting and entering the
data in the rra files? The graphs are rendered via data within the rra
files, so you must have the collector read the raw data in the FTP'd
files, enter it into the rra files. Then when you load the web page
cricket will render the graphs based on data within the rra.



On 6/6/13 10:45 AM, "Brandon Baker" <bbaker@cascable.com> wrote:

>
>
>Hello, I am using Cricket to graph Cable modems, I have updated the cron
>table and am showing that it is in use when I use the crontab -l command.
>I
>have also uploaded the files through FTP into the cricket server. My
>graphs
>are not displaying yet for the new modems I have entered. Am I missing a
>command or reboot or something to get these to start graphing? Any help is
>appreciated.
>
>
>
>Thank You,
>
>Brandon Baker
>
>
>
>--------------------------------------------------------------------------
>----
>How ServiceNow helps IT people transform IT departments:
>1. A cloud service to automate IT design, transition and operations
>2. Dashboards that offer high-level views of enterprise services
>3. A single system of record for all IT processes
>http://p.sf.net/sfu/servicenow-d2d-j
>_______________________________________________
>cricket-users mailing list
>cricket-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/cricket-users




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

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

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

_______________________________________________
cricket-users mailing list
cricket-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cricket-users


End of cricket-users Digest, Vol 58, Issue 1
********************************************

No comments:

Post a Comment