Multiple data dirs

Asked by Jeff Mitchell

I'm running from current bzr trunk and using the example interface. I have one instance of collectd collecting data from various other nodes into /var/lib/collectd. If I put a "data" symlink to /var/lib/collectd/<machine> then I can see the values for that machine with e.g. "data/interface-eth0/if_octets.rrd". However, if I put the "data" symlink to /var/lib/collectd, then I can't get values for a particular machine even if I specify it with e.g. "<machine>/data/interface-eth0/if_octets.rrd"

Is there a way to do this?

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Jarmon Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Richard Wall (richardw) said :
#1

Jeff,

You just need to modify the relative paths in the jarmon recipe file. See

 * docs/examples/jarmon_example_recipes.js

The path may be relative to the location of the index.html file eg
 * data/server1.example.com/cpu-0/cpu-wait.rrd

...or relative to the root of your web site...
 * /data/server1.example.com/cpu-0/cpu-wait.rrd

It's up to you how you serve the RRD files and how you reference them.

There is an example nginx configuration file which demonstrates how to use a webserver alias instead of symlinks:
 * docs/examples/nginx.conf.example

As you can see from the trunk code, I am slowly working on a feature to allow users to build their own charts from within the web interface.

If you have any suggestions about this feature should look, I'd love to hear from you.

Hope that helps.

Revision history for this message
Jeff Mitchell (jefferai) said :
#2

Hi there,

I realized as I read your response that this is probably PEBKAC. Note the difference with your example:

data/server1.example.com/cpu-0/cpu-wait.rrd

and my example:

<machine>/data/interface-eth0/if_octets.rrd

I think I accidentally swapped the "data" and machine parts. Sometimes it takes another pair of eyes... :-)

I'll know for sure on Tuesday, and will mark as solved (or not) when I can test it out then.

Thanks!

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Richard Wall (richardw) said :
#4

Original poster reports pebcak.