[collectd] Problem with use of curl_json plugin

Pavel V. pavel2000 at ngs.ru
Sat Dec 17 18:44:26 CET 2011


Hi, Collectd-community.


I'm trying to use curl_json to get stats from php-fpm, and got an issue.

The plugin is configured as described on http://collectd.org/wiki/index.php/Plugin:cURL-JSON/phpfpm
(yeah, I'm  trying to use it, finally). My configuration is shown at the end of the message.

But I got RRDs with two dashes in filename.  (Between type and type_instance??).
The filenames are:

-rw-r--r-- 1 root root 148656 Dec 17 17:37 active_processes--active processes.rrd
-rw-r--r-- 1 root root 148656 Dec 17 17:36 http_requests--accepted conn.rrd
-rw-r--r-- 1 root root 148656 Dec 17 17:36 listen_queue_len--listen queue len.rrd
-rw-r--r-- 1 root root 148656 Dec 17 17:37 listen_queue--listen queue.rrd
-rw-r--r-- 1 root root 148656 Dec 17 17:36 total_processes--total processes.rrd

And I'm (and collection3 too) expecting what there will be one dash, not two.

The JSON string is :

root at web:/etc/collectd# GET http://nginx-status/fpm-status?json
{"pool":"forum","process manager":"dynamic","start time":1323335405,"start since":808104,"accepted conn":4694,"listen queue":0,"max listen queue":0,"listen queue len":128,"idle processes":19,"active processes":1,"total processes":20,"max active processes":5,"max children reached":0}

Because of two dashes I got no charts in collection3, etc.
What is wrong ?

Thanks for your answers and help.


Collectd version is 4.10.1-1+squeeze2.

Plugin configuration is:

<Plugin curl_json>
<URL "http://nginx-status/fpm-status?json">
    Instance "fpm"
    <Key "accepted conn">
        Type "http_requests"
    </Key>
    <Key "listen queue len">
        Type "listen_queue_len"
    </Key>
    <Key "listen queue">
        Type "listen_queue"
    </Key>
    <Key "active processes">
        Type "active_processes"
    </Key>
    <Key "total processes">
        Type "total_processes"
    </Key>
</URL>


-- 
С уважением,
 Pavel                          mailto:pavel2000 at ngs.ru




More information about the collectd mailing list