5 Nov 2012 02:52
Cricket on OS X 10.8 Mountain Lion
Andrew Davidoff <davidoff <at> qedmf.net>
2012-11-05 01:52:10 GMT
2012-11-05 01:52:10 GMT
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)
RSS Feed