|
|
| Author |
Message |
icepick Guest
|
Posted: Mon Aug 25, 2003 6:59 pm Post subject: new net-snmp 5.0.8, cacti broken |
|
|
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
|
Posted: Mon Aug 25, 2003 7:43 pm Post subject: update |
|
|
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
|
Posted: Fri Aug 29, 2003 1:41 am Post subject: |
|
|
| im using net-snmp-5.0.8 and im also getting the same errors as you are =( |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Aug 29, 2003 6:50 am Post subject: |
|
|
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 |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|