[collectd] Greetings (oh and some nooby help)
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
Re: [collectd] Greetings (oh and some nooby help)
The nginx stub is working, collectd appears to be writing rrd files in /var/lib/collectd/www.mysite.com http://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 Plugin rddtool block was commented out in collectd.conf. I installed cgp, and configured collectd.conf rrdtool : Plugin rrdtool # DataDir /usr/var/lib/collectd/rrd DataDir /var/lib/collectd/rrd CacheTimeout 120 CacheFlush 900 /Plugin 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 Plugin nginx URL http://www.mysite.com/nginxstub?auto; /PLugin 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)
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 Plugin rrdtools 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