Urchin 5 on CentOS 5 (RHEL 5) - ERROR: (7066-211-368)

After installing Urchin, I got the following error when trying to update _domaindb.

view plain print about
1ERROR: (7066-211-368) Domain DB update failed DETAIL: (6) Couldn't resolve host 'download.urchin.com'

Now the DNS was configured properly and download.urchin.com was pinging normally.

Turns out that urchin needs the nscd service enabled.

view plain print about
1#yum install nscd
2#chkconfig nscd on
3#service nscd start
4#ln -s /var/run/nscd/socket /var/run/.nscd_socket

After doing this, the update should work fine.

Urchin 5 - Opening reports in the same window

By default Urchin 5 seems to want to open reports in a new window. This can be a little annoying. To change this, we just need to update the javascript function that gets run when you click on the "View Report" link.

view plain print about
1vi /usr/local/urchin/htdocs/ujs/admin.js +434

You should see the following code:

view plain print about
1mywin = window.open('',myname);
2
3mywin.location.href = url;
4mywin.focus();

We're going to comment it out and add our own code:

view plain print about
1//mywin = window.open('',myname);
2
3//mywin.location.href = url;
4
5//mywin.focus();
6
7window.location.href=url;

After clearing our cache, the reports open in the same window.