Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


snmp network data fails

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
klavs



Joined: 01 Oct 2002
Posts: 18

PostPosted: Mon Mar 17, 2003 8:17 am    Post subject: snmp network data fails Reply with quote

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

PostPosted: Tue Mar 18, 2003 11:24 am    Post subject: Reply with quote

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

PostPosted: Tue Mar 18, 2003 12:30 pm    Post subject: Reply with quote

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






PostPosted: Wed Mar 19, 2003 4:50 am    Post subject: Reply with quote

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

PostPosted: Wed Mar 19, 2003 5:15 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group