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%... [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%... [Mon Dec 15 08:07:14 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 [Mon Dec 15 08:07:14 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%... [Mon Dec 15 08:07:14 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%...
When I google the error, I get some bug from 2005 that doesn't seem too relevant with my version or setup. I don't even know if the error is related with my cricket not drawing anything, but as its classified as an "error" I suppose its worth mentioning. collect-subtrees and the other navcron initiated cronjobs seems to finish without significant errors (except some interface mapping issues) and I don't think the collector itself doesn't work. I just think it for some reason can't draw the graphs onto the default graph template. So in other words, I see the graph template but no data written onto it.
Can some cricket guru please tell me how I should proceed to make my cricket draw graphs again? :(
Thank you in advance.
------------------------------------------------------ Vidar Stokkenes Networking Consulant Dep. for networking og telecommunications HN IKT - Tromsø
Phone: (+47) 76 16 61 87 or (+47) 77 66 99 55 Cell: 95 87 99 42 e-mail: vidar.stokkenes@hn-ikt.nomailto:vidar.stokkenes@hn-ikt.no [cid:image001.png@01C95E8D.01C0C4E0] P Before printing, think about the environment
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.