New Router - SNMP Failing

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
DFord
Posts: 12
Joined: Wed May 03, 2006 10:31 pm

New Router - SNMP Failing

Post by DFord »

I have just replaced a router in my network and now Cacti is not collecting data. Debug as follows from last poller cycle:

Code: Select all

05/23/2006 09:50:17 AM - CMDPHP: Poller[0] Host[26] DS[87] SNMP: v2: r1wygor.weyerhaeuser.com.au, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: U  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] Host[26] DS[87] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id,rrd_name,time,output) values (46,'traffic_out','2006-05-23 09:50:13','U')"  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "SELECT count(*) from poller_item WHERE (action=2 AND (host_id >= 27 and host_id <= 27))"  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT * from poller_item WHERE (host_id >= 27 and host_id <= 27) ORDER by host_id"  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] Host[26] DS[46] SNMP: v2: r1wygor.weyerhaeuser.com.au, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.11, output: U  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from host where (disabled = '' and id >= 27 and id <= 27) ORDER by id"  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] Host[26] DS[46] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id,rrd_name,time,output) values (46,'traffic_in','2006-05-23 09:50:13','U')"  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] Host[26] DS[46] SNMP: v2: r1wygor.weyerhaeuser.com.au, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.11, output: U  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] Host[26] DS[46] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] Host[26] NOTICE: Spike Kill in Effect for 'r1wygor.weyerhaeuser.com.au'.  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update poller_reindex set assert_value='No Such Object available on this agent' where host_id='26' and data_query_id='1' and arg1='.1.3.6.1.2.1.1.3.0'"  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_command (poller_id,time,action,command) values (0,NOW(),1,'26:1')"  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] ASSERT: 'No Such Object available on this agent  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] Host[26] RECACHE: Processing 1 items in the auto reindex cache for 'r1wygor.weyerhaeuser.com.au'.  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_reindex.data_query_id, poller_reindex.action, poller_reindex.op, poller_reindex.assert_value, poller_reindex.arg1 from poller_reindex where poller_reindex.host_id=26"  
05/23/2006 09:50:17 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update host set status = '3', status_event_count = '0', status_fail_date = '2006-05-16 07:45:40', status_rec_date = '2006-05-16 08:00:09', status_last_error = 'Host did not respond to SNMP', min_time = '9.99999', max_time = '5231.38000', cur_time = '76.81', avg_time = '63.5290135448', total_polls = '5205', failed_polls = '3', availability = '99.9423631124' where hostname = 'r1wygor.weyerhaeuser.com.au'"  
Can anyone tell me what I did wrong? I tried re-indexing the host an I also tried creating a new host but all to no avail...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Does cacti see the basic snmp information for the new router?

Does snmpwalk from your cacti server against the new router return any data? Try using the OIDs cacti was unsucessfully able to poll.
DFord
Posts: 12
Joined: Wed May 03, 2006 10:31 pm

Post by DFord »

I get the following from an SNMP walk:

Code: Select all

.1.3.6.1.2.1.2.2.1.16.11 No more variables left in this MIB View (It is past the end of the MIB tree)

.1.3.6.1.4.1.9.2.1.58.0 No more variables left in this MIB View (It is past the end of the MIB tree)

.1.3.6.1.2.1.2.2.1.10.11 No more variables left in this MIB View (It is past the end of the MIB tree)
And still getting this in the log:

Code: Select all

05/23/2006 10:45:09 AM - CMDPHP: Poller[0] ASSERT: 'No Such Object available on this agent<No Such Object available on this agent' failed. Recaching host 'r1wygor.weyerhaeuser.com.au', data query #1
05/23/2006 10:45:09 AM - CMDPHP: Poller[0] Host[26] DS[46] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
05/23/2006 10:45:10 AM - CMDPHP: Poller[0] Host[26] DS[46] SNMP: v2: r1wygor.weyerhaeuser.com.au, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.11, output: U
05/23/2006 10:45:10 AM - CMDPHP: Poller[0] Host[26] DS[46] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
05/23/2006 10:45:10 AM - CMDPHP: Poller[0] Host[26] DS[46] SNMP: v2: r1wygor.weyerhaeuser.com.au, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.11, output: U
05/23/2006 10:45:10 AM - CMDPHP: Poller[0] Host[26] DS[87] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
05/23/2006 10:45:10 AM - CMDPHP: Poller[0] Host[26] DS[87] SNMP: v2: r1wygor.weyerhaeuser.com.au, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: U
DFord
Posts: 12
Joined: Wed May 03, 2006 10:31 pm

Post by DFord »

This is the log file from the last debug polling cycle.
Attachments
cacti.txt
(134.01 KiB) Downloaded 268 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What I mean by basic snmp information is when you click on the r1wygor.weyerhaeuser.com device in cacti, in the top left corner do you see the uptime / OS info or 'snmp error'?

Until you're able to successfully snmpwalk the device, don't expect cacti to be able to gather any snmp information. Try: "snmpwalk -v 1 -c public r1wygor.weyerhaeuser.com.au system"
DFord
Posts: 12
Joined: Wed May 03, 2006 10:31 pm

Post by DFord »

**Delay due to illness**

When I try an SNMP Walk, I get the following:

Code: Select all

C:\>snmpwalk -v 1 -c public r1wygor.weyerhaeuser.com.au system
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
End of MIB

C:\>
Cacti does not see the basic SNMP Information. In the top left of the device information page, I have the following:

Code: Select all

SNMP Information
System: No Such Object available on this agent
Uptime: No Such Object available on this agent
Hostname: No Such Object available on this agent
Location: No Such Object available on this agent
Contact: No Such Object available on this agent
The router has the same base configuration as the previous Cisco 1603 (The New one is a Cisco 1821 running IOS 12.4)

I have checked the community strings (and I substituted the correct one in the SNMP Walk that I tried).

I am guessing that there is something simple I have missed...?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Sounds like snmp is not working on the router (at least from the Cacti server). Until you fix that, cacti won't work...
DFord
Posts: 12
Joined: Wed May 03, 2006 10:31 pm

Post by DFord »

Finally sorted it out, I think.

The SNMP Community name was case-sensitive! When I changed it to all CAPS (as it is in the Router), everything worked.

Thanks for all your help.

Dave
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests