snmp on linux don' t work
Moderators: Developers, Moderators
snmp on linux don' t work
hi @all
i installed snmpwalk and snmpget and the path in cacti is really right.
when i try to display my interfáces with snmp i get following errors:
Warning: No Response from boss in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 69
Warning: Variable passed to reset() is not an array or object in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 72
Warning: Variable passed to key() is not an array or object in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 72
Warning: No Response from boss in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 69
Warning: Variable passed to reset() is not an array or object in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 72
Warning: Variable passed to key() is not an array or object in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 72
Warning: Cannot add header information - headers already sent by (output started at /usr/local/httpd/htdocs/cacti/include/snmp_functions.php:69) in /usr/local/httpd/htdocs/cacti/snmp.php on line 64
can sombody help me??
thx
i installed snmpwalk and snmpget and the path in cacti is really right.
when i try to display my interfáces with snmp i get following errors:
Warning: No Response from boss in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 69
Warning: Variable passed to reset() is not an array or object in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 72
Warning: Variable passed to key() is not an array or object in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 72
Warning: No Response from boss in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 69
Warning: Variable passed to reset() is not an array or object in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 72
Warning: Variable passed to key() is not an array or object in /usr/local/httpd/htdocs/cacti/include/snmp_functions.php on line 72
Warning: Cannot add header information - headers already sent by (output started at /usr/local/httpd/htdocs/cacti/include/snmp_functions.php:69) in /usr/local/httpd/htdocs/cacti/snmp.php on line 64
can sombody help me??
thx
It seems that you are trying to use the snmp binaries and cacti is trying to use its (non-working) SNMP support. To force this off, open up your 'include/config.php' and make line 59 read:
That should hopefully fix your problem.
-Ian
Code: Select all
$config["php_snmp_support"] = false;
-Ian
Once you turn of php's SNMP support, you must make sure you have ucd-snmp installed. Assuming you do, make sure cacti knows the full paths to your snmpwalk and snmpget binaries under 'cacti Settings'.
Also, the current version of cacti will not work out of the box with net-snmp 5.x. To check what you are using, execute the following at the command line:
If you happen to be using net-snmp 5.x, there is a patch available on this board that can be applied to your cacti install.
-Ian
Also, the current version of cacti will not work out of the box with net-snmp 5.x. To check what you are using, execute the following at the command line:
Code: Select all
snmpwalk -V
-Ian
What is the 'snmpwalk Binary' path that you are using in cacti? What happens if you run this at the command line?
Let's say your snmpwalk binary path is:
In this case, execute the following at the command line and see what happens:
* Make sure to replace the path to snmpwalk with the path you have in cacti
* Try using the hostname/community string you are trying to add to cacti (rather than localhost/public)
I hope we can figure something out.
-Ian
Let's say your snmpwalk binary path is:
Code: Select all
/usr/bin/snmpwalk
Code: Select all
/usr/bin/snmpwalk localhost public .
* Try using the hostname/community string you are trying to add to cacti (rather than localhost/public)
I hope we can figure something out.
-Ian
okay, the path to my snmpwalk and snmpget in cacti is right
that is my printout in command line for snmpwalk localhost public:
system.sysDescr.0 = Linux boss 2.4.10-64GB-SMP #1 SMP Tue Sep 25 12:36:09 GMT 2001 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (6652165) 18:28:41.65
system.sysContact.0 = Sysadmin (root@localhost)
system.sysName.0 = boss
system.sysLocation.0 = Server Room
system.sysORLastChange.0 = Timeticks: (17) 0:00:00.17
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpFrameworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIBCompliances.snmpFrameworkMIBCompliance
system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMPDCompliance
system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.usmMIBConformance.usmMIBCompliances.usmMIBCompliance
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic objects for network interface sub-layers
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2 entities
system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for managing TCP implementations
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP and ICMP implementations
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing UDP implementations
system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control Model for SNMP.
system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management Architecture MIB.
system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message Processing and Dispatching.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information definitions for the SNMP User-based Security Model.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (17) 0:00:00.17
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (17) 0:00:00.17
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (17) 0:00:00.17
Timeout: No Response from localhost
thanks for your support!!!!!!!
that is my printout in command line for snmpwalk localhost public:
system.sysDescr.0 = Linux boss 2.4.10-64GB-SMP #1 SMP Tue Sep 25 12:36:09 GMT 2001 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (6652165) 18:28:41.65
system.sysContact.0 = Sysadmin (root@localhost)
system.sysName.0 = boss
system.sysLocation.0 = Server Room
system.sysORLastChange.0 = Timeticks: (17) 0:00:00.17
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpFrameworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIBCompliances.snmpFrameworkMIBCompliance
system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMPDCompliance
system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.usmMIBConformance.usmMIBCompliances.usmMIBCompliance
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic objects for network interface sub-layers
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2 entities
system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for managing TCP implementations
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP and ICMP implementations
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing UDP implementations
system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control Model for SNMP.
system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management Architecture MIB.
system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message Processing and Dispatching.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information definitions for the SNMP User-based Security Model.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (11) 0:00:00.11
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (17) 0:00:00.17
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (17) 0:00:00.17
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (17) 0:00:00.17
Timeout: No Response from localhost
thanks for your support!!!!!!!
Who is online
Users browsing this forum: No registered users and 3 guests