Discussion:
[cricket-users] Failed to draw graph - check your server's error log for details - Help
Ashlen Rohde
2012-01-25 06:35:56 UTC
Permalink
Hi Cricket Users,

I have been tasked with rebuilding a server that was running cricket as the old hardware is out of support.

The original server was running Solaris 10 sparc.

I have rebuilt it with RHEL 6 x86_64.

I copied all the old cricket config over to the new server once it was built and got cricket up and running.
I applied the patch to make it support 64 bit.

A lot of the devices still display graphs so I know that it is working to a certain extent.

Since adding a new device with genRtrConfig it appeared to generate the targets file ok.

However, when I open the ports on that device via crickets it gives the error "Failed to draw graph - check your server's error log for details"

The following error is found in my apache error_log after attempting to view the graph page for that device.


[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] Use of uninitialized value in localtime at /home/cricket/public_html/cricket/./grapher.cgi line 1492., referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] Use of uninitialized value in localtime at /home/cricket/public_html/cricket/./grapher.cgi line 1492., referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Unable to create graph: opening '/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd': No such file or directory, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] , referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Unable to create graph: opening '/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd': No such file or directory, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] , referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] rrd graph: /tmp/cricket-cache/cricket-0faff626.png -a PNG -r -l 0 --base 1024 --start -864000 --vertical-label bits per second --width 500 --height 200 DEF:mx0=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds0:MAX DEF:ds0=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds0:AVERAGE DEF:mx1=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds1:MAX DEF:ds1=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds1:AVERAGE CDEF:smx0=mx0,8,* CDEF:sds0=ds0,8,* CDEF:smx1=mx1,8,* CDEF:sds1=ds1,8,* LINE1:smx0#00FF00:Max Average bits in AREA:sds0#00cc00:Average bits in LINE1:smx1#0080FF:Max Average bits out LINE1:sds1#0000ff:Average bits out VRULE:1327237200#ff0000: VRULE:1326632400#ff0000:, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] , referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Could not open /tmp/cricket-cache/cricket-0faff626.png: No such file or directory, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] rrd graph: /tmp/cricket-cache/cricket-19e42da5.png -a PNG -r -l 0 --base 1024 --start -151200 --vertical-label bits per second --width 500 --height 200 DEF:mx0=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds0:MAX DEF:ds0=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds0:AVERAGE DEF:mx1=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds1:MAX DEF:ds1=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds1:AVERAGE CDEF:smx0=mx0,8,* CDEF:sds0=ds0,8,* CDEF:smx1=mx1,8,* CDEF:sds1=ds1,8,* LINE1:smx0#00FF00:Max Average bits in AREA:sds0#00cc00:Average bits in LINE1:smx1#0080FF:Max Average bits out LINE1:sds1#0000ff:Average bits out VRULE:1327410000#ff0000: VRULE:1327323600#ff0000:, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] , referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Could not open /tmp/cricket-cache/cricket-19e42da5.png: No such file or directory, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets


I have tried searching for answers on the web but to no avail.

If someone could make some suggestions on how to fix this it would be greatly appreciated.


Cheers,
Ash











#####################################################################################
Confidentiality and Privilege Notice
This document is intended solely for the named addressee. The information contained in the pages is confidential and contains legally privileged information. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone, and you should destroy this message and kindly notify the sender by reply email. Confidentiality and legal privilege are not waived or lost by reason of mistaken delivery to you.
#####################################################################################
Oliver Landsmann
2012-01-25 18:53:27 UTC
Permalink
Hi Ash,

Lets look at the first error, the grapher is trying to look for:
/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd

so unless you have a
/home/cricket/cricket/cricket-data/load-balance/bigip2.globalcenter.net.au
directory the "dataDir" is probably setup wrong in the Defaults files of
the load-balance config directory.

For example

Target --default--
dataDir = /var/lib/cricket/%auto-target-path%
rrd-datafile = %dataDir%/%auto-target-name%.rrd

in that case the grapher is going to look for the rrd files in
/var/lib/cricket/what_ever_you_subdir_is_called_in_the_config_dir

hope that might get you a bit further

--Oliver
Post by Ashlen Rohde
Hi Cricket Users,
I have been tasked with rebuilding a server that was running cricket as the old hardware is out of support.
The original server was running Solaris 10 sparc.
I have rebuilt it with RHEL 6 x86_64.
I copied all the old cricket config over to the new server once it was built and got cricket up and running.
I applied the patch to make it support 64 bit.
A lot of the devices still display graphs so I know that it is working to a certain extent.
Since adding a new device with genRtrConfig it appeared to generate the targets file ok.
However, when I open the ports on that device via crickets it gives the error "Failed to draw graph - check your server's error log for details"
The following error is found in my apache error_log after attempting to view the graph page for that device.
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] Use of uninitialized value in localtime at /home/cricket/public_html/cricket/./grapher.cgi line 1492., referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] Use of uninitialized value in localtime at /home/cricket/public_html/cricket/./grapher.cgi line 1492., referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Unable to create graph: opening '/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd': No such file or directory, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] , referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Unable to create graph: opening '/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd': No such file or directory, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] , referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] rrd graph: /tmp/cricket-cache/cricket-0faff626.png -a PNG -r -l 0 --base 1024 --start -864000 --vertical-label bits per second --width 500 --height 200 DEF:mx0=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds0:MAX DEF:ds0=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds0:AVERAGE DEF:mx1=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds1:MAX DEF:ds1=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds1:AVERAGE CDEF:smx0=mx0,8,* CDEF:sds0=ds0,8,* CDEF:smx1=mx1,8,* CDEF:sds1=ds1,8,* LINE1:smx0#00FF00:Max Average bits in AREA:sds0#00cc00:Average bits in LINE1:smx1#0080FF:Max Average bits out LINE1:sds1#0000ff:Average bits out VRULE:1327237200#ff00
00: VRULE:1326632400#ff0000:, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] , referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Could not open /tmp/cricket-cache/cricket-0faff626.png: No such file or directory, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] rrd graph: /tmp/cricket-cache/cricket-19e42da5.png -a PNG -r -l 0 --base 1024 --start -151200 --vertical-label bits per second --width 500 --height 200 DEF:mx0=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds0:MAX DEF:ds0=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds0:AVERAGE DEF:mx1=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds1:MAX DEF:ds1=/home/cricket/cricket/cricket-config/../cricket-data//load-balance/bigip2.globalcenter.net.au/internal_vlan.rrd:ds1:AVERAGE CDEF:smx0=mx0,8,* CDEF:sds0=ds0,8,* CDEF:smx1=mx1,8,* CDEF:sds1=ds1,8,* LINE1:smx0#00FF00:Max Average bits in AREA:sds0#00cc00:Average bits in LINE1:smx1#0080FF:Max Average bits out LINE1:sds1#0000ff:Average bits out VRULE:1327410000#ff00
00: VRULE:1327323600#ff0000:, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] , referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
[Wed Jan 25 17:11:36 2012] [error] [client 10.64.50.13] [25-Jan-2012 17:11:36*] Could not open /tmp/cricket-cache/cricket-19e42da5.png: No such file or directory, referer: http://smgnet03/~cricket/cricket/grapher.cgi?target=%2Fload-balance%2Fbigip2.globalcenter.net.au%2Finternal_vlan;view=Octets
I have tried searching for answers on the web but to no avail.
If someone could make some suggestions on how to fix this it would be greatly appreciated.
Cheers,
Ash
#####################################################################################
Confidentiality and Privilege Notice
This document is intended solely for the named addressee. The information contained in the pages is confidential and contains legally privileged information. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone, and you should destroy this message and kindly notify the sender by reply email. Confidentiality and legal privilege are not waived or lost by reason of mistaken delivery to you.
#####################################################################################
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
cricket-users mailing list
https://lists.sourceforge.net/lists/listinfo/cricket-users
Loading...