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    


new net-snmp 5.0.8, cacti broken

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





PostPosted: Mon Aug 25, 2003 6:59 pm    Post subject: new net-snmp 5.0.8, cacti broken Reply with quote

Today I decided to upgrade to the new ucd-snmp, now called net-snmp. I was
running version 4.2.6 and have now uograded to 5.0.8 . The problem I am now
having is that the cmd.php file isnt getting any data from snmpget /
snmpwalk as it was before. When running cmd.php from console, i get the
following errors:

snmp: 192.168.1.10, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.8,
value:
No community name specified.
USAGE: snmpget [OPTIONS] AGENT OID [OID]...

So it seems that the comunity isnt being processed by cacti. The only reason
I did the upgrade was to install the UCD-IPFWACC mib so I could graph my
ipfw rules.

Any help would be much appreciated as my 5 hours of trying to fix it has
resulted in failure.
Thanks
Kindest Regards
Barry Murphy
Back to top
icepick
Guest





PostPosted: Mon Aug 25, 2003 7:43 pm    Post subject: update Reply with quote

I have just changed the cacti utilities to use snmp version 5, however this is now giving the following:

Timeout: No Response from 192.168.1.10

This is not posible because I can snmpwalk the host.

Barry
Back to top
Guest






PostPosted: Fri Aug 29, 2003 1:41 am    Post subject: Reply with quote

im using net-snmp-5.0.8 and im also getting the same errors as you are =(
Back to top
Guest






PostPosted: Fri Aug 29, 2003 6:50 am    Post subject: Reply with quote

fixed.
change line 175 of include/snmp_functions.php as follows:
$snmp_auth = (read_config_option("smnp_version") == "ucd-snmp") ? "-c \"$community\"" : "-c \"$community\""; /* v1/v2 - community string */

note the extra -c
worked for me!
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