rrdtool

Added by sm3 over 4 years ago

Hello,

I've been running my ryzom core on 3 machines, windows for the services, http server on another machine and then the DB on a 3rd machine. My client logs in and all is well. I'm trying to fix some admin tools issues now. It seems that rrdtool is not available on the windows build. Is this true? I see it as part of a step in the linux build. rrdtool should be run on the same server as your ryzom core services? Or should that be on another machine. Thanks!

sm3

Edit: It should be noted that the issue we have had running this on Windows do not seem to exist on the Linux build. rrdtool and webtool work as expected on Linux.


Replies (14)

RE: rrdtool - Added by sfb over 4 years ago

sm3,

You can download a Windows version of rrdtool and place it in the same folder as your ryzom_admin_service.exe. You may need to update the configuration file to reference the correct path as I don't remember what is currently in those .cfg files.

You can download rrdtool here

Good luck!

sfb
/s

RE: rrdtool - Added by sm3 over 4 years ago

Hi sfb,

Thanks, I see binaries @ mrtg.org. I noticed in one of the config files /usr/bin/rrdtool so it got me thinking I was missing something since my server isn't running on linux. I'll download a pre-compiled windows binary from there.

sm3

RE: rrdtool - Added by sfb over 4 years ago

sm3,

Good luck and feel free to come on IRC as well for some of these quick questions and for and idle banter. We appreciate the company.

Thanks,
sfb
/s

RE: rrdtool - Added by sm3 over 4 years ago

It doesn't seem to me that some of the admin tools were designed to run them the way I am running them. While my setup works, the admin tools don't really. I was able to stop the errors on my Windows server regarding the rrdtool by installing it, however, I don't it's really doing anything since there is no http server running on this machine.

This is what I have setup:

1 machine for Windows for Ryzom Core services
1 machine UNIX for http server
1 machine UNIX for DB server

I'm able to login to the admin panel, everything is grey, it's like it doesn't realize the server processes running on the Windows server are online.

I guess it's no biggie. The client works fine and I'm able to login to my shard etc..

sm3

RE: rrdtool - Added by sfb over 4 years ago

sm3,

It's best if you run your AS ryzom_admin_service on the same server as the web admin tools. Most of the services can run just about anywhere with one exception: any server that runs services other than AS needs an AES running on it.

Thanks,
sfb
/s

RE: rrdtool - Added by sm3 over 4 years ago

sfb,

Ah, OK. That is no biggie then!

Thanks for the clarification. I was just trying to relieve some of the load off of my main Windows server.

sm3

RE: rrdtool - Added by xyber over 4 years ago

Here is how I got my graphs to work on a windows setup.

This assumes you've setup everything else correctly, like the rrd_graphs path in save_shard and the needed DB entry

1) Get RRDTool
I grabbed rrdtool-1.2.30-bin-w32.zip from http://www.gknw.net/mirror/rrdtool/
Extract that somewhere, lets assume c:/rrdtool/

2) Install fonts
Right click on and choose to install these fonts from rrdtool folder
DejaVuSansMono-Roman.ttf
VeraMono.ttf

3) Change this cofig file code/ryzom/server/admin_service_default.cfg
RRDToolPath = "c:/rrdtool/rrdtool.exe";

4) Changes to config.php from here code\ryzom\tools\server\admin\
Should look something like this ...

define('NELTOOL_SITEBASE','http://localhost/'); // it was 'http://open.ryzom.com/'
define('NELTOOL_SYSTEMBASE','path_to_server/server/admin/'); // for example, c:/some_project/code/ryzom/tools/server/admin/
define('NELTOOL_LOGBASE', NELTOOL_SYSTEMBASE .'/logs/');
define('NELTOOL_IMGBASE', NELTOOL_SYSTEMBASE .'/imgs/');

define('NELTOOL_RRDTOOL',       'c:/rrdtool/rrdtool.exe');
define('NELTOOL_RRDSYSBASE',    NELTOOL_SYSTEMBASE . 'graphs_output/');
define('NELTOOL_RRDWEBBASE',    NELTOOL_SITEBASE . 'graphs_output/');

5) Code fixes
Since this is windows and you might have entered a path like c:/path_to_your_server/save_shard/rrd_graphs for the 'domain_rrd_path' field in nel_tool->neltool_domains
If you did, rrdtool will not be happy since it use ':' as seperator or something liek that for its comamnd line. I did try to escape the ':' like so 'c\:/...' but that broke the admin evenfurther, so here is the code changes I made to get graphs working.

Open code/ryzom/tools/server/admin/tool_graphs.php
Change
line 161 from

$rrd_path = $AS_RRDPath . $graph_item['rd_file'];

to
$rrd_path = str_replace(":", "\:", $AS_RRDPath) . $graph_item['rd_file'];

and do same for line 218

$rrd_path = $AS_RRDPath . $graph_item['rd_file'];

to
$rrd_path = str_replace(":", "\:", $AS_RRDPath) . $graph_item['rd_file'];

RE: rrdtool - Added by sm3 over 4 years ago

xyber,

I noticed that my browser is trying to download some *.gif files. If I'm not mistaken, MRTG only does PNG due to licensing. I'm not really sure where this is being specified at the moment.

sm3

RE: rrdtool - Added by xyber over 4 years ago

The graphs are in GIF format, only the hirez ones are png.

RE: rrdtool - Added by sm3 over 4 years ago

It's working for you then? Which binary for Windows did you download?

sm3

RE: rrdtool - Added by xyber over 4 years ago

I grabbed rrdtool-1.2.30-bin-w32.zip from http://www.gknw.net/mirror/rrdtool/
You will see a broken/missing image icon (or no image) if something was not setup correcty, that is why I made that post above explaining how I got it to work.

RE: rrdtool - Added by sm3 over 4 years ago

I think that is the same as the one I'm using. Must be another issue then with me. My hi-res works. Just not the normal *.gif versions.

I'll re-check following your instructions above.

sm3

RE: rrdtool - Added by xyber over 4 years ago

hirez does not seem to use rrdtool to generate the graph (I thinbk it uses jpgraph) thats why it works.

RE: rrdtool - Added by xingbarking over 4 years ago

HI,thx!

(1-14/14)