Ashlen Rohde | 25 Jan 2012 07:35
Picon
Favicon

Failed to draw graph - check your server's error log for details - Help

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:
(Continue reading)

Oliver Landsmann | 25 Jan 2012 19:53
Picon

Re: Failed to draw graph - check your server's error log for details - Help

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

On 25.01.2012 07:35, Ashlen Rohde wrote:
> 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.
(Continue reading)


Gmane