snmp on linux don' t work

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
lucky
Cacti User
Posts: 62
Joined: Mon Sep 30, 2002 3:23 am
Location: Germany

snmp on linux don' t work

Post by lucky »

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
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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:

Code: Select all

$config["php_snmp_support"] = false;
That should hopefully fix your problem.

-Ian
lucky
Cacti User
Posts: 62
Joined: Mon Sep 30, 2002 3:23 am
Location: Germany

Post by lucky »

hi,

okay, i don' t have any errors, but also no interfaces.

i can write donald duck for hostname and there is no error ;-(
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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:

Code: Select all

snmpwalk -V
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
lucky
Cacti User
Posts: 62
Joined: Mon Sep 30, 2002 3:23 am
Location: Germany

Post by lucky »

hi jan,

i am still using UCD-snmp version: 4.2.5

any ideas??
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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:

Code: Select all

/usr/bin/snmpwalk
In this case, execute the following at the command line and see what happens:

Code: Select all

/usr/bin/snmpwalk localhost public .
* 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
lucky
Cacti User
Posts: 62
Joined: Mon Sep 30, 2002 3:23 am
Location: Germany

Post by lucky »

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!!!!!!!
dgalatas
Posts: 1
Joined: Mon Dec 09, 2002 3:58 pm

Post by dgalatas »

Snmpwalk is working fine and so is snmpd. Snmpd is feeding so much information that it is overloadoing itself. Try increasing the timeout value for snmpwalk using the -t <timeout value>.
-Darren
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests