Re: [collectd] segfault in notify_email

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

On 9/6/2010 5:11 PM, Florian Forster wrote:
> Hey Manuel,
> 
> On Mon, Sep 06, 2010 at 03:19:55PM +0200, Manuel CISSE wrote:
>> I'm currently testing your patch since a few hours, for now it seems
>> to work. I'll let you know if something happens but I think the
>> problem is fixed.
> 
> good to know, thanks for your feedback :) Please keep me informed if the
> problem happens to turn up again..

Still no problem so far.

>> Done (bug #595756).
> 
> Just out of curiosity, what bug tracker do you reference here?

Debian BTS (maybe I should have created an account to submit it to
collectd BTS instead ?).

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

iEYEARECAAYFAkyFCJ4ACgkQOMej/7dX0BBG9ACfWBXYvfBIMmSfipTO9/dT1r2p
azoAnAoe2l9sHEPKcxwHq907Z4rALxvZ
=laJr
-END PGP SIGNATURE-


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


Re: [collectd] segfault in notify_email

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

Hi Florian,

On 9/5/2010 9:48 AM, Florian Forster wrote:
> Hi Manuel,
> 
> On Fri, Aug 27, 2010 at 09:28:17AM +0200, Manuel CISSE wrote:
>> I'm using collectd 4.10.1 (Debian sid stock package) and I'm
>> experiencing segfaults in notify_email quite a few times a day.
> 
> I've added serialization code to the plugin which protects access to the
> library using a mutex. It'd be great if you could test the patch.
> Currently, the fix is only in the "collectd-4.9" branch. If you need it
> merged to 4.10 or master, please let me know.

I'm currently testing your patch since a few hours, for now it seems to
work. I'll let you know if something happens but I think the problem is
fixed.

> Also, could you please open a bug report for Debian? If you do so,
> Sebastian might be able to get this fix into Debian Lenny. (Provided
> the problem is fixed, of course ;)

Done (bug #595756).

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

iEYEARECAAYFAkyE6nsACgkQOMej/7dX0BDa3wCeJ63+sNhz3p4tGeg+MRfNsa4+
EikAoL59TIdR8ZRh2b0HqWMgRfKE2joG
=COI1
-END PGP SIGNATURE-


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


[collectd] segfault in notify_email

2010-08-27 Thread Manuel CISSE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

I'm using collectd 4.10.1 (Debian sid stock package) and I'm
experiencing segfaults in notify_email quite a few times a day.

Syslog :
Aug 26 23:03:58 evangeline kernel: [2532564.880645] collectd[7394]:
segfault at 0 ip (null) sp 7fff6b0d1cb8 error 14 in
collectd[40+21000]

Backtrace :
#0  0x in ?? ()
#1  0x7f81ed721cb2 in do_session (session=0x1a99dc0) at protocol.c:360
#2  0x7f81ed726404 in smtp_start_session (session=0x1a99dc0) at
smtp-api.c:428
#3  0x7f81ed92f712 in notify_email_notification (n=, user_data=) at notify_email.c:263
#4  0x0040b5f6 in plugin_dispatch_notification
(notif=0x7fff6b0d3230) at plugin.c:1533
#5  0x0040fa44 in uc_send_notification (name=0x1aef2c0
"nadia.irken.naken.net/df/df-root") at utils_cache.c:192
#6  0x0040fd66 in uc_check_timeout () at utils_cache.c:437
#7  0x0040641f in do_loop (argc=,
argv=) at collectd.c:336
#8  main (argc=, argv=) at
collectd.c:618

It seems that notify_email_notification() is called simultaneously by 2
threads leading to 2 calls to smtp_start_session on the same global var
session causing the crash (Note: my mail server is quite slow to
respond, with a faster mail server it may not happen).

Also, there is another minor bug : if collectd is stopped when a
notification is dispatched, notify_email_shutdown() destroys the session
which is used by notify_email_notification() causing a segfault.

I can provide more information if needed.

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

iEYEARECAAYFAkx3aREACgkQOMej/7dX0BBFMACggZMfiVFp0+EfJJZGF8E/p4gC
AIsAn324DfxVBBIYrwWZ8nptM4FggMi8
=NbSp
-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 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
> <http://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 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 <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
> 
> 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


Re: [collectd] Completely wrong entry in rrddb

2010-03-25 Thread Manuel CISSE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

Some weeks ago I posted a mail on this issue on this mailing list. I was
suggested to set a max value in the rrddb. This is only a workaround but
it works at least for me.

- -- 
regards,
Manuel

On 24/03/2010 19:26, Peter Warasin wrote:
> Hi guys
> 
> I'm trying to track down a nasty bug.. Probably you guys have some ideas
> what this could be or more better .. already the solution? :)
> 
> From time to time i find completely wrong values within the rrd
> databases generated by the tail plugin.
> Something like: 8.5899345900e+08. Seems to be an overflow.
> In reality there should be not more than 2e-1-4e-1
> 
> I'm pretty sure that this happens when collectd will be restarted, (Or
> stopped?), since it happens quite regularly midnight, when a cronjob
> runs which restarts collectd.
> 
> I was able to reproduce it also by manually restart it, therefore i
> think it does not happen because of rotated log files.
> This however is quite random, so definitively not so easy to find.
> 
> I *think* it has something to to when the rrd files will be closed ..
> Last flush?  Probably..
> 
> For now i test with 4.9.1 but it happened also with older versions.
> 
> 
> Do you have any suggestions?
> 
> 
> kind regards,
> peter
> 

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

iEYEARECAAYFAkurJXEACgkQOMej/7dX0BA3FwCeN6GgZhG8/LCmfQXNQRvZXMSz
QywAnj7b6Ubow+2+nOoQB5Ew2kn3gVTa
=xthL
-END PGP SIGNATURE-


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


Re: [collectd] Is there a way to to BIND plugin workable ?

2010-03-04 Thread Manuel CISSE
Hello,

On 04/03/2010 15:00, HYORDEY Julian wrote:
> Hi there,
>
> Sorry for my english.
>
> Well, I am trying to load just BIND plugin. Doesn't work for me..
>
> What I did :
>

[...]

>
> add this :
>
> Loadplugin bind
>
> to collectd.conf too.
>
> I am on lenny, get the "collectdCould not find plugin bind." error message. 
> Please, help me,
>  2 hours on that, I am becoming crazy..
>
> Oh, /usr/lib/collectd/bind.so doesn't exist.. normal ?

If you're using the package on lenny, it should be version collectd 4.4,
the bind plugin is available since 4.6.
You should either compile a more recent version of collectd or install a
more recent package.

-- 
regards,
Manuel CISSE


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


[collectd] huge values with tail plugin

2010-03-01 Thread Manuel CISSE
Hi all,

I'm using the tail plugin to monitor exim traffic and ssh failed/invalid
login.
My configuration (see below) is pretty much the same as in the man page,
but from time to time I have huge values (last was 229.1M for "Local
delivered") in the RRD database.

Does anybody what could be causing this behaviour? Any problem in my config?

regards,
Manuel

P.S.: relevant part of my config:


Instance "Failed SSH attempts"

Regex "Failed password"
DSType "CounterInc"
Type "counter"
Instance "Failed password"


Regex "Failed password for invalid user"
DSType "CounterInc"
Type "counter"
Instance "Invalid users"



Instance "Exim"

Regex "S=([1-9][0-9]*)"
DSType "CounterAdd"
Type "ipt_bytes"
Instance "Transferred bytes"


Regex "\\"
DSType "CounterInc"
Type "counter"
Instance "Local delivered"






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