PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Komisches Verhalten von Collected



DanielWydler
26.09.08, 00:47
Moin, Moin,
ich habe hier einen Server mit Debian Etch 4.0r4 in der 64Bit Version. Zur Überwachung von Last, CPU, RAM und Ping habe ich mich entschlossen das Tool "collected" & rrdtool einzusetzen. Dazu habe ich folgende Anleitung gefunden: http://wiki.lugbz.de/HowTo/SelfMadeMonitoring

Auf einem 32Bit Testsystem funktioniert es wunderbar, doch auf der Produktivmaschine (64Bit) wird die Datei /var/log/syslog mit solchen Einträgen vollgemüllt:


Sep 26 00:36:36 dserver001 collectd[4893]: rrd_update failed: df-dev.rrd: illegal attempt to update using time 1222382196 when last update time is 1222382196 (minimum one second step)
Sep 26 00:36:36 dserver001 collectd[4893]: rrd_update failed: df-dev-shm.rrd: illegal attempt to update using time 1222382196 when last update time is 1222382196 (minimum one second step)
Sep 26 00:36:36 dserver001 collectd[4893]: rrd_update failed: df-backups.rrd: illegal attempt to update using time 1222382196 when last update time is 1222382196 (minimum one second step)
Sep 26 00:36:36 dserver001 collectd[4893]: rrd_update failed: df-home.rrd: illegal attempt to update using time 1222382196 when last update time is 1222382196 (minimum one second step)
Sep 26 00:36:36 dserver001 collectd[4893]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222382196 when last update time is 1222382196 (minimum one second step)
Sep 26 00:36:36 dserver001 collectd[4893]: rrd_update failed: cpu-0.rrd: illegal attempt to update using time 1222382196 when last update time is 1222382196 (minimum one second step)
Sep 26 00:36:36 dserver001 collectd[4893]: rrd_update failed: cpu-1.rrd: illegal attempt to update using time 1222382196 when last update time is 1222382196 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: users.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: traffic-lo.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: interface-lo/if_packets.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: interface-lo/if_errors.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: traffic-eth1.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: interface-eth1/if_packets.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: interface-eth1/if_errors.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: traffic-sit0.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: interface-sit0/if_packets.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: interface-sit0/if_errors.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4890]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: swap.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: processes.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: memory.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: load.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: df-lib-init-rw.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: df-dev.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: df-dev-shm.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: df-backups.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: df-home.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: cpu-0.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)
Sep 26 00:36:46 dserver001 collectd[4893]: rrd_update failed: cpu-1.rrd: illegal attempt to update using time 1222382206 when last update time is 1222382206 (minimum one second step)

Ich habe keine Ahnung wodurch der Fehler produziert wird und warum. Ich habe schon ein bisschen gegoogelt aber nichts sinnvolles gefunden.


Grüsse,
Dani

MiGo
26.09.08, 00:56
Ich habe keine Ahnung wodurch der Fehler produziert wird und warum. Ich habe schon ein bisschen gegoogelt aber nichts sinnvolles gefunden.
Steht ja da - du versuchst häufiger als einmal pro Sekunde die Werte in die Datenbank zu schreiben :)
Läuft das 64-Bit-System in einer VM?
Ansonsten hat collected sicher auch eine Konfig - poste die doch mal hier.

DanielWydler
26.09.08, 01:04
Ne, die 64Bit Version ist physikalisch installiert...

Hier mal die Config:


# Config file for collectd(1).
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.

Mode Local

# If in "Client" mode you have to specify which server to send datagrams to.
#Mode Client
#Server 123.123.123.123 12345

#Mode Server

#Mode Log

#DataDir /var/lib/collectd
#PIDFILE /var/run/collectd.pid
#PluginDir /usr/lib/collectd

#LoadPlugin apache
#LoadPlugin apcups
#LoadPlugin apple_sensors
#LoadPlugin battery
LoadPlugin cpu
#LoadPlugin cpufreq
LoadPlugin df
LoadPlugin disk
#LoadPlugin hddtemp
LoadPlugin load
LoadPlugin memory
#LoadPlugin mysql
#LoadPlugin nfs
#LoadPlugin ntpd
LoadPlugin ping
LoadPlugin processes
#LoadPlugin sensors
#LoadPlugin serial
LoadPlugin swap
#LoadPlugin tape
LoadPlugin traffic
LoadPlugin users
#LoadPlugin vserver
#LoadPlugin wireless

#<Plugin apache>
# URL http://localhost/status?auto
# User www-user
# Password secret
# CACert /etc/ssl/ca.crt
#</Plugin>

#<Plugin apcups>
# Host localhost
# Port 3551
#</Plugin>

#<Plugin hddtemp>
# Host 127.0.0.1
# Port 7634
#</Plugin>

#<Plugin ntpd>
# Host localhost
# Port 123
#</Plugin>

#<Plugin mysql>
# Host localhost
# User db_user
# Password secret
# Database db_name
#</Plugin>

#<Plugin ping>
# Host host.foo.bar
# Host host.baz.qux
#</Plugin>

#<Plugin traffic>
Interface eth1
# IgnoreSelected false
#</Plugin>

Ganz normale Standardvorlage....

DanielWydler
26.09.08, 01:26
So, eine kl. Ergänzung habe ich jetzt doch:
Wie ich eben über ps-ax gesehen habe, läuft der Dienst 2x mit 2 verschiedenen Configs. Warum, fragt mich nicht. Ich habe nun beide Prozesse gekillt und den Dienst neugestartet. Somit sieht das Log besser aus. Ein Fehler bleibt nach wie vor da:


Sep 26 01:20:26 dserver001 collectd[5087]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222384826 when last update time is 1222384826 (minimum one second step)
Sep 26 01:20:36 dserver001 collectd[5087]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222384836 when last update time is 1222384836 (minimum one second step)
Sep 26 01:20:46 dserver001 collectd[5087]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222384846 when last update time is 1222384846 (minimum one second step)
Sep 26 01:20:56 dserver001 collectd[5087]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222384856 when last update time is 1222384856 (minimum one second step)
Sep 26 01:21:06 dserver001 collectd[5087]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222384866 when last update time is 1222384866 (minimum one second step)
Sep 26 01:21:16 dserver001 collectd[5087]: rrd_update failed: df-root.rrd: illegal attempt to update using time 1222384876 when last update time is 1222384876 (minimum one second step)

Sobald ich in der collected.conf die Zeile "LoadPlugin df" auskommentiere, schwindet die Meldung im Log. Achja, es ist im Moment ein RAID1 über einen Controller verbaut und die sichtbare Platte ist unter Linux noch partioniert.