[collectd] [PATCH] AIX: Change processor loop from index to pointers

2010-07-20 Thread Manuel Luis Sanmartín Rozada
--- src/cpu.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cpu.c b/src/cpu.c index 7aa6361..cfdea58 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -561,6 +561,7 @@ static int cpu_read (void) #elif defined(HAVE_PERFSTAT) perfstat_id_t id; +

[collectd] [PATCH] AIX: Detect offline cpus

2010-07-20 Thread Manuel Luis Sanmartín Rozada
--- src/cpu.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src/cpu.c b/src/cpu.c index cfdea58..30f2b96 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -143,6 +143,8 @@ static int maxcpu; static perfstat_cpu_t *perfcpu; static int numcpu; static int

[collectd] [PATCH] new plugin: AIX WPAR

2010-07-20 Thread Manuel Luis Sanmartín Rozada
--- configure.in|4 + src/Makefile.am | 13 src/wpar.c | 185 +++ 3 files changed, 202 insertions(+), 0 deletions(-) create mode 100644 src/wpar.c diff --git a/configure.in b/configure.in index fc12c08..0257dc7 100644 ---

[collectd] rrdgraph in javascript

2011-05-19 Thread Manuel Luis Sanmartín Rozada
Hi. The other day I had a crazy idea: get the code of rrdtool and convert to javascript. It's needs more work, is a simple translation of the C code. It uses canvas and works in Chome 10 and Firefox 4, it has much better performance in Chome. To view an example: it has a very simple command

Re: [collectd] rrdgraph in javascript

2011-05-19 Thread Manuel Luis Sanmartín Rozada
One more thing: in the test2 you can use the mouse to move the graph: click and drag to move sideways, and to zoom use the wheel. ___ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd

Re: [collectd] rrdgraph in javascript

2011-05-19 Thread Manuel Luis Sanmartín Rozada
for the conversion from floats to integers, I think this is why not work in IE. On Thu, May 19, 2011 at 2:42 PM, Richard Wall rich...@the-moon.net wrote: On 19 May 2011 12:13, Manuel Luis Sanmartín Rozada manuel.l...@gmail.com wrote: One more thing: in the test2 you can use the mouse to move the graph: click

[collectd] [PATCH] tcpconns plugin: add support for AIX

2011-06-06 Thread Manuel Luis Sanmartín Rozada
Hi. In AIX there is a undocumented function/syscall in libc: netinfo returns a structure with the state of the tcp connections. I didn't found the description or info abut this syscall, I guess is something like this: int netinfo (int proto, void *data, int *size, int n); and the struct

[collectd] [PATCH 1/1] contextswitch plugin: add support for AIX

2011-06-06 Thread Manuel Luis Sanmartín Rozada
--- configure.in|1 + src/Makefile.am |4 src/contextswitch.c | 23 ++- 3 files changed, 27 insertions(+), 1 deletions(-) diff --git a/configure.in b/configure.in index 4fd08ce..08e9535 100644 --- a/configure.in +++ b/configure.in @@ -4375,6 +4375,7

Re: [collectd] rrdgraph in javascript

2011-09-04 Thread Manuel Luis Sanmartín Rozada
Richard, thanks for the changes. I reorganized the code, separated the draw functions and add output in svg and pdf, there are some issues with the calculation of text width, align etc... I separated the function to fetch the data, functionality to add different fetch functions in the same graph

Re: [collectd] [PATCH] tcpconns plugin: add support for AIX

2011-09-20 Thread Manuel Luis Sanmartín Rozada
Compiled and working on AIX 7. On Tue, Aug 23, 2011 at 3:57 PM, Florian Forster o...@collectd.org wrote: Hi Manuel, On Mon, Jun 06, 2011 at 02:14:27PM +0200, Manuel Luis Sanmartín Rozada wrote: In AIX there is a undocumented function/syscall in libc: netinfo returns a structure

[collectd] [PATCH] Notify DBI plugin

2011-09-20 Thread Manuel Luis Sanmartín Rozada
Hello. I created a plugin to insert notifications in a database, It's based on dbi.c. A issue is remaining: dbi.c and notify_dbi.c both call dbi_initialize on init. You can get tracking of the Failure and Warning notifications active. In the following example only the Ok notifications deletes

Re: [collectd] [PATCH] Notify DBI plugin

2011-09-20 Thread Manuel Luis Sanmartín Rozada
The copy and paste break some lines, sorry. --- configure.in |2 + src/Makefile.am | 11 + src/notify_dbi.c | 691 ++ 3 files changed, 704 insertions(+), 0 deletions(-) create mode 100644 src/notify_dbi.c diff --git a/configure.in

Re: [collectd] Buiding collectd on AIX

2012-11-13 Thread Manuel Luis Sanmartín Rozada
Hi. To compile the version 5 (collectd-5.1.1), I use the scripts: clean.sh and build.sh from the repository to regenerate the configure, because the default from the tarball not create the .so files in src/.libs You will need automake, autoconf and libtool to regenerate the configure. Also use

Re: [collectd] CollectD Notifications in SNMP Traps

2014-02-08 Thread Manuel Luis Sanmartín Rozada
Hello. I've done a plugin that sends notifications as snmp traps for integrate collectd notifications with other systems, and It works well for me. The configuration is like this: LoadPlugin notify_snmp Plugin notify_snmp OIDs collectd EnterpriseOIDSNMPv2-SMI::experimental.100

Re: [collectd] CollectD Notifications in SNMP Traps

2014-02-08 Thread Manuel Luis Sanmartín Rozada
, Manuel Luis Sanmartín Rozada manuel.l...@gmail.com wrote: Hello. I've done a plugin that sends notifications as snmp traps for integrate collectd notifications with other systems, and It works well for me. The configuration is like this: LoadPlugin notify_snmp Plugin notify_snmp OIDs

Re: [collectd] Patch: Support custom CPU interval v2

2014-03-10 Thread Manuel Luis Sanmartín Rozada
Hello. If I understand you problem correctly, you can use a function that collectd already have: set a plugin-specific interval for collecting metrics: LoadPlugin cpu Interval 60 /LoadPlugin Or am I missing something? On Sun, Mar 9, 2014 at 6:47 PM, Lee

Re: [collectd] Patch: Support custom CPU interval v2

2014-03-25 Thread Manuel Luis Sanmartín Rozada
another look.. Cheers, Lee H On 10 March 2014 23:58, Manuel Luis Sanmartín Rozada manuel.l...@gmail.comwrote: Hello. If I understand you problem correctly, you can use a function that collectd already have: set a plugin-specific interval for collecting metrics: LoadPlugin cpu

Re: [collectd] Strange Time value in notification test

2014-06-18 Thread Manuel Luis Sanmartín Rozada
In utils_time.h #define CDTIME_T_TO_TIME_T(t) ((time_t) ((t) / 1073741824)) The problem is that when it parses the time in PUTNOTIF it's not converted from a timestamp to cdtime_t Fixed in https://github.com/collectd/collectd/pull/644 On Wed, Jun 18, 2014 at 10:54 PM, Dan Fandrich

Re: [collectd] tcpconns global statistics

2014-07-09 Thread Manuel Luis Sanmartín Rozada
Hello. There is a pull request with this feature. Tcpconns add all ports summary: https://github.com/collectd/collectd/pull/488 On Wed, Jul 9, 2014 at 5:18 PM, Yves Mettier ymett...@free.fr wrote: Hello, If you specify no option for tcpconns, you will get a graph for all TCP connections

[collectd] Change the model of host/plugin-plugin_instance/type-type_instance to a tag model.

2016-11-19 Thread Manuel Luis Sanmartín Rozada
Hello. For me, the collectd model of host/plugin-plugin_instance/type-type_instance was worked well for host metrics and for backends like rrdtool or graphite, but when you collect metrics from applications or need to add some info you start to overload plugin_instance and type_instance appending