certain graph template won't gen rrd file (devel log inside)

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
empath
Posts: 8
Joined: Tue Jul 13, 2010 3:33 pm

certain graph template won't gen rrd file (devel log inside)

Post by empath »

We created a new graph template and tried to add some graphs for a host using that template.


When we save the data source with that template, what shows up in the log is this:

09/02/2010 09:53:13 AM - CMDPHP: Poller[0] DEVEL: SQL Exec: "update data_template_data set name_cache='another test - NS Int Stats' where local_data_id=2157"
09/02/2010 09:53:13 AM - CMDPHP: Poller[0] DEVEL: SQL Exec: "update data_template_data set name_cache='another test - NS Int Stats' where local_data_id=2157"


Then the poller never creates or updates the RRD file.

If I then change it to the built in in/out bits graph in the data source menu, the following happens:


09/02/2010 09:53:13 AM - CMDPHP: Poller[0] DEVEL: SQL Exec: "INSERT INTO poller_item (local_data_id, host_id, action,hostname, snmp_community, snmp_version, snmp_timeout, snmp_username, snmp_password, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context, snmp_port, rrd_name, rrd_path, rrd_num, rrd_step, rrd_next_step, arg1, arg2, arg3) VALUES [..correct values here...])"
09/02/2010 09:53:13 AM - CMDPHP: Poller[0] DEVEL: SQL Exec: "INSERT INTO poller_item (local_data_id, host_id, action,hostname, snmp_community, snmp_version, snmp_timeout, snmp_username, snmp_password, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context, snmp_port, rrd_name, rrd_path, rrd_num, rrd_step, rrd_next_step, arg1, arg2, arg3) VALUES ([...correct values here...)"


Then it successfully creates and updates the data source on the next polling round:


09/02/2010 09:55:06 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/another_test_ns_int_traffic_in_2157.rrd --template NS_Int_traffic_in:NS_Int_traffic_out N:0:0
09/02/2010 09:55:06 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/cacti/rra/another_test_ns_int_traffic_in_2157.rrd --step 300 DS:NS_Int_traffic_in:COUNTER:600:0:100000000 DS:NS_Int_traffic_out:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1: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:500 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797

Then if I switch it back, it does the following:

09/02/2010 09:59:47 AM - CMDPHP: Poller[0] DEVEL: SQL Exec: "update data_template_data set name_cache='another test - NS Int Stats' where local_data_id=2157"
09/02/2010 09:59:47 AM - CMDPHP: Poller[0] DEVEL: SQL Exec: "update data_template_data set name_cache='another test - NS Int Stats' where local_data_id=2157"

and stops updating.

-----

Where should I be looking at to see what would cause this behavior? The data query template, the graph template, the data source?
empath
Posts: 8
Joined: Tue Jul 13, 2010 3:33 pm

Post by empath »

I figured it out. I hadn't checked the datasources in the graph template association for the data query. It's not super obvious what those checkboxes are for.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests