Welcome! Log In Create A New Profile

Advanced

Monitor nginx with collectd

Posted by miradev 
Monitor nginx with collectd
June 22, 2010 04:37PM
I'm trying to monitor / measure / collect usage data on nginx, and have decided to try collectd.

I have the nginx stub configured, and working. I've got collectd installed, and running, with the nginx plugin uncommented and configured to poke the nginx stub.

I also have the 'collection3' scripts installed:

[code]
> ls /var/www/collection3/bin
graph.cgi index.cgi json.cgi
[/code]

I'm quite comfortable with perl, but am missing something in making the connection on how to generate the images..
[code]
> perl /var/www/collection3/bin/index.cgi
Content-Type: text/html; charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>collection.cgi, Version 3</title>
<link rel="icon" href="../share/shortcut-icon.png" type="image/png" />
<link rel="stylesheet" href="../share/style.css" type="text/css" />
<script type="text/javascript" src="../share/navigate.js"></script>
</head>
<body onload="nav_init (1277152274, 1277238674);">
<h1>Software error:</h1>
<pre>opendir (/var/lib/collectd/rrd): No such file or directory at ../lib/Collectd/Graph/Common.pm line 263
Collectd::Graph::Common::get_all_hosts() called at ../lib/Collectd/Graph/Common.pm line 452
Collectd::Graph::Common::get_host_selection() called at /var/www/collection3/bin/index.cgi line 167
main::show_selector() called at /var/www/collection3/bin/index.cgi line 221
main::action_list_hosts() called at /var/www/collection3/bin/index.cgi line 64
</pre>
[/code]

There are a whole bunch of rrd files in /var/lib/collectd/www.mysite.com/

I have no experience with this whatsoever, and don't even know what rrd files are!

The system I am testing this on is CentOS, Nginx, fast-cgi (no apache).

Any pointers to what I need to do?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready