about to spawn msg; no graphs / rrd files are not created

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
pipemajor
Posts: 4
Joined: Thu Mar 02, 2006 2:26 am

about to spawn msg; no graphs / rrd files are not created

Post by pipemajor »

Hi i am an newbi and i have some really big troubles!!!
Problem:
no graphs are created the rrd files are not created

history:
I used and older version of cacti (it was included at suse 9.3) and i made some xml data inputs with it. It worked great!

when i tried to install thold 2.1a the whole system broke -> i installed a newer vesion (0.8.6h) but still my graphs are not shown (i left the rrdtool versions and the mysql database as they were)

i ran php poller.php which produced the following message:
03/12/2006 01:11:46 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /srv/www/htdocs/cmd.php 0 3]

what can I do?
tgk
Posts: 28
Joined: Sat Mar 11, 2006 10:46 pm

Post by tgk »

Check that your cacti user has write access to the /rra folder.
Do you have the poller.php running every 5 min in your cron?
pipemajor
Posts: 4
Joined: Thu Mar 02, 2006 2:26 am

Post by pipemajor »

Hmm...
I checked it but i have the permissions and the poller might run I checked the cacti job file in /etc/cron.d/cacti which is
*/5 * * * * php /srv/www/htdocs/poller.php >/dev/null 2>&1
so i think it might run.

Including to that problem my log file grows and grows like:
03/12/2006 10:20:03 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('stats_poller','Time:1.0594 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:2 RRDsProcessed:1')"
03/12/2006 10:20:03 AM - SYSTEM STATS: Time:1.0594 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:2 RRDsProcessed:1
03/12/2006 10:20:03 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/rra/kowalskisaarouter_traffic_in_174.rrd --template traffic_in:traffic_out 1142155202:3575797713:2984603938
03/12/2006 10:20:03 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='174' and rrd_name='traffic_out' and time='2006-03-12 10:20:02'"
03/12/2006 10:20:03 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='174' and rrd_name='traffic_in' and time='2006-03-12 10:20:02'"
03/12/2006 10:20:03 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)"
03/12/2006 10:20:03 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
03/12/2006 10:20:03 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('date',NOW())"
03/12/2006 10:20:02 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())"
03/12/2006 10:20:02 AM - CMDPHP: Poller[0] Time: 0.0888 s, Theads: N/A, Hosts: 3
03/12/2006 10:20:02 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id,rrd_name,time,output) values (174,'traffic_out','2006-03-12 10:20:02','2984603938')"
03/12/2006 10:20:02 AM - CMDPHP: Poller[0] Host[3] DS[174] SNMP: v1: 195.70.104.221, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, output: 2984603938
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Those SNMP line shows, that data is gathered. The "rrdtool update" shows (attempted) updates of rrd files (if failed due to lack of permissions, you won't see an error message here; to debug: paste this cmd to cli and run from there).
So please be more precise, perhaps post a screenshot.
BTB: running cacti in DEBUG mode for a longer time is not recommended due to rapidly growing log file
Reinhard
pipemajor
Posts: 4
Joined: Thu Mar 02, 2006 2:26 am

Post by pipemajor »

got it,
thx for your fast replies!!!
i have solved it now in a very brutal way hehe
i deleted the cati database and added the original again and now it works!
strange isn't it?

greets
Heli
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests