SNMP Error

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

Moderators: Developers, Moderators

Post Reply
cacti-new-user
Posts: 7
Joined: Tue Jul 17, 2007 9:20 am

SNMP Error

Post by cacti-new-user »

Hi,

I seem to have a basic error in my Cisco Router Host Template:

SNMP Information
System: No Such Object available on this agent
Uptime: No Such Object available on this agent (0 days, 0 hours, 0 minutes)
Hostname: No Such Object available on this agent
Location: No Such Object available on this agent
Contact: No Such Object available on this agent

I can't get any of my IP SLA graphs running and interestingly in 'Devices' and the Cisco router in question, when I change the 'Host Template' from 'Cisco Router' to 'Generic' and then back again to 'Cisco Router' I get the following error:

Notice: Undefined index: oid_index in C:\Inetpub\wwwroot\cacti\lib\data_query.php on line 156

Notice: Undefined index: oid_index in C:\Inetpub\wwwroot\cacti\lib\data_query.php on line 159

Warning: Variable passed to each() is not an array or object in C:\Inetpub\wwwroot\cacti\lib\data_query.php on line 181

Warning: Variable passed to each() is not an array or object in C:\Inetpub\wwwroot\cacti\lib\data_query.php on line 515

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\cacti\lib\data_query.php:156) in C:\Inetpub\wwwroot\cacti\host.php on line 151


All help greatly appreciated. Thanks
danathane
Cacti User
Posts: 127
Joined: Thu May 03, 2007 9:03 am

Post by danathane »

Is the snmp agent activatid on your cisco?
Or verify your snmp community.
Maybe you have a problem their.
cacti-new-user
Posts: 7
Joined: Tue Jul 17, 2007 9:20 am

Post by cacti-new-user »

The snmp-server string is present and correct on the router and the webserver. I have done a debug on the router where 10.160.11.67 is the cacti webserver. It appears the MIB or SNMP or something just is not working. All help and advice is appreciated.The output of the debug is as below:


Jul 25 14:52:33.802: SNMP: Packet received via UDP from 10.160.11.67 on Ethernet
0/0
Jul 25 14:52:33.806: SNMP: Get-next request, reqid 15218, errstat 0, erridx 0
ccitt.1 = NULL TYPE/VALUE
Jul 25 14:52:33.910: SNMP: Response, reqid 15218, errstat 0, erridx 0
ccitt.1 = END_OF_MIB_VIEW_EXCEPTION
Jul 25 14:52:33.918: SNMP: Packet sent via UDP to 10.160.11.67
Jul 25 14:52:33.942: SNMP: Packet received via UDP from 10.160.11.67 on Ethernet
0/0
Jul 25 14:52:33.946: SNMP: Get request, reqid 15219, errstat 0, erridx 0
sysUpTime.0 = NULL TYPE/VALUE
Jul 25 14:52:33.962: SNMP: Response, reqid 15219, errstat 0, erridx 0
sysUpTime.0 = NO_SUCH_OBJECT_EXCEPTION
Jul 25 14:52:33.978: SNMP: Packet sent via UDP to 10.160.11.67
Jul 25 14:52:34.002: SNMP: Packet received via UDP from 10.160.11.67 on Ethernet
0/0
Jul 25 14:52:34.006: SNMP: Get request, reqid 15220, errstat 0, erridx 0
sysUpTime.0 = NULL TYPE/VALUE
Jul 25 14:52:34.022: SNMP: Response, reqid 15220, errstat 0, erridx 0
sysUpTime.0 = NO_SUCH_OBJECT_EXCEPTION
Jul 25 14:52:34.038: SNMP: Packet sent via UDP to 10.160.11.67
Jul 25 14:52:34.058: SNMP: Packet received via UDP from 10.160.11.67 on Ethernet
0/0
Jul 25 14:52:34.062: SNMP: Get request, reqid 15221, errstat 0, erridx 0
sysUpTime.0 = NULL TYPE/VALUE
Jul 25 14:52:34.078: SNMP: Response, reqid 15221, errstat 0, erridx 0
sysUpTime.0 = NO_SUCH_OBJECT_EXCEPTION
Jul 25 14:52:34.094: SNMP: Packet sent via UDP to 10.160.11.67
Jul 25 14:52:34.146: SNMP: Packet received via UDP from 10.160.11.67 on Ethernet
0/0
Jul 25 14:52:34.146: SNMP: Get request, reqid 15222, errstat 0, erridx 0
sysUpTime.0 = NULL TYPE/VALUE
Jul 25 14:52:34.166: SNMP: Response, reqid 15222, errstat 0, erridx 0
sysUpTime.0 = NO_SUCH_OBJECT_EXCEPTION
Jul 25 14:52:34.182: SNMP: Packet sent via UDP to 10.160.11.67
Jul 25 14:52:34.635: SNMP: Packet received via UDP from 10.160.11.67 on Ethernet
0/0
Jul 25 14:52:34.639: SNMP: Get request, reqid 15223, errstat 0, erridx 0
rttMonLatestRttOperCompletionTime.5 = NULL TYPE/VALUE
Jul 25 14:52:34.659: SNMP: Response, reqid 15223, errstat 0, erridx 0
rttMonLatestRttOperCompletionTime.5 = NO_SUCH_OBJECT_EXCEPTION
Jul 25 14:52:34.679: SNMP: Packet sent via UDP to 10.160.11.67
Jul 25 14:52:34.703: SNMP: Packet received via UDP from 10.160.11.67 on Ethernet
0/0
Jul 25 14:52:34.707: SNMP: Get request, reqid 15224, errstat 0, erridx 0
rttMonLatestRttOperCompletionTime.5 = NULL TYPE/VALUE
Jul 25 14:52:34.727: SNMP: Response, reqid 15224, errstat 0, erridx 0
rttMonLatestRttOperCompletionTime.5 = NO_SUCH_OBJECT_EXCEPTION
Jul 25 14:52:34.751: SNMP: Packet sent via UDP to 10.160.11.67
Jul 25 14:52:34.776: SNMP: Packet received via UDP from 10.160.11.67 on Ethernet
0/0
Jul 25 14:52:34.780: SNMP: Get request, reqid 15225, errstat 0, erridx 0
rttMonLatestRttOperCompletionTime.5 = NULL TYPE/VALUE
Jul 25 14:52:34.800: SNMP: Response, reqid 15225, errstat 0, erridx 0
rttMonLatestRttOperCompletionTime.5 = NO_SUCH_OBJECT_EXCEPTION
Jul 25 14:52:34.820: SNMP: Packet sent via UDP to 10.160.11.67
Jul 25 14:52:34.844: SNMP: Packet received via UDP from 10.160.11.67 on Ethernet
0/0
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Read the installation guide in my signature. Initially looks like NTFS permission problems.
cacti-new-user
Posts: 7
Joined: Tue Jul 17, 2007 9:20 am

Post by cacti-new-user »

Solution found by changing the following on the router from:

snmp-server host 10.160.11.67 version 2c public

to:

snmp-server host 10.160.11.67 version 2c public rtr

Simple but effective. This may have been a pre-requisite but I don't remember seeing it.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

does that rtr config turn on the Response Time Reporter feature? Not exactly sure why that would be needed for basic snmp data polling.
cacti-new-user
Posts: 7
Joined: Tue Jul 17, 2007 9:20 am

Post by cacti-new-user »

I agree that I should have seen something with basic SNMP but until I added the 'rtr' switch; there was nothing and when it was added -everything.

The router is running IOS version 12.3(19) - I think this may be of help to others experiencing a similar problem.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests