SNMP - Interface Statistics Problem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ahardman
Posts: 41
Joined: Mon Apr 10, 2006 2:54 pm

SNMP - Interface Statistics Problem

Post by ahardman »

I think I have tracked down my nan issue to this

My device setup is using the SNMP - Interface Statistics Data Query. I have tried Index Count Changed and Uptime goes backwards but it returns no items or rows. The verbose query looks like this:

+ Running data query [1].
+ Unknown type = '2'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/interface.xml'

I also see these in my cacti log:

05/03/2007 01:10:41 PM - CACTID: Poller[0] Host[470] DS[3708] WARNING: Result from SNMP not valid. Partial Result: ...
05/03/2007 01:10:41 PM - CACTID: Poller[0] Host[470] ERROR: Problems parsing Multi SNMP OID! (oid: )

What am i missing?
Last edited by ahardman on Thu May 03, 2007 2:33 pm, edited 1 time in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

snmpwalk .1.3.6.1.2.1.2.2.1.1 and post the results.
ahardman
Posts: 41
Joined: Mon Apr 10, 2006 2:54 pm

Post by ahardman »

[root@monitor root]# snmpwalk -c (ro) -v 2c (ip) .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifIndex.11 = INTEGER: 11
IF-MIB::ifIndex.12 = INTEGER: 12
IF-MIB::ifIndex.13 = INTEGER: 13
IF-MIB::ifIndex.14 = INTEGER: 14
IF-MIB::ifIndex.15 = INTEGER: 15
IF-MIB::ifIndex.16 = INTEGER: 16
IF-MIB::ifIndex.17 = INTEGER: 17
IF-MIB::ifIndex.18 = INTEGER: 18
IF-MIB::ifIndex.19 = INTEGER: 19
IF-MIB::ifIndex.20 = INTEGER: 20
IF-MIB::ifIndex.21 = INTEGER: 21
IF-MIB::ifIndex.22 = INTEGER: 22
IF-MIB::ifIndex.23 = INTEGER: 23
IF-MIB::ifIndex.24 = INTEGER: 24
IF-MIB::ifIndex.25 = INTEGER: 25
IF-MIB::ifIndex.26 = INTEGER: 26
IF-MIB::ifIndex.27 = INTEGER: 27
IF-MIB::ifIndex.28 = INTEGER: 28
IF-MIB::ifIndex.29 = INTEGER: 29
IF-MIB::ifIndex.30 = INTEGER: 30
IF-MIB::ifIndex.31 = INTEGER: 31
IF-MIB::ifIndex.32 = INTEGER: 32
IF-MIB::ifIndex.33 = INTEGER: 33
IF-MIB::ifIndex.34 = INTEGER: 34
IF-MIB::ifIndex.35 = INTEGER: 35
IF-MIB::ifIndex.36 = INTEGER: 36
IF-MIB::ifIndex.37 = INTEGER: 37
IF-MIB::ifIndex.38 = INTEGER: 38
IF-MIB::ifIndex.39 = INTEGER: 39
IF-MIB::ifIndex.40 = INTEGER: 40
IF-MIB::ifIndex.41 = INTEGER: 41
IF-MIB::ifIndex.42 = INTEGER: 42
IF-MIB::ifIndex.43 = INTEGER: 43
IF-MIB::ifIndex.44 = INTEGER: 44
IF-MIB::ifIndex.45 = INTEGER: 45
IF-MIB::ifIndex.46 = INTEGER: 46
IF-MIB::ifIndex.47 = INTEGER: 47
IF-MIB::ifIndex.48 = INTEGER: 48
IF-MIB::ifIndex.49 = INTEGER: 49
IF-MIB::ifIndex.50 = INTEGER: 50
IF-MIB::ifIndex.51 = INTEGER: 51
IF-MIB::ifIndex.52 = INTEGER: 52
IF-MIB::ifIndex.53 = INTEGER: 53
IF-MIB::ifIndex.54 = INTEGER: 54
IF-MIB::ifIndex.55 = INTEGER: 55
IF-MIB::ifIndex.56 = INTEGER: 56
IF-MIB::ifIndex.57 = INTEGER: 57
IF-MIB::ifIndex.58 = INTEGER: 58
IF-MIB::ifIndex.59 = INTEGER: 59
IF-MIB::ifIndex.60 = INTEGER: 60
IF-MIB::ifIndex.61 = INTEGER: 61
IF-MIB::ifIndex.62 = INTEGER: 62
IF-MIB::ifIndex.63 = INTEGER: 63
IF-MIB::ifIndex.64 = INTEGER: 64
IF-MIB::ifIndex.65 = INTEGER: 65
IF-MIB::ifIndex.66 = INTEGER: 66
IF-MIB::ifIndex.67 = INTEGER: 67
IF-MIB::ifIndex.68 = INTEGER: 68
IF-MIB::ifIndex.69 = INTEGER: 69
IF-MIB::ifIndex.70 = INTEGER: 70
IF-MIB::ifIndex.71 = INTEGER: 71
IF-MIB::ifIndex.72 = INTEGER: 72
IF-MIB::ifIndex.73 = INTEGER: 73
IF-MIB::ifIndex.74 = INTEGER: 74
IF-MIB::ifIndex.75 = INTEGER: 75
IF-MIB::ifIndex.76 = INTEGER: 76
IF-MIB::ifIndex.77 = INTEGER: 77
IF-MIB::ifIndex.78 = INTEGER: 78
IF-MIB::ifIndex.79 = INTEGER: 79
IF-MIB::ifIndex.80 = INTEGER: 80
IF-MIB::ifIndex.81 = INTEGER: 81
IF-MIB::ifIndex.82 = INTEGER: 82
IF-MIB::ifIndex.83 = INTEGER: 83
IF-MIB::ifIndex.84 = INTEGER: 84
IF-MIB::ifIndex.85 = INTEGER: 85
IF-MIB::ifIndex.86 = INTEGER: 86
IF-MIB::ifIndex.87 = INTEGER: 87
IF-MIB::ifIndex.88 = INTEGER: 88
IF-MIB::ifIndex.89 = INTEGER: 89
IF-MIB::ifIndex.90 = INTEGER: 90
IF-MIB::ifIndex.91 = INTEGER: 91
IF-MIB::ifIndex.92 = INTEGER: 92
IF-MIB::ifIndex.93 = INTEGER: 93
IF-MIB::ifIndex.94 = INTEGER: 94
IF-MIB::ifIndex.95 = INTEGER: 95
IF-MIB::ifIndex.96 = INTEGER: 96
IF-MIB::ifIndex.97 = INTEGER: 97
IF-MIB::ifIndex.98 = INTEGER: 98
IF-MIB::ifIndex.99 = INTEGER: 99
IF-MIB::ifIndex.100 = INTEGER: 100
IF-MIB::ifIndex.101 = INTEGER: 101
IF-MIB::ifIndex.102 = INTEGER: 102
IF-MIB::ifIndex.103 = INTEGER: 103
IF-MIB::ifIndex.104 = INTEGER: 104
IF-MIB::ifIndex.105 = INTEGER: 105
IF-MIB::ifIndex.106 = INTEGER: 106
IF-MIB::ifIndex.107 = INTEGER: 107
IF-MIB::ifIndex.108 = INTEGER: 108
IF-MIB::ifIndex.109 = INTEGER: 109
IF-MIB::ifIndex.110 = INTEGER: 110
IF-MIB::ifIndex.111 = INTEGER: 111
IF-MIB::ifIndex.112 = INTEGER: 112
IF-MIB::ifIndex.113 = INTEGER: 113
IF-MIB::ifIndex.114 = INTEGER: 114
IF-MIB::ifIndex.115 = INTEGER: 115
IF-MIB::ifIndex.116 = INTEGER: 116
IF-MIB::ifIndex.117 = INTEGER: 117
IF-MIB::ifIndex.118 = INTEGER: 118
IF-MIB::ifIndex.119 = INTEGER: 119
IF-MIB::ifIndex.120 = INTEGER: 120
IF-MIB::ifIndex.121 = INTEGER: 121
IF-MIB::ifIndex.122 = INTEGER: 122
IF-MIB::ifIndex.123 = INTEGER: 123
IF-MIB::ifIndex.124 = INTEGER: 124
IF-MIB::ifIndex.125 = INTEGER: 125
IF-MIB::ifIndex.126 = INTEGER: 126
IF-MIB::ifIndex.127 = INTEGER: 127
IF-MIB::ifIndex.128 = INTEGER: 128
IF-MIB::ifIndex.129 = INTEGER: 129
IF-MIB::ifIndex.130 = INTEGER: 130
IF-MIB::ifIndex.131 = INTEGER: 131
IF-MIB::ifIndex.132 = INTEGER: 132
IF-MIB::ifIndex.133 = INTEGER: 133
IF-MIB::ifIndex.134 = INTEGER: 134
IF-MIB::ifIndex.135 = INTEGER: 135
IF-MIB::ifIndex.136 = INTEGER: 136
IF-MIB::ifIndex.137 = INTEGER: 137
IF-MIB::ifIndex.138 = INTEGER: 138
IF-MIB::ifIndex.139 = INTEGER: 139
IF-MIB::ifIndex.140 = INTEGER: 140
IF-MIB::ifIndex.141 = INTEGER: 141
IF-MIB::ifIndex.142 = INTEGER: 142
IF-MIB::ifIndex.143 = INTEGER: 143
IF-MIB::ifIndex.144 = INTEGER: 144
IF-MIB::ifIndex.145 = INTEGER: 145
IF-MIB::ifIndex.146 = INTEGER: 146
IF-MIB::ifIndex.147 = INTEGER: 147
IF-MIB::ifIndex.148 = INTEGER: 148
IF-MIB::ifIndex.149 = INTEGER: 149
IF-MIB::ifIndex.150 = INTEGER: 150
IF-MIB::ifIndex.151 = INTEGER: 151
IF-MIB::ifIndex.152 = INTEGER: 152
IF-MIB::ifIndex.153 = INTEGER: 153
IF-MIB::ifIndex.154 = INTEGER: 154
ahardman
Posts: 41
Joined: Mon Apr 10, 2006 2:54 pm

Post by ahardman »

I also just noticed on the bottom of my about Cacti page

Cacti Variables
Operating System: unix
PHP SNMP Support: no

Is this normal??
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Looks like you haven't enabled the php_snmp module for php.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP - Interface Statistics Problem

Post by gandalf »

ahardman wrote: + Running data query [1].
+ Unknown type = '2'
This is wrong! Did you change anything on that very Data Query?
Reinhard
ahardman
Posts: 41
Joined: Mon Apr 10, 2006 2:54 pm

Post by ahardman »

No, Not that i know of i have been searching for what it should look like.

Also i have snmp in php now. But that did not fix the issue. And now verbose querys didn't work. Interesting. So i edited the Data Query and changed the <cacti path> to /the/actual/path and now i get

+ Running data query [1].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing script for list of indexes ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Executing script query ' '
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/interface.xml'


but it still returns 0 items 0 rows
ahardman
Posts: 41
Joined: Mon Apr 10, 2006 2:54 pm

Post by ahardman »

I have replaced the interface.xml with a fresh download and then removed and readded the data queries to the device but that did not help.
ahardman
Posts: 41
Joined: Mon Apr 10, 2006 2:54 pm

Post by ahardman »

After poking around i found that my Data Input Methods - Get Script Data (Indexed) had the wrong input type. I set it to snmp query and the verbose and items and rows came back.

+ Found type = '4 '[script query]. should be type 3
Last edited by ahardman on Mon May 07, 2007 1:47 pm, edited 1 time in total.
ahardman
Posts: 41
Joined: Mon Apr 10, 2006 2:54 pm

Post by ahardman »

Thank Yor for your help
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests