Setting up cacti: Interface/SNMP issues

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Martz
Posts: 1
Joined: Thu Oct 02, 2003 3:47 pm
Contact:

Setting up cacti: Interface/SNMP issues

Post by Martz »

Hi,

I have read through most of the threads on the forums, the faq and the install guide many many times. My cacti works for the basic unix load/mem/users etc but I am really trying to monitor my interface.

In the faq:
How do I create traffic graphs?
...
4. . You should see one or more interfaces listed under the "Data Query [SNMP - Interface Statistics]" box. Place a check next to each interface that you want to graph. Below the box, select type of graph that you want to create (bits, bytes, summation, etc).
...
OK, so I gone through this step by step.. and it seems I should have something listed below as per this image?

Image

I am guessing that there should be listed items which are grabbed from the SNMP daemon I have running?

I have also tried running: snmpconf -g basic_setup and I have gone through the config, and copied it to /usr/share/snmp - I get his from a snmpwalk <ip> public
debian:/home/martz/web/cacti# snmpwalk <local ip> public
system.sysDescr.0 = Linux debian 2.4.18 #1 SMP Fri Apr 4 03:40:42 BST 2003 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (111) 0:00:01.11
system.sysContact.0 = Martz
system.sysName.0 = debian
system.sysLocation.0 = London UK
system.sysORLastChange.0 = Timeticks: (0) 0:00:00.00
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: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (0) 0:00:00.00
End of MIB
I also set Graph Debug on and get this:
Notice: Undefined variable: regexps in /home/martz/web/cacti/include/rrd_functions.php on line 296

Notice: Undefined variable: fetch_array in /home/martz/web/cacti/include/rrd_functions.php on line 309
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
Notice: Undefined variable: regexps in /home/martz/web/cacti/include/rrd_functions.php on line 296

Notice: Undefined variable: fetch_array in /home/martz/web/cacti/include/rrd_functions.php on line 309
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data sourceERROR: opening '/home/martz/web/cacti/rra/213_232_94_136_traffic_in_9.rrd': No such file or directory
As you can see I am on Debian woody RC1. I have setup httpd and php as seperate prefixed installs, --with-snmp. When I click the cacti icon I get: PHP SNMP Support: yes, and I have configured cacti to use this path to php. I previously tried using apt-get install cacti - but this complained with mysql_connect() errors, even with php-mysql installed :o

If anyone could help me I would greatly appreciate it! I think cacti is a top tool, just a little bit tricky for n00bs like me.

Thanks,
Martin.[/code][/quote]
kryanth
Posts: 1
Joined: Mon Oct 06, 2003 3:24 am

Debian + PHP4 + MySQL

Post by kryanth »

in
/etc/php4/cgi/php.ini

add an entry

extensions=mysql.so

its not listed with the other extensions, but thats what you need.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests