Have you tried adding LoadPlugin rrdtool, so that it will make rrd files? <br><br><div class="gmail_quote">On Mon, Apr 23, 2012 at 12:21 PM, O G <span dir="ltr"><<a href="mailto:otis_junk@yahoo.com">otis_junk@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've removed LoadPlugin syslog just in case. Yes, I can see Collectd is running with ps:<br>
<br>
# ps auxww| grep collectd<br>
root 1272 0.0 0.1 44464 740 ? Ssl 17:06 0:00 /opt/collectd/sbin/collectd -C /opt/collectd/etc/collectd.conf<br>
<br>
Also, when I kill this process I see this in the log (/tmp/collectd.log in my case), so I know Collectd really is running before I kill it:<br>
<br>
[2012-04-23 17:06:21] [info] Exiting normally.<br>
[2012-04-23 17:06:21] [info] collectd: Stopping 5 read threads.<br>
<br>
And when I start it, I see the following in /tmp/collectd.log:<br>
<br>
[2012-04-23 17:06:52] [info] Initialization complete, entering read-loop.<br>
[2012-04-23 17:06:52] [warning] plugin_dispatch_values: No write callback has been registered. Please load at least one output plugin, if you want the collected data to be stored.<br>
[2012-04-23 17:06:52] [info] Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status 2 (ENOENT). Most likely this means you didn't load any write plugins.<br>
... the last [info] line above keeps repeating as collectd is running ...<br>
<br>
<br>
So this "No write callback has been registered. Please load at least one output plugin, if you want the collected data to be stored" log message really looks weird.<br>
What "output plugin" is this referring to? I do have "LoadPlugin cpu" and that should be writing CPU usage info to the log file under /opt/collectd/var/lib/collectd/.<br>
<br>
Here is a part of lsof output that shows cpu and logfile plugins are loaded. There is also a reference to /opt/collectd/var/lib/collectd directory that should have files with Collectd data, but doesn't:<br>
<br>
# lsof | grep collectd<br>
collectd 1272 root cwd DIR 202,1 4096 133804 /opt/collectd/var/lib/collectd<br>
collectd 1272 root mem REG 202,1 12814 133591 /opt/collectd/lib/collectd/cpu.so<br>
collectd 1272 root mem REG 202,1 16189 133621 /opt/collectd/lib/collectd/logfile.so<br>
...<br>
<br>
<br>
As for strace output, here it is:<br>
<br>
execve("/opt/collectd/sbin/collectd", ["/opt/collectd/sbin/collectd", "-C", "/opt/collectd/etc/collectd.conf"], [/* 31 vars */]) = 0<br>
brk(0) = 0x9f9a000<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77a9000<br>
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)<br>
open("/etc/ld.so.cache", O_RDONLY) = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=18810, ...}) = 0<br>
mmap2(NULL, 18810, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb77a4000<br>
close(3) = 0<br>
open("/lib/i686/nosegneg/librt.so.1", O_RDONLY) = 3<br>
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\30\0\0004\0\0\0"..., 512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0755, st_size=39676, ...}) = 0<br>
mmap2(NULL, 33332, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb779b000<br>
mmap2(0xb77a2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb77a2000<br>
close(3) = 0<br>
open("/lib/libresolv.so.2", O_RDONLY) = 3<br>
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240&\0\0004\0\0\0"..., 512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0755, st_size=103384, ...}) = 0<br>
mmap2(NULL, 104520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7781000<br>
mprotect(0xb7796000, 4096, PROT_NONE) = 0<br>
mmap2(0xb7797000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0xb7797000<br>
mmap2(0xb7799000, 6216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7799000<br>
close(3) = 0<br>
open("/lib/i686/nosegneg/libpthread.so.0", O_RDONLY) = 3<br>
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pL\0\0004\0\0\0"..., 512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0755, st_size=131044, ...}) = 0<br>
mmap2(NULL, 106976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7766000<br>
mmap2(0xb777d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0xb777d000<br>
mmap2(0xb777f000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb777f000<br>
close(3) = 0<br>
open("/lib/libdl.so.2", O_RDONLY) = 3<br>
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0"..., 512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0755, st_size=17892, ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7765000<br>
mmap2(NULL, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7760000<br>
mmap2(0xb7763000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7763000<br>
close(3) = 0<br>
open("/lib/i686/nosegneg/libc.so.6", O_RDONLY) = 3<br>
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@n\1\0004\0\0\0"..., 512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0755, st_size=1893680, ...}) = 0<br>
mmap2(NULL, 1657224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb75cb000<br>
mprotect(0xb7759000, 4096, PROT_NONE) = 0<br>
mmap2(0xb775a000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18e) = 0xb775a000<br>
mmap2(0xb775d000, 10632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb775d000<br>
close(3) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75ca000<br>
set_thread_area({entry_number:-1 -> 6, base_addr:0xb75ca6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0<br>
mprotect(0xb775a000, 8192, PROT_READ) = 0<br>
mprotect(0xb7763000, 4096, PROT_READ) = 0<br>
mprotect(0xb777d000, 4096, PROT_READ) = 0<br>
mprotect(0xb7797000, 4096, PROT_READ) = 0<br>
mprotect(0xb77a2000, 4096, PROT_READ) = 0<br>
mprotect(0xb77c9000, 4096, PROT_READ) = 0<br>
munmap(0xb77a4000, 18810) = 0<br>
set_tid_address(0xb75ca728) = 1324<br>
set_robust_list(0xb75ca730, 0xc) = 0<br>
futex(0xbf97ee10, FUTEX_WAKE_PRIVATE, 1) = 0<br>
futex(0xbf97ee10, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, bf97ee20) = -1 EAGAIN (Resource temporarily unavailable)<br>
rt_sigaction(SIGRTMIN, {0xb776a6a0, [], SA_SIGINFO}, NULL, 8) = 0<br>
rt_sigaction(SIGRT_1, {0xb776ab40, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0<br>
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0<br>
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0<br>
uname({sys="Linux", node="domU-12-31-38-00-A8-F5", ...}) = 0<br>
brk(0) = 0x9f9a000<br>
brk(0x9fbb000) = 0x9fbb000<br>
stat64("/opt/collectd/etc/collectd.conf", {st_mode=S_IFREG|0644, st_size=24208, ...}) = 0<br>
open("/opt/collectd/etc/collectd.conf", O_RDONLY) = 3<br>
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf97c978) = -1 ENOTTY (Inappropriate ioctl for device)<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=24208, ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77a8000<br>
read(3, "#\n# Config file for collectd(1)."..., 8192) = 8192<br>
read(3, "\tIgnoreSource \"192.168.0.1\"\n#\tSe"..., 8192) = 8192<br>
read(3, "queries\"\n# Socket \"/var/run/p"..., 8192) = 7824<br>
read(3, "", 4096) = 0<br>
read(3, "", 8192) = 0<br>
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf97c978) = -1 ENOTTY (Inappropriate ioctl for device)<br>
close(3) = 0<br>
munmap(0xb77a8000, 4096) = 0<br>
open("/opt/collectd/share/collectd/types.db", O_RDONLY|O_LARGEFILE) = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=6710, ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77a8000<br>
read(3, "absolute\t\tvalue:ABSOLUTE:0:U\napa"..., 4096) = 4096<br>
read(3, "nter\tvalue:DERIVE:0:U\nps_code\t\t\t"..., 4096) = 2614<br>
read(3, "", 4096) = 0<br>
close(3) = 0<br>
munmap(0xb77a8000, 4096) = 0<br>
open("/opt/collectd/lib/collectd", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3<br>
fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)<br>
getdents64(3, /* 194 entries */, 32768) = 6536<br>
lstat64("/opt/collectd/lib/collectd/logfile.so", {st_mode=S_IFREG|0755, st_size=16189, ...}) = 0<br>
futex(0xb7764068, FUTEX_WAKE_PRIVATE, 2147483647) = 0<br>
open("/opt/collectd/lib/collectd/logfile.so", O_RDONLY) = 4<br>
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\7\0\0004\0\0\0"..., 512) = 512<br>
fstat64(4, {st_mode=S_IFREG|0755, st_size=16189, ...}) = 0<br>
mmap2(NULL, 9308, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb77a6000<br>
mmap2(0xb77a8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1) = 0xb77a8000<br>
close(4) = 0<br>
close(3) = 0<br>
open("/opt/collectd/lib/collectd", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3<br>
getdents64(3, /* 194 entries */, 32768) = 6536<br>
lstat64("/opt/collectd/lib/collectd/cpu.so", {st_mode=S_IFREG|0755, st_size=12814, ...}) = 0<br>
open("/opt/collectd/lib/collectd/cpu.so", O_RDONLY) = 4<br>
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\6\0\0004\0\0\0"..., 512) = 512<br>
fstat64(4, {st_mode=S_IFREG|0755, st_size=12814, ...}) = 0<br>
mmap2(NULL, 7908, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb77a4000<br>
mmap2(0xb77a5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0) = 0xb77a5000<br>
close(4) = 0<br>
close(3) = 0<br>
chdir("/opt/collectd/var/lib/collectd") = 0<br>
rt_sigaction(SIGCHLD, {SIG_IGN, [], 0}, NULL, 8) = 0<br>
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb75ca728) = 1325<br>
exit_group(0) = ?<br>
<br>
<br>
Thanks!<br>
Otis<br>
<br>
<br>
<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: "Crowder, Travis" <<a href="mailto:Travis.Crowder@penton.com">Travis.Crowder@penton.com</a>><br>
To: O G <<a href="mailto:otis_junk@yahoo.com">otis_junk@yahoo.com</a>>; "<a href="mailto:collectd@verplant.org">collectd@verplant.org</a>" <<a href="mailto:collectd@verplant.org">collectd@verplant.org</a>><br>
Cc:<br>
Sent: Monday, April 23, 2012 12:25 PM<br>
Subject: RE: [collectd] Collectd on CentOS always broken?<br>
<br>
I don't think you can use two logs, but I am not positive on this. You are using syslog and a logfile with that config. I am not sure which one load, or if either does.<br>
<br>
What is in your /tmp/collectd.log?<br>
<br>
Do you get any errors when you configure or make?<br>
<br>
When you start collectd, are you able to verify it is still running via top or ps?<br>
<br>
If there is nothing in the /tmp/collectd.log and the process isn't running after you start it, can you start it with strace and post the output?<br>
<br>
-Travis<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:collectd-bounces@verplant.org">collectd-bounces@verplant.org</a> [mailto:<a href="mailto:collectd-bounces@verplant.org">collectd-bounces@verplant.org</a>] On Behalf Of O G<br>
Sent: Monday, April 23, 2012 11:17 AM<br>
To: <a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
Subject: Re: [collectd] Collectd on CentOS always broken?<br>
<br>
Hi Travis,<br>
<br>
Thanks for replying! I'm using this minimalistic collectd.conf:<br>
####<br>
Hostname "localhost"<br>
FQDNLookup true<br>
BaseDir "/opt/collectd/var/lib/collectd"<br>
PIDFile "/opt/collectd/var/run/collectd.pid"<br>
PluginDir "/opt/collectd/lib/collectd"<br>
TypesDB "/opt/collectd/share/collectd/types.db"<br>
#Interval 10<br>
#Timeout 2<br>
#ReadThreads 5<br>
<br>
LoadPlugin syslog<br>
LoadPlugin logfile<br>
<Plugin logfile><br>
LogLevel info<br>
File "/tmp/collectd.log"<br>
Timestamp true<br>
PrintSeverity true<br>
</Plugin><br>
<Plugin syslog><br>
LogLevel info<br>
</Plugin><br>
<br>
LoadPlugin cpu<br>
####<br>
<br>
I've now also compiled and installed collectd 5.1.0 by hand (configure, make, make install) on "Amazon Linux AMI" (something based on RedHat, it seems, since it has yum) and I got the exact same error message. So I'm starting to suspect I'm doing something wrong with Collectd.<br>
<br>
Also:<br>
# /opt/collectd/sbin/collectd -help<br>
...<br>
Builtin defaults:<br>
Config file /opt/collectd/etc/collectd.conf<br>
PID file /opt/collectd/var/run/collectd.pid<br>
Plugin directory /opt/collectd/lib/collectd<br>
Data directory /opt/collectd/var/lib/collectd <== nothing shows up here or in /opt/collectd/var/log/ collectd 5.1.0, <a href="http://collectd.org/" target="_blank">http://collectd.org/</a><br>
<br>
I've tried starting Collectd like this:<br>
# /opt/collectd/sbin/collectd -C /opt/collectd/etc/collectd.conf<br>
<br>
As well we like this:<br>
# /opt/collectd/sbin/collectdmon -c /opt/collectd/etc/collectd.conf<br>
<br>
Any help would be greatly appreciated.<br>
<br>
Thanks!<br>
Otis<br>
<br>
<br>
----- Original Message -----<br>
From: Travis Crowder <<a href="mailto:travis.crowder@spechal.com">travis.crowder@spechal.com</a>><br>
To: O G <<a href="mailto:otis_junk@yahoo.com">otis_junk@yahoo.com</a>><br>
Cc:<br>
Sent: Sunday, April 22, 2012 1:21 PM<br>
Subject: Re: [collectd] Collectd on CentOS always broken?<br>
<br>
On 4/21/2012 11:25 PM, O G wrote:<br>
> Hello,<br>
> Is there a version of CentOS with a working Collectd?<br>
> I have tried several CentOS 5.* and 6.* versions where I installed Collectd with yum install collectd and each of them had a non-working Collectd.<br>
> This is a common error message I'd find in /var/log/messages:<br>
> Filter subsystem: Built-in target `write': Dispatching value to all<br>
>write plugins failed with status 2 (ENOENT). Most likely this means you<br>
>didn't load any write plugins<br>
> Of course, there were plugins in collectd.conf that write stuff to filesytem.<br>
> Is there a version of CentOS with a working Collectd?<br>
> Thanks,<br>
> Otis<br>
><br>
> _______________________________________________<br>
> collectd mailing list<br>
> <a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
> <a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
<br>
I use Collectd exclusively on CentOS servers; CentOS 5 and CentOS 6. I install via YUM and build from source without issue.<br>
<br>
Can you post your collectd.conf from /etc/ or /opt/collectd/etc ?<br>
<br>
-Travis<br>
<br>
_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
<br>
_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Thanks, <br><br>Richard Shade<br>Integration Engineer<br>RightScale - <a href="http://www.rightscale.com/" target="_blank">http://www.rightscale.com/</a><br>phone: 8055004164x1018<br>
<br><div style="display:inline"></div><br>