i've been trying to get this to run for a day or so without any success. ubuntu dapper (current) linux, 2 667mhz cpu's, 1gb ram. cacti Version 0.8.6h. graphs for all kinds of other things (linux, microsoft, netware, and printers) all work great.
i put the PHP files in the OP in the scripts directory, i imported the template. when i run the poller from the command line or with the script server on the command line, it works. it pulls the data from the table.
command line wrote:/usr/share/cacti/site/scripts# php ss_poller.php ss_poller
Time:292.9616 Method:cmd.php Processes:5 Threads:N/A Hosts:115 HostsPerProcess:23 DataSources:1378 RRDsProcessed:787
i know, it runs slow. leave me alone.script_server wrote:/usr/share/cacti/site# php script_server.php
PHP Script Server has Started - Parent is cmd
/usr/share/cacti/site/scripts/ss_poller.php ss_poller
Time:292.9616 Method:cmd.php Processes:5 Threads:N/A Hosts:115 HostsPerProcess:23 DataSources:1378 RRDsProcessed:787
quit
PHP Script Server Shutdown request received, exiting
i checked the debug in the graph editor.
i tried creating the "missing file" in question and setting RW permissions thinking that cacti/rrd would just "update" the file.debug mode from the graph editor wrote:RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Local - Poller Statistics" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="seconds" \
--slope-mode \
DEF:a="/usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd":Time:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd":Processes:AVERAGE \
DEF:c="/usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd":Threads:AVERAGE \
DEF:d="/usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd":Hosts:AVERAGE \
DEF:e="/usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd":HostsPerProcess:AVERAGE \
DEF:f="/usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd":DataSources:AVERAGE \
DEF:g="/usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd":RRDsProcessed:AVERAGE \
LINE1:a#FF00FF:"Poller Runtime" \
GPRINTLAST:" Current\:" \
GPRINTAVERAGE:"Average\:" \
GPRINTMAX:"Max\:\n" \
LINE1:b#FFD660:"Processes" \
GPRINTLAST:" Current\:\n" \
LINE1:c#FFAB00:"Threads" \
GPRINT:c:LAST:" Current\:\n" \
LINE1:d#FF0000:"Hosts" \
GPRINT:d:LAST:" Current\:\n" \
LINE1:e#DE0056:"Hosts per Process" \
GPRINT:e:LAST:"Current\:\n" \
LINE1:f#0000FF:"DataSources" \
GPRINT:f:LAST:" Current\:\n" \
LINE1:g#00CF00:"RRDs" \
GPRINT:g:LAST:" Current\:\n"
RRDTool Says:
ERROR: opening '/usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd': No such file or directory
touch /usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd
chown www-data /usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd
i got this error so i just deleted it again since that obviously doesn't work.
cacti logfile pertaining to the ss_poller?graph debug mode wrote:RRDTool Says:
ERROR: reading the cookie off /usr/share/cacti/site/rra/aht_nttc_localhost_rrdsprocessed_964.rrd faild.
any suggestions for resolving this would be great.snippet from the cacti.log wrote:/var/log/cacti# tail -n 9000 cacti.log | grep -i "ss_poller"
07/09/2006 02:30:07 AM - CMDPHP: Poller[0] Host[1] DS[917] SERVER: /usr/share/cacti/site/scripts/ss_poller.php ss_poller, output: U
07/09/2006 02:30:07 AM - CMDPHP: Poller[0] Host[1] DS[963] SERVER: /usr/share/cacti/site/scripts/ss_poller.php ss_poller, output: Time:109.9393 Method:cmd.php Processes:5 Threads:N/A Hosts:115 HostsPerProcess:23 DataSources:1379 RRDsProcessed:790
07/09/2006 02:35:06 AM - CMDPHP: Poller[0] Host[1] DS[917] SERVER: /usr/share/cacti/site/scripts/ss_poller.php ss_poller, output: U
07/09/2006 02:35:06 AM - CMDPHP: Poller[0] Host[1] DS[963] SERVER: /usr/share/cacti/site/scripts/ss_poller.php ss_poller, output: Time:292.6977 Method:cmd.php Processes:5 Threads:N/A Hosts:115 HostsPerProcess:23 DataSources:1379 RRDsProcessed:987
07/09/2006 02:40:06 AM - CMDPHP: Poller[0] Host[1] DS[917] SERVER: /usr/share/cacti/site/scripts/ss_poller.php ss_poller, output: U
07/09/2006 02:40:06 AM - CMDPHP: Poller[0] Host[1] DS[963] SERVER: /usr/share/cacti/site/scripts/ss_poller.php ss_poller, output: Time:292.5045 Method:cmd.php Processes:5 Threads:N/A Hosts:115 HostsPerProcess:23 DataSources:1379 RRDsProcessed:794
07/09/2006 02:45:06 AM - CMDPHP: Poller[0] Host[1] DS[917] SERVER: /usr/share/cacti/site/scripts/ss_poller.php ss_poller, output: U