I've set up cacti on my local linux box and - offcourse - want it to graph things like cpu usage etcetera. My local linux machine is being graphed, but when I add the same machine, only by IP-address it won't work. The RRDTool says "ok" so that isn't the problem.. it's just that I don't get SNMP data..
My situation:
I've added a host called chaos and added these three graphs: ucd/net CPU usage, ucd/net load average, ucd/net memory usage but there isn't any data in the graphs created...
Specifications:
CentOS Linux 4.2 Final (RedHat based) (Kernel version 2.6.9-22.0.2.EL)
Apache 2.0.52 (CentOS)
MySQL 4.1.12
PHP 4.3.9
SNMP things installed:
[root@chaos ~]# yum list | grep snmp
net-snmp.i386 5.1.2-11.EL4.6 installed
net-snmp-devel.i386 5.1.2-11.EL4.6 installed
net-snmp-libs.i386 5.1.2-11.EL4.6 installed
net-snmp-perl.i386 5.1.2-11.EL4.6 installed
net-snmp-utils.i386 5.1.2-11.EL4.6 installed
php-snmp.i386 4.3.9-3.9 installed
This is what I get in the (debug) logging:
Now I'm quiet new to SNMP and stuff and I would really like to get these graphs to work..01/31/2006 08:40:27 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /var/www/html/cacti/rra/chaos_load_1min_34.rrd --template load_1min 1138736402:U
01/31/2006 08:40:27 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='34' and rrd_name='load_1min' and time='2006-01-31 20:40:02'"
01/31/2006 08:40:27 PM - 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)"
01/31/2006 08:40:27 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/31/2006 08:40:26 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id,rrd_name,time,output) values (34,'load_1min','2006-01-31 20:40:02','U')"
01/31/2006 08:40:26 PM - CMDPHP: Poller[0] Host[5] DS[34] SNMP: v2: 192.168.16.76, dsname: load_1min, oid: .1.3.6.1.4.1.2021.10.1.3.1, output: U
01/31/2006 08:40:26 PM - CMDPHP: Poller[0] Host[5] DS[34] WARNING: Result from SNMP not valid. Partial Result:
01/31/2006 08:40:26 PM - 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)"
01/31/2006 08:40:26 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/31/2006 08:40:25 PM - 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)"
01/31/2006 08:40:25 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/31/2006 08:40:24 PM - 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)"
01/31/2006 08:40:24 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/31/2006 08:40:23 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /var/www/html/cacti/rra/chaos_cpu_user_33.rrd --template cpu_user 1138736402:U
01/31/2006 08:40:23 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='33' and rrd_name='cpu_user' and time='2006-01-31 20:40:02'"
01/31/2006 08:40:23 PM - 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)"
01/31/2006 08:40:23 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/31/2006 08:40:22 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id,rrd_name,time,output) values (33,'cpu_user','2006-01-31 20:40:02','U')"
01/31/2006 08:40:22 PM - CMDPHP: Poller[0] Host[5] DS[33] SNMP: v2: 192.168.16.76, dsname: cpu_user, oid: .1.3.6.1.4.1.2021.11.50.0, output: U
01/31/2006 08:40:22 PM - CMDPHP: Poller[0] Host[5] DS[33] WARNING: Result from SNMP not valid. Partial Result:
01/31/2006 08:40:22 PM - 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)"
01/31/2006 08:40:22 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/31/2006 08:40:21 PM - 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)"
01/31/2006 08:40:21 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/31/2006 08:40:20 PM - 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)"
01/31/2006 08:40:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
Thx in advance!