>[оверквотинг удален]
>> * *
>> * cacti
>> /usr/local/bin/php /usr/local/share/cacti/poller.php
>> есть еще какие-нибудь идеи ?
> В кроне закаментить */5 *
> * *
> *
> cacti /usr/local/bin/php /usr/local/share/cacti/poller.php
> и попробуйте от руки /usr/local/bin/php /usr/local/share/cacti/poller.php
> Что кричит?закомментировал строчку поллера в кроне,
когда запускаю скрипт руками получаю следующее:
localhost# /usr/local/bin/php /usr/local/share/cacti/poller.php
06/23/2011 10:24:18 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '199', Max Runtime '298', Poller Runs: '1'
06/23/2011 10:24:18 AM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 199 seconds have passed since the poller last ran.
localhost# /usr/local/bin/php /usr/local/share/cacti/poller.php
06/23/2011 10:25:07 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '248', Max Runtime '298', Poller Runs: '1'
06/23/2011 10:25:07 AM - POLLER: Poller[0] ERROR: The path: is invalid. Can not continue
странно, как буд-то в кроне он выполняется или еще откуда-то, патч правильный, проверил
localhost# ls /usr/local/share/cacti | grep poller
poller.php
poller_commands.php
poller_export.php
попроблвал на всякий случай запустить 3 раз и вот что получил:
localhost# /usr/local/bin/php /usr/local/share/cacti/poller.php
06/23/2011 10:30:59 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '352', Max Runtime '298', Poller Runs: '1'
06/23/2011 10:30:59 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 352 seconds have passed since the last poll!
06/23/2011 10:30:59 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q "/usr/local/share/cacti/cmd.php" 0 0]
06/23/2011 10:30:59 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q "/usr/local/share/cacti/cmd.php" 1 1]
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
06/23/2011 10:30:59 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q "/usr/local/share/cacti/cmd.php" 2 2]
Waiting on 2 of 3 pollers.
06/23/2011 10:30:59 AM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
06/23/2011 10:30:59 AM - POLLER: Poller[0] Parsed MULTI output field '5min:0.00' [map 5min->load_5min]
06/23/2011 10:30:59 AM - POLLER: Poller[0] Parsed MULTI output field '10min:0.00' [map 10min->load_15min]
06/23/2011 10:30:59 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1308810659:U
OK u:0.01 s:0.01 r:0.01
06/23/2011 10:30:59 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1308810659:U
OK u:0.01 s:0.01 r:0.01
06/23/2011 10:30:59 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1308810659:0.00:0.00:0.00
OK u:0.01 s:0.01 r:0.02
06/23/2011 10:30:59 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_users_6.rrd --template users 1308810659:1
OK u:0.01 s:0.01 r:0.02
06/23/2011 10:30:59 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_proc_7.rrd --template proc 1308810659:58
OK u:0.01 s:0.01 r:0.02
06/23/2011 10:30:59 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_hdd_free_8.rrd --template hdd_used:hdd_free 1308810659:2218090:40321096
OK u:0.01 s:0.01 r:0.02
06/23/2011 10:30:59 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_hdd_free_9.rrd --template hdd_free:hdd_used 1308810659:667776:264162
OK u:0.01 s:0.01 r:0.02
06/23/2011 10:31:00 AM - POLLER: Poller[0] Parsed MULTI output field 'hdd2:44' [map hdd2->hdd2]
06/23/2011 10:31:00 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool create /usr/local/share/cacti/rra/localhost_users_16.rrd --step 300 DS:users:GAUGE:600:0:500 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
06/23/2011 10:31:00 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_users_16.rrd --template users N:1
06/23/2011 10:31:00 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_hdd_free_10.rrd --template hdd_used:hdd_free 1308810659:47606:11163690
OK u:0.01 s:0.01 r:1.06
OK u:0.01 s:0.01 r:1.06
06/23/2011 10:31:00 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_hdd_free_11.rrd --template hdd_used:hdd_free 1308810659:6930:11204366
06/23/2011 10:31:00 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/localhost_hdd1_15.rrd --template hdd2 1308810659:44
OK u:0.01 s:0.01 r:1.06
06/23/2011 10:31:00 AM - SYSTEM STATS: Time:1.4848 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:15 RRDsProcessed:11
OK u:0.01 s:0.01 r:1.06
OK u:0.01 s:0.01 r:1.06
Loop Time is: 1.488293170929
Sleep Time is: 298.50728678703
Total Time is: 1.4927132129669
совсем что-то я запутался :(