|
|
| Author |
Message |
klavs
Joined: 01 Oct 2002 Posts: 18
|
Posted: Mon Mar 17, 2003 8:17 am Post subject: snmp network data fails |
|
|
Hi guys,
ever since I upgraded to php-4.3.1 I'm getting no Network data, and this is the errors I get:
Warning: snmpget() [http://www.php.net/function.snmpget]: Error in packet: (noSuchName) There is no such variable name in this MIB. in /home/cactiuser/cacti/include/snmp_functions.php on line 35
Warning: snmpget() [http://www.php.net/function.snmpget]: This name does not exist: joint-iso-ccitt.2.1.10.1 in /home/cactiuser/cacti/include/snmp_functions.php on line 35
Warning: snmpget() [http://www.php.net/function.snmpget]: Error in packet: (noSuchName) There is no such variable name in this MIB. in /home/cactiuser/cacti/include/snmp_functions.php on line 35
Warning: snmpget() [http://www.php.net/function.snmpget]: This name does not exist: joint-iso-ccitt.2.1.16.1 in /home/cactiuser/cacti/include/snmp_functions.php on line 35
I can't figure out why  |
|
| Back to top |
|
 |
klavs
Joined: 01 Oct 2002 Posts: 18
|
Posted: Tue Mar 18, 2003 11:24 am Post subject: |
|
|
Hi guys,
I still haven't solved this bug
So my main use for cacti just went away
Nobody has any idea - or has seen the same problem?
any hints will be greatly appreciated. |
|
| Back to top |
|
 |
bulek Cacti Pro User
Joined: 20 May 2002 Posts: 852 Location: Poland
|
Posted: Tue Mar 18, 2003 12:30 pm Post subject: |
|
|
From which version have you upgraded PHP? Have you upgrade ucd-snmp package as well?
It seems your new environment does not support shorter form of OID. Cacti is using it for traffic counters reading. You can try to change in "include/snmp_functions.php" line 218:
| Quote: | | $snmp_octet_name = "2.2.1.10"; |
to:
| Quote: | | $snmp_octet_name = ".1.3.6.1.2.1.2.2.1.10"; |
and line 222:
| Quote: | | $snmp_octet_name = "2.2.1.16"; |
to:
| Quote: | | $snmp_octet_name = ".1.3.6.1.2.1.2.2.1.16"; |
- bulek |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Mar 19, 2003 4:50 am Post subject: |
|
|
That did the trick. Thank you very much!
I have this installed:
ucd-snmp-4.2.6
net-snmp-5.0.6
Any idea why it is suddenly a problem? |
|
| Back to top |
|
 |
bulek Cacti Pro User
Joined: 20 May 2002 Posts: 852 Location: Poland
|
Posted: Wed Mar 19, 2003 5:15 am Post subject: |
|
|
No clue. On my test system I have similar config to yours (however on windows platform) and it is working without changes.
- bulek |
|
| Back to top |
|
 |
|