Cacti graphs only showing realtime data & doesnt keep history

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
datgemini
Posts: 6
Joined: Tue Oct 15, 2019 10:54 pm

Cacti graphs only showing realtime data & doesnt keep history

Post by datgemini »

Hi,

I've just installed cacti window package on WinServ2012.

Everything work fine, graph appear but ONLY can view data in REAL TIME mode. :o

Do I need to config some setting to make it store and draw graph history. I've waited 20 min but it still didn't appear. :(

Logs is all green / debug troubleshoot 0 issues :-?
2019/10/16 12:10:02 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:1, TotalIssues:0, Time:0.0374

[URL=https:///]Image[/URL] upload
[URL=https:///]Image[/URL] upload
[URL=https:///]Image[/URL] upload
[URL=https:///]Image[/URL] upload

Thanks for help.
datgemini
Posts: 6
Joined: Tue Oct 15, 2019 10:54 pm

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by datgemini »

Update: i found this log in data source troubleshoot

Debug not completed after 5 pollings Failed fields: rra_timestamp2 RRDfile not updated after polling
datgemini
Posts: 6
Joined: Tue Oct 15, 2019 10:54 pm

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by datgemini »

Hey guys,

I've just re-installed from scratch with different spine and rrd tool on download page and it work well

The graph from TEMPLATE work perfectly.

But when I create new graph from DATA QUERY, it only work in REAL TIME.

When not in REAL TIME mode, It appear to Unknow RRD Tool Error . I've tried to rebuild poller cache

Image

---

Image
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by netniV »

Sounds like a permission problem to me, but hard to say without looking at the machine. RRDtool isn't giving out any great information right now so what I would suggest is going to the graph, get the graph debug command line and then running that as your website user. You can spawn a CMD.EXE using:

Code: Select all

runas /user:<machine or domain name>\<website user> cmd.exe
After you enter the password, you should have a command prompt that shows the user name in the title. From there, run the command from the graph page and then paste the output from RRDtool.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
datgemini
Posts: 6
Joined: Tue Oct 15, 2019 10:54 pm

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by datgemini »

Dear NetniV,

Thank for your reply.

I checked on Procmon and found some block file with read-only, some registry name not found. Do you think I have to re-install Cacti with Run as admin.

I checked these block files had Full-control access for User/System.

Image
-
Image
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by netniV »

Most of those things you've listed in the images seem perfectly normal. You'll get lots of not found errors when it comes to registry nodes and values. You'll have files being locked in different ways too. However, none of that really follows my suggested advice :)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
datgemini
Posts: 6
Joined: Tue Oct 15, 2019 10:54 pm

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by datgemini »

Hello NetniV, thank for your reply.

I tried even run cmd as administrator, I cannot execute rrdtool command on the graph debug page. :cry:

Image

Image
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by netniV »

Yeah the problem there is that there is no datasource called traffic_in in that rrdfile. Does that rrdfile even exist?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
datgemini
Posts: 6
Joined: Tue Oct 15, 2019 10:54 pm

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by datgemini »

Hi NetniV, thank for your reply. Yes it does exist. I will google and find how to give poller user and web user can access to these files.
izake
Posts: 15
Joined: Sat Jan 26, 2019 3:23 pm

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by izake »

Hi datgemini

Did you find a solution to this...I'm facing similar issues on RHEL 8
prottoy396
Posts: 12
Joined: Thu May 30, 2024 1:45 am

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by prottoy396 »

I am recently facing the same issue, it was an working graph but suddenly there were some data loss from remote device and the graph history are not being recorded.
https://ibb.co/1GjmM9H

I have check data src debug, and the result is
https://ibb.co/Tqvs1YS

In between I have tried Reindex, rebuild pollar cache and nothing helped. But in any another Monitoring panel, it was showing the graph (PRTG)

My query is as I was getting data from snmp query, but that was not getting listed in RRD file. How can I optimize it to get at least the lowest history to the graph, as another monitoring tool were graphing easily


And after 1 hour, it already solved automatically
https://ibb.co/vzLFKT5

Now anyone can suggest how my I get rid of this issue.
Using Collection interval 1, Polling Interval 1m, cron 5m
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Cacti graphs only showing realtime data & doesnt keep history

Post by macan »

check cacti log, maybe your poller doesn't finish on time. Try to find SYSTEM STATS lines:
2024-07-17 08:56:45 - SYSTEM STATS: Time:105.6283 Method:spine Processes:2 Threads:10 Hosts:401 HostsPerProcess:201 DataSources:18217 RRDsProcessed:0

Show few lines
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests