[SOLVED] Graphs only show 4 days of history

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

Moderators: Developers, Moderators

Post Reply
9Nails
Posts: 42
Joined: Thu Nov 20, 2008 4:32 pm

[SOLVED] Graphs only show 4 days of history

Post by 9Nails »

Can someone point me in the right direction? I'm having a problem with my Cacti - new install based from CactiEZ on Cent OS Linux. The Localhost graphs work fine and have a fair bit of history to their graph age. But after importing some templates and building new graphs for my servers and routers I'm finding that my graphs only have about 4 days of history. After that the graphs are emptied. (Except for the localhost graphs, which seem to be working fine.)

My poller type is Spine.
I've set the poller interval to every 1 minute.
The poller Cron is set for 5 minutes.

My data templates are setup with a step of 60.
And a heartbeat of 120.

My RRA's are defined for:

Hourly (1 Minute Average) 1 10080 14400 Delete
Daily (5 Minute Average) 1 25920 86400 Delete
Weekly (30 Minute Average) 6 9000 604800 Delete
Monthly (2 Hour Average) 24 2250 2592000 Delete
Yearly (1 Day Average) 288 797 33053184 Delete
Cacti Version - 0.8.7e
Plugin Architecture - 2.5
Poller Type - Cactid v
Server Info - Linux 2.6.9-78.0.22.plus.c4smp
Web Server - Apache/2.0.63 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, gd, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, eAccelerator
MySQL - 5.0.68
RRDTool - 1.2.23
SNMP - 5.1.2
Plugins
  • Global Plugin Settings (settings - v0.5)
    Large Site Performane Booster (boost - v2.4)
    Network Tools (tools - v0.3)
    Syslog Monitoring (syslog - v0.5.2)
    Device Tracking (mactrack - v1.1)
    Login Page Mod (loginmod - v1.0)
    Update Checker (update - v0.4)
    FlowView (flowview - v0.6)
    Host Info (hostinfo - v0.2)
    Error Images (errorimage - v0.1)
    PHP Network Weathermap (weathermap - v0.96a)
    docs
    Cacti-ReportIt (reportit - v0.6.1)
    Router Configs (routerconfigs - v0.2)
    WMI Query (wmi - v0.1)
Last edited by 9Nails on Tue Sep 08, 2009 9:58 am, edited 1 time in total.
User avatar
loytstf
Posts: 13
Joined: Thu Sep 01, 2005 5:18 am
Contact:

Post by loytstf »

My poller type is Spine.
I've set the poller interval to every 1 minute.
The poller Cron is set for 5 minutes.
If you set interval to every 1 minute, your poller cron must be set to 1 minute.

Or 5 - 5, as you want, but not a mix of both !!!
_______________________________________
Cacti 0.8.8a under RedHat 6.6
NET-SNMP version: 5.5
RRDTool 1.4.x
PHP Version 5.3.3
9Nails
Posts: 42
Joined: Thu Nov 20, 2008 4:32 pm

Post by 9Nails »

I think I came to that from a post by Tekbot, http://forums.cacti.net/post-116403.html#116403

All my graphs are working for 1 minute polling. And I wish to keep them as such. So, the thinking is that this is fixed now in 8.7e and I should have my interval : cron set to 1 : 1? I'll give it a try!
9Nails
Posts: 42
Joined: Thu Nov 20, 2008 4:32 pm

Post by 9Nails »

This didn't help. My graphs are the same as before. Here's a little picture of two graphs for the same device. One graph (the lower) has graph data for the past 6 weeks. Which is up to the point of installation. The top graph only has a few days of data.

From my lack of understanding these two graphs look the same, except I can't figure out why one will have a nice history and the other is truncated. What causes this?
Attachments
1 Week View. Top graph is failing to display info, while the bottom is ok. Both graphs appear to be setup similarly.
1 Week View. Top graph is failing to display info, while the bottom is ok. Both graphs appear to be setup similarly.
Graphs.PNG (40.01 KiB) Viewed 4721 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You should start analyzing this by checking "rrdtool info" of both rrd files
Reinhard
9Nails
Posts: 42
Joined: Thu Nov 20, 2008 4:32 pm

Post by 9Nails »

I bet you've seen this before. So you probably know that I'm going to ask if there is an easy way to recreate all my failed graphs using new RRA settings.

What I'm guessing is that the early graphs which were created in CactiEZ work fine. Then I updated my version and broke it. The old graphs have more rows or data points per row than the newer graphs. So I need to figure out what and where the values were changed, put them back and make my RRD's over again, right?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

9Nails wrote:I bet you've seen this before. So you probably know that I'm going to ask if there is an easy way to recreate all my failed graphs using new RRA settings.
This is indeed possible and very easy. Simply delete any file you want to have recreated. Cacti will recreate it at next polling event using the current settings.
Reinhard
9Nails
Posts: 42
Joined: Thu Nov 20, 2008 4:32 pm

Post by 9Nails »

My Data Templates weren't configured correctly. They were configured with all the Associates RRA's as selected (Hourly, Daily, Weekly Monthly, Yearly), and with a step of 60 and a heartbeat of 120. My Poller was set to a 1 minute cron and interval.

After comparing to a fresh install of Cacti EZ (my base that I upgraded from) I changed the Data Template Associated RRA's to DEselect the "Hourly (1 minute average)", all other Associated RRA's were selected, then set the step back to 300 with a heartbeat of 600. I had noticed some graphs with the settings described above, and that had confused me. Apparently, my interface traffic is setup with the settings described in the first paragraph, and all other graphs were not.

After correcting all my templates I had to delete my graphs then create new graphs. (I left the devices, and only removed the graphs.) After building new graphs, I'm able to see 1 week+ of data now. I'll let this run for a while, but it appears to be fixed.
athina
Posts: 17
Joined: Sat Aug 08, 2009 9:59 am

Post by athina »

your suggestion is very good. so based on the solutions, delete the rrd file for corresponding graph( which has a problem) is enough? as the developer response earlier?seems easy solution.
or the graph should be delete from cacti graph management and recreate as new graph?

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests