Cacti tells me: WARNING: Result from SNMP not valid....

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

Moderators: Developers, Moderators

Post Reply
Mafkees
Posts: 3
Joined: Thu Oct 27, 2005 4:21 pm

Cacti tells me: WARNING: Result from SNMP not valid....

Post by Mafkees »

Hi all..

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:
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"
Now I'm quiet new to SNMP and stuff and I would really like to get these graphs to work..

Thx in advance!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The SNMP client at host chaos must provide the data you've asked for. To check for this, please run the following command

Code: Select all

snmpwalk -c <community> -v 1 chaos system
snmpwalk -c <community> -v 1 chaos load
snmpwalk -c <community> -v 1 chaos cpu
and see, if data is returned. If not, configuration of the snmp client at chaos is required.
Reinhard
Mafkees
Posts: 3
Joined: Thu Oct 27, 2005 4:21 pm

Post by Mafkees »

The system command seems to work but the load/cpu don't.. indeed there is no data returned:
[root@chaos ~]# snmpwalk -c public -v 1 192.168.16.76 system
SNMPv2-MIB::sysDescr.0 = STRING: Linux chaos.fkees.net 2.6.9-22.0.2.EL #1 Tue Jan 17 06:51:40 CST 2006 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (12504) 0:02:05.04
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: chaos.fkees.net
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (2) 0:00:00.02
[root@chaos ~]# snmpwalk -c public -v 1 192.168.16.76 load
End of MIB
[root@chaos ~]# snmpwalk -c public -v 1 192.168.16.76 cpu
End of MIB
(Had to replace 'chaos' with the IP address) Maybe I've done something wrong in the SNMP config but I haven't got a clue what it could be..
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests