Re: [collectd] Greetings (oh and some nooby help)

2010-06-23 Thread Manuel CISSE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 6/23/2010 1:43 PM, Collect D wrote:
[...]

> My next problem is that my nginx stats are not showing up.
> 
> I have this in my collectd.conf:
> LoadPlugin nginx
> 
> URL "http://www.mysite.com/nginxstub?auto";
> 
> 
> The rrd files are being produced:
>> ls -1 /var/lib/collectd/rrd/www.mysite.com/nginx
> 
> nginx_connections-active.rrd
> nginx_connections-reading.rrd
> nginx_connections-waiting.rrd
> nginx_connections-writing.rrd
> nginx_requests.rrd
> 
> However cgp's hosts.php displays a little image stating that the plugin
> is not loaded.
> Is this a cgp plugin, a configuration issues, or something else?
> 

CGP doesn't support nginx, but it should be easy to write the plugin to
do it. You can take a look at the cgp/plugin directory and use the
vmem.php as an example (just copy it to nginx.php and it should get you
started).

- -- 
regards,
manuel CISSE
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwh97AACgkQOMej/7dX0BDChACgwNUwxbpu9jh/xopkznCHyg6W
kT4AoLRVM6jYmMigw4f9KcaE/FL7pmwu
=n3Uj
-END PGP SIGNATURE-


___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] Greetings (oh and some nooby help)

2010-06-23 Thread Collect D
>
> > collectd appears to be writing rrd files in
> > /var/lib/collectd/www.mysite.com
>
> > opendir > (/var/lib/collectd/rrd): No such file or directory at
> > ../lib/Collectd/Graph/Common.pm line 263
>
> either directory is fine, but they have to match.
>
> By default the RRDtool plugin uses the …/collectd/rrd directory and the
> CSV plugin uses the …/collectd/csv directory, so both plugin can be
> active at the same time without getting in each other's way.


I understand the usefulness of the rrd/csv split. I think my
misunderstanding comes from that all 'bits' reading the rrd files
effectively assume the the  block in collectd.conf has been
configured, when in fact it is commented out after install (and the default
dir is just /var/lib/collectd). I had missed this configuration step.


>

> (this feels like the wrong place to me?).
>
> Why's that? It's data written at run-time, so $localstatedir (i.e. /var)
> is the right place for this.
>

I'm not disagreeing with /var. Actually I'm not disagreeing at all.
Mistakenly I assumed that things would be logged in /var/log, not /var/lib.
But I see that they are library files (database files, in fact). System
administration doesn't come naturally to me, sorry.


> > Am I nearly there?
>
> Yeah, I think so ;)
>

Forever reaching for that unattainable nirvana... :)
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] Greetings (oh and some nooby help)

2010-06-23 Thread Collect D
>
> > The nginx stub is working, collectd appears to be writing rrd files
> > in /var/lib/collectd/www.mysite.com  (this feels
> > like the wrong place to me?). Running /var/www/collection3/bin/index.cgi
> > gives this error: opendir (/var/lib/collectd/rrd): No such file or
> > directory at ../lib/Collectd/Graph/Common.pm line 263
>
> RRD files should be in /var/lib/collectd/rrd/www.mysite.com by default.
> Did you specify another dir in your collectd.conf (DataDir in the
> rrdtool plugin section) ?
>
> Also, you may take a look at cgp[1], a web based front-end to collectd
> written in php.
>
> RRD files should be in /var/lib/collectd/rrd/www.mysite.com by default.
> Did you specify another dir in your collectd.conf (DataDir in the
> rrdtool plugin section) ?
>

The whole  block was commented out in collectd.conf.
I installed cgp, and configured collectd.conf rrdtool :

#   DataDir "/usr/var/lib/collectd/rrd"
DataDir "/var/lib/collectd/rrd"
CacheTimeout 120
CacheFlush   900

The initial load, at this point, brings up blank images and generates a lot
of warnings in the weblog. That's because there isn't any data in RRDs
(having just moved collectd's logging point/dir). That might be
confusing/worrying for a noob. I don't know if you can build in a check for
that, just as some re-assuring feedback to the user.

However I now have some pretty graphs. I'm going to notch this up as a
success for now, thanks!

My next problem is that my nginx stats are not showing up.

I have this in my collectd.conf:
LoadPlugin nginx

URL "http://www.mysite.com/nginxstub?auto";


The rrd files are being produced:
> ls -1 /var/lib/collectd/rrd/www.mysite.com/nginx
nginx_connections-active.rrd
nginx_connections-reading.rrd
nginx_connections-waiting.rrd
nginx_connections-writing.rrd
nginx_requests.rrd

However cgp's hosts.php displays a little image stating that the plugin is
not loaded.
Is this a cgp plugin, a configuration issues, or something else?
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] Greetings (oh and some nooby help)

2010-06-23 Thread Florian Forster
Hi,

> collectd appears to be writing rrd files in
> /var/lib/collectd/www.mysite.com

> opendir > (/var/lib/collectd/rrd): No such file or directory at
> ../lib/Collectd/Graph/Common.pm line 263

either directory is fine, but they have to match.

By default the RRDtool plugin uses the …/collectd/rrd directory and the
CSV plugin uses the …/collectd/csv directory, so both plugin can be
active at the same time without getting in each other's way.

> (this feels like the wrong place to me?).

Why's that? It's data written at run-time, so $localstatedir (i.e. /var)
is the right place for this. 

> Am I nearly there?

Yeah, I think so ;)

Regards,
—octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/


signature.asc
Description: Digital signature
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] Greetings (oh and some nooby help)

2010-06-23 Thread Manuel CISSE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

On 6/23/2010 11:45 AM, Collect D wrote:
> Hi
> 

[...]

> The nginx stub is working, collectd appears to be writing rrd files
> in /var/lib/collectd/www.mysite.com  (this feels
> like the wrong place to me?). Running /var/www/collection3/bin/index.cgi
> gives this error: opendir (/var/lib/collectd/rrd): No such file or
> directory at ../lib/Collectd/Graph/Common.pm line 263
> 
> Am I nearly there?
> 
> Very happy to go back to RTFM, just haven't found one that answers my
> question (or rather, that I understand enough to solve my problem).

RRD files should be in /var/lib/collectd/rrd/www.mysite.com by default.
Did you specify another dir in your collectd.conf (DataDir in the
rrdtool plugin section) ?

Also, you may take a look at cgp[1], a web based front-end to collectd
written in php.


[1] http://pommi.nethuis.nl/2010/01/collectd-graph-panel-v0-2/

- -- 
regards,
Manuel CISSE
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwh22sACgkQOMej/7dX0BCZ2wCdFg3m+0sP5mOUeKcbdC52sm2t
oloAn0E53Ct46nvvJn5bL731Mk8IPHPg
=C/sn
-END PGP SIGNATURE-


___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


[collectd] Greetings (oh and some nooby help)

2010-06-23 Thread Collect D
Hi

I'm a collectd virgin, my strengths are more in software development that
system administration, but I have a need to wet my toes in data
gathering/monitoring for some servers.

You probably get a lot of these questions. I have Googled, as well as looked
for a list archive to search (but couldn't see one?). Basically I have
collectd installed, but don't know how to make my pretty graphs. Sorry.

I'm testing out collectd on a small virtual host, to try to get my head
around things. It's a Slicehost slice (ideally) running CentOS, nginx,
fast-cgi. To try to ease my learning curve I've installed Apache (as that is
what most docs seem to assume).

The nginx stub is working, collectd appears to be writing rrd files
in /var/lib/collectd/www.mysite.com (this feels like the wrong place to
me?). Running /var/www/collection3/bin/index.cgi gives this error: opendir
(/var/lib/collectd/rrd): No such file or directory at
../lib/Collectd/Graph/Common.pm line 263

Am I nearly there?

Very happy to go back to RTFM, just haven't found one that answers my
question (or rather, that I understand enough to solve my problem).
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd