On Mon, 15 Dec 2008 08:16:18 +0100 Stokkenes Vidar Vidar.Stokkenes@hn-ikt.no wrote:
I suppose this topic would suit better on a cricket mailing list, but I'll give it a shot here.
Ever since I tweaked the cricket version in NAV to not log INFO level to /var/log/cricket/normal.log, my cricket has completely stopped drawing graphs. When I look at my apache error file, I get the following error(s) every time I try to reload or open the page:
[Fri Dec 12 09:46:13 2008] [error] [client 172.19.10.83] Name "Common::global::gEnableSearch" used only once: possible typo at /var/www/nav/cricket/index.cgi line 841., referer: https://nav.hn-ikt.no/cricket/?target=%2Frouter-interfaces%2Fgw1.domain.com%...
[snip]
Hi Vidar,
I don't think this error message is at all related to your graphing problem. I've seen logs on working installations that are full of the same messages.
A quick investigation reveals that the Debian package for Cricket 1.0.5 apparently still comes with the cricket-conf.pl file from Cricket 1.0.3. You should be able to get rid of the error message by adding "$gEnableSearch=0;" to your cricket-conf.pl.
You can easily enough confirm that your RRD data is being updated by looking at the timestamps of your RRD files, or possibly dumping their contents using "rrdtool dump" to see that there is recent data in there.
Often, problems with generating the graphs come from lack of proper file permissions. Make sure the cache directory defined by $gCacheDir is writable by the user that runs grapher.cgi (which is often setuid or setgid to someone other than www-data), that all files in the cricket configuration are readable by www-data and/or that same setuid/setgid user/group.