getting the graphs to work

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

Moderators: Developers, Moderators

Post Reply
illsci

getting the graphs to work

Post by illsci »

I have everything set up and no errors as far as I can tell. Are the default graphs that come with the installation supposed to be visible with out any configuring? Im not sure how to go about trouble shooting Cacti's ablility to output graphs on my systems. When I click on the "Apache Web Hits" default graph this is the output I recieve:

cacti/rrdtool graph
Daily (5 Minute Average) [source]

cacti/rrdtool graph
Weekly (30 Minute Average) [source]

cacti/rrdtool graph
Monthly (2 Hour Average) [source]

cacti/rrdtool graph
Yearly (1 Day Average) [source]

Can you tell me from this information what I havent set up correctly or where to start looking? Thanks alot.

illsci
illsci

found more info

Post by illsci »

CANNOT FIND DATA SOURCE: /home/www/b0h/public_html/cacti/rra/system_users.rrd

How are the .rrd files generated? Do they come with cacti or are these created some other way? My rra dir is empty. ???


Thanks
illsci
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

The default graphs that come with cacti will not become visible until everything is working correctly. That is, rrdtool must be setup and cacti must know its location. In addition 'cmd.php' must have been run at least once, so it can generate the rrd files under cacti's 'rra/' subdirectory.

If you think there is a problem, click 'Edit Graph Items' next to any broken graph (Under 'Graphs' in the console). Then click 'Turn Graph Output Preview On' to see the exact nature of the error.

-Ian
illsci

ok....almost there

Post by illsci »

rrdtool is set up properly. So I tried going to the cmd.php by just typing it into the browser and nothing appears in the rra directory still. The dir is owned by the cactiuser that accesses the database. Why doesnt the cmd.php get exectured when you installl or does it?
illsci

nevermind I got it

Post by illsci »

Hey raX good looking out man. Thanks for your help.

keep that ish infamous,
iillsci
Tealk
Posts: 5
Joined: Mon Sep 16, 2002 9:16 am

Having same kind of problem

Post by Tealk »

Hey

I have same kind of problem here too

i keep having those

cacti/rrdtool graph
Daily (5 Minute Average) [source]

cacti/rrdtool graph
Weekly (30 Minute Average) [source]

cacti/rrdtool graph
Monthly (2 Hour Average) [source]

cacti/rrdtool graph
Yearly (1 Day Average) [source]


and no graphs visible..

the perm's are all alright (root), plus the rrd.log is being updated each 5 mins (it gets larger..) what am i doing wrong??


Thanks in advance,

Tom
Tealk
Posts: 5
Joined: Mon Sep 16, 2002 9:16 am

Post by Tealk »

By the way. i just checked.. the rra/ dir is totally empty...
illsci

im still playing with it too....

Post by illsci »

Uhmm to get the graphs to show up initially...but with none of your own data.....you can fromthe command like type php cmd.php and that will generate your .rrd files in that emptry directory. Make sure you have snmp turned on type chkconfig --list and see if snmp is on for run levels 235. Right now I can see the graphs and snmpwalk gives me a bunch of information and then it says it times out at the end. Im currious as to why if you go to the Console and then to SNMP interfaces under View Gathered Interfaces it doesnt show anything. Im not quite sure how this is working yet.....
illsci

b0h!

Post by illsci »

Any clues as to why this is timing out at the end or if this maybe the source of my problems?????

Thanks,
illsci

This is the out put from snmpwalk:

[root@tuvok cacti]# snmpwalk 127.0.0.1 public
system.sysDescr.0 = Linux tuvok.caltech.edu 2.4.18-3smp #1 SMP Thu Apr 18 07:27:31 EDT 2002 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (204446) 0:34:04.46
system.sysContact.0 = Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
system.sysName.0 = tuvok.caltech.edu
system.sysLocation.0 = Unknown (edit /etc/snmp/snmpd.conf)
system.sysORLastChange.0 = Timeticks: (3) 0:00:00.03
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: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (3) 0:00:00.03
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (3) 0:00:00.03
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (3) 0:00:00.03
Timeout: No Response from 127.0.0.1
[root@tuvok cacti]#
Corvy

I had the same error.

Post by Corvy »

Maybe this can help some, but I got a similar error. This was caused by a stupid, :oops: , but more secure, umask in /etc/profile which was 027. Change this back 022 and everything worked.

Just my input ... an maybe another thing to check? :D
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests