Hi guys,
I ran some test dicted in the page of the link from the preview post of BSOD2600 and here are the results.
Check Cacti Log File:
i have 2 cacti.log file:
/usr/share/cacti/site/log/cacti.log --> empty
/var/log/cacti/cacti.log --> poll stats
Quote:
07/29/2009 12:00:03 PM - SYSTEM STATS: Time:1.1673 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:6 RRDsProcessed:5
that was the last poll.
Check Basic Data Gathering:For scripts, run them as cactiuser from cli to check basic functionalityQuote:
user@VMCnslSprvsn:~$ perl /usr/share/cacti/site/scripts/ping.pl 192.168.70.1
0.739user@VMCnslSprvsn:~$
For snmp, snmpget the _exact_ OID you're asking for, using same community string and snmp version as defined within cacti
Quote:
user@VMCnslSprvsn:~/Desktop$ snmpget -c public -v 2c 192.168.70.1 ifOutOctets.3
IF-MIB::ifOutOctets.3 = Counter32: 133537261
Check Cacti's Poller:In crontab for user (the cacti's user)Quote:
*/5 * * * * sudo /usr/share/cacti/site/poller.php
I use spine.
From the log in DEBUG mode:Quote:
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT id, hostname, snmp_community, snmp_version, snmp_username, snmp_password, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context, snmp_port, snmp_timeout, max_oids, availability_method, ping_method, ping_port, ping_timeout, ping_retries, status, status_event_count, status_fail_date, status_rec_date, status_last_error, min_time, max_time, cur_time, avg_time, total_polls, failed_polls, availability FROM host WHERE id=2'
07/29/2009 12:55:02 PM - SPINE: Poller[0] Host[2] PING Result: Ping not performed due to setting.
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'UPDATE host SET status='1', status_event_count='85', status_fail_date='0000-00-00 00:00:00', status_rec_date='2009-07-28 15:45:05', status_last_error='Ping not performed due to setting.', min_time='0.345500', max_time='0.563500', cur_time='0.416000', avg_time='0.424590', total_polls='121', failed_polls='87', availability='28.0992' WHERE id='2''
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT snmp_port, count(snmp_port) FROM poller_item WHERE host_id=2 AND rrd_next_step < 0 GROUP BY snmp_port'
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT action, hostname, snmp_community, snmp_version, snmp_username, snmp_password, rrd_name, rrd_path, arg1, arg2, arg3, local_data_id, rrd_num, snmp_port, snmp_timeout, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context FROM poller_item WHERE host_id=2 and rrd_next_step <=0 ORDER by snmp_port'
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'UPDATE poller_item SET rrd_next_step=rrd_next_step-300 WHERE host_id=2'
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'UPDATE poller_item SET rrd_next_step=rrd_step-300 WHERE rrd_next_step < 0 and host_id=2'
07/29/2009 12:55:02 PM - SPINE: Poller[0] Host[2] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
Check RRD File Update:there is no update of the .rrd file of the empty graph ...
Check MySQL Update:there is no update in mysql table poller_output for the concerned host
:s
Check RRD File Ownership:Quote:
-rw-r--r-- 1 www-data www-data 141488 jui 29 15:10 localhost_load_1min_5.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 29 15:10 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 29 15:10 localhost_mem_swap_4.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 29 15:10 localhost_proc_7.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 29 15:10 localhost_users_6.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 28 15:40 router_de_test_local_snmp_oid_14.rrd
Check RRD File Numbers:Quote:
user@VMCnslSprvsn:~/Desktop$ sudo rrdtool fetch router_de_test_local_snmp_oid_14.rrd AVERAGE
nan at every numer ...
Quote:
sudo rrdtool info <rrd file>
ds[snmp_oid].min = 0,0000000000e+00
ds[snmp_oid].max = 1,0000000000e+02
Check RRDTool Graph Statement:Quote:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="router de test (local) -" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--vertical-label="0" \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/router_de_test_local_snmp_oid_14.rrd":snmp_oid:AVERAGE \
AREA:a#F5F800FF:"" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
Miscellaneous:Quote:
mysql > select count(*) from poller_output;
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
RPM Installation:
I have a cron here:
/etc/cron.d/cacti
and in the "user" crontab
(which one should i delete ?)
NOTE: that collecting data and graphing about localhost is ok but it makes emtpy graph on my router's data.