• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Debian (4.0) upgraded auf Lenny (5.0.4), CACTI Graphs Leer!

robaran

Newbie
Hallo zusammen,
Nachdem update debian Etch auf Lenny, CACTI Graphs sind leer!
Debug Mode: RRD-Files vorhanden.
Wenn ich manuell "php poller.php" starte, sieht o.k aus, auch in cacti.log fuer mich kein fehler ersichtlich. .
Woran kann das liegen?

Vielen Dank im Voraus

Cacti Version 0.8.7d

Linux debian 2.6.26-2-686 #1 SMP Sat Dec 26 09:01:51 UTC 2009 i686 GNU/Linux
~# cat /etc/debian_version
5.0.4

~# php --version
PHP 5.2.6-1+lenny4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 22 2009 02:38:03)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies



php poller.php
Code:
...
...
OK u:0.03 s:0.05 r:48.36
Waiting on 1/1 pollers.
OK u:0.03 s:0.06 r:49.37
OK u:0.03 s:0.06 r:49.37
OK u:0.03 s:0.06 r:49.37
Waiting on 1/1 pollers.
OK u:0.03 s:0.06 r:50.42
OK u:0.03 s:0.06 r:50.42
Waiting on 1/1 pollers.
OK u:0.03 s:0.06 r:51.37
OK u:0.03 s:0.06 r:51.37
OK u:0.03 s:0.06 r:52.38
OK u:0.03 s:0.06 r:52.38
02/16/2010 10:59:56 AM - SYSTEM STATS: Time:52.5134 Method:cmd.php Processes:1 Threads:N/A Hosts:69 HostsPerProcess:69 DataSourc
es:797 RRDsProcessed:411


Cacti log
Code:
02/16/2010 10:41:31 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '234', Max Runtime '298', Poller Runs: '1'
02/16/2010 10:41:31 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /usr/share/cacti7d/scripts/linux_memory.pl MemFree:, output: 817788
02/16/2010 10:41:31 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /usr/share/cacti7d/scripts/linux_memory.pl SwapFree:, output: 1003960
...

02/16/2010 10:41:31 AM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 149.236.39.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.49, output: 3606167099
02/16/2010 10:41:31 AM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 149.236.39.2, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.49, output: 3062473711
02/16/2010 10:41:31 AM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: 149.236.39.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.50, output: 843469585

02/16/2010 11:14:57 AM - CMDPHP: Poller[0] Host[80] DS[397] SERVER: /usr/share/cacti7d/scripts/ss_host_disk.php ss_host_disk host2.my.lan 80 1:161:500:1:10:public:::MD5::DES: get total 5, output: 0
02/16/2010 11:14:57 AM - CMDPHP: Poller[0] Host[80] DS[397] SERVER: /usr/share/cacti7d/scripts/ss_host_disk.php ss_host_disk host2.my.lan 80 1:161:500:1:10:public:::MD5::DES: get used 5, output: 1402404864
...
02/16/2010 11:15:11 AM - CMDPHP: Poller[0] Host[90] DS[457] WARNING: Result from SNMP not valid.  Partial Result: U
02/16/2010 11:15:11 AM - CMDPHP: Poller[0] Host[90] DS[457] SNMP: v1: 192.168.50.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, output: U
02/16/2010 11:15:11 AM - CMDPHP: Poller[0] Time: 52.4467 s, Theads: N/A, Hosts: 68
02/16/2010 11:15:12 AM - SYSTEM STATS: Time:53.4564 Method:cmd.php Processes:1 Threads:N/A Hosts:69 HostsPerProcess:69 DataSources:797 RRDsProcessed:411


RRDTool Command:
Code:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="host2.my.lan - CPU Utilization - CPU0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/share/cacti7d/rra/luka_my_lan_cpu_383.rrd":cpu:AVERAGE \
AREA:a#FF0000FF:"CPU Utilization"  \
GPRINT:a:LAST:"Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"

RRDTool Says:
OK


ls -lsa cacti
Code:
insgesamt 1012
-rwxrwxr-x 1 www-data www-data   6393 12. Feb 2009  about.php
...
drwxrwxr-x 2 www-data www-data   4096 15. Feb 17:25 cli
...
drwxrwxr-x 2 www-data www-data   4096 15. Feb 17:25 images
drwxrwxr-x 4 www-data www-data   4096 15. Feb 17:25 include
-rwxrwxr-x 1 www-data www-data   2242 12. Feb 2009  index.php
drwxrwxr-x 2 www-data www-data   4096 15. Feb 17:25 install
drwxrwxr-x 3 www-data www-data   4096 15. Feb 17:25 lib
-rwxrwxr-x 1 www-data www-data  15141 12. Feb 2009  LICENSE
drwxrwxr-x 2 www-data www-data   4096 16. Feb 10:39 log
...
drwxrwxr-x 5 www-data www-data   4096 15. Feb 17:25 resource
drwxrwxr-x 2 www-data www-data  28672 16. Feb 10:42 rra
-rwxrwxr-x 1 www-data www-data   7088 12. Feb 2009  rra.php
drwxrwxr-x 2 www-data www-data   4096 15. Feb 17:25 scripts
....
 
Für Dumme zum mitmeißeln: Die Graphen werden zwar angezeigt aber ohne Inhalt? Du hast Cacti per deb-paket installiert oder über die Cacti-pakete?

[Edit fragt:] Ein snmp-walk auf die entsprechende Maschine liefert Daten? [/Edit]
 
OP
R

robaran

Newbie
Geier0815 schrieb:
Für Dumme zum mitmeißeln: Die Graphen werden zwar angezeigt aber ohne Inhalt? Du hast Cacti per deb-paket installiert oder über die Cacti-pakete?

[Edit fragt:] Ein snmp-walk auf die entsprechende Maschine liefert Daten? [/Edit]

Hallo,
Richtig, Die Graphen werden ohne Inhalt angezeigt und snmpwalk liefert daten auch.
Ich habe Cacti Version 0.8.7.b auf version Version 0.8.7e (mit cacti-0.8.7e.tar.gz) aktualisiert.
Vor ugrade auf Lenny funtionierte alles wie erwünscht.

Was ich festgestellt habe, cronjob funktioniert nicht!. Wenn ich manuell ausführe (auch als cactiuser) funktioniert.

Code:
~#php cmd.php >/usr/share/cacti/log/cmd-error.log

02/17/2010 08:22:45 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /usr/share/cacti/scripts/linux_memory.pl MemFree:, output: 117292
02/17/2010 08:22:45 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /usr/share/cacti/scripts/linux_memory.pl SwapFree:, output: 1003356
02/17/2010 08:22:45 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /usr/share/cacti/scripts/loadavg_multi.pl, output: 1min:0.31 5min:0.23 10min:0.23
02/17/2010 08:22:45 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /usr/share/cacti/scripts/unix_users.pl , output: 1
02/17/2010 08:22:45 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /usr/share/cacti/scripts/unix_processes.pl, output: 100
02/17/2010 08:22:45 AM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 192.168.128.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.49, output: 575338346
02/17/2010 08:22:45 AM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 192.168.128.2, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.49, output: 4004368708
...

Code:
~php poller.php /usr/share/cacti/log/poller-error.log

02/17/2010 08:26:05 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '27817', Max Runtime '298', Poller Runs: '1'
02/17/2010 08:26:05 AM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval!  The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 27817 seconds have passed since the last poll!
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.02
...


crontab:

*/5 * * * * /usr/bin/php /usr/share/cacti/poller.php >/usr/share/cacti/log/poller-error.log
 
Wenn Du schreibst crontab, gehe ich von /etc/crontab aus und dann stellt sich mir bei deiner geposteten Zeile die Frage welcher Benutzer denn den Job ausführen soll.

*/5 * * * * www-data /usr/bin/php /usr/share/cacti/poller.php >/usr/share/cacti/log/poller-error.log

Dh die Zeile muß entweder www-data (oder wie auch immer der user des apache heißt) als ausführenden User enthalten (oder den von dir gewählten cactiuser laut Installation)
 
Oben