Hello
My filesystem were the cacti data are was full and now after removing obsolete stuff cacti is not logging anymore the most stuff...
Some rrd's are updated but the most not.
The mysql database is on an other fs than the data of cacti.
How can I solve the problem wihtout losing the old data?
Any hints?
Thanks
Beat
Filesystem full - cacti does not log anymore
Moderators: Developers, Moderators
BTW: There are differences in the rra files in the length
which works and don't work
Fore example
4579412 bytes
4579416 bytes
of one example and
1527444
1527448
in an other example ...
I don't understand id the rra is created with a fixed length why
a full fs can affect the old rra's ...
Of course newly created rra's will have problems but the old ones
which were already created ...
BTW: Recreating the whole stuff is really no option
I have 542 rra files
which works and don't work
Fore example
4579412 bytes
4579416 bytes
of one example and
1527444
1527448
in an other example ...
I don't understand id the rra is created with a fixed length why
a full fs can affect the old rra's ...
Of course newly created rra's will have problems but the old ones
which were already created ...
BTW: Recreating the whole stuff is really no option
I have 542 rra files
Ok the problem seems to be solved.
There were rrd files with length 0 and some other length which were created while fs was full...
A run of the poller from shell did complain about 2 files with the following error:
ERROR: reading the cookie off .../cacti-test/rra/xxx.rrd faild
After removing whole stuff which was created now it seems to work.
But why cacti does not put the stuff in the rrd files which works????????
This really seems to be a bug i.e. if there are corrupted rrd files
other rrd files which are ok will not be updated.
Could it be that the whole poller thread will fail?
I have max. 10 concurrent poller running...
My cacti version: 0.8.7b
rrdtools: 1.2.23-47
System: OpenSuse 10.3
If you need more info let me know.
Greetings
Beat
There were rrd files with length 0 and some other length which were created while fs was full...
A run of the poller from shell did complain about 2 files with the following error:
ERROR: reading the cookie off .../cacti-test/rra/xxx.rrd faild
After removing whole stuff which was created now it seems to work.
But why cacti does not put the stuff in the rrd files which works????????
This really seems to be a bug i.e. if there are corrupted rrd files
other rrd files which are ok will not be updated.
Could it be that the whole poller thread will fail?
I have max. 10 concurrent poller running...
My cacti version: 0.8.7b
rrdtools: 1.2.23-47
System: OpenSuse 10.3
If you need more info let me know.
Greetings
Beat
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
It's worse than that, even. On some filesystems there is a 2Gig size limit for single file. If the log file reaches that size, then the poller stops running!
(this was a few versions ago, I don't know if it's still a problem)
(this was a few versions ago, I don't know if it's still a problem)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
It's more of an OS/PHP issue than a Cacti issue. This is why you should setup log rotation in Cacti. The Debian distribution does this about the best. It not only places the Cacti.log file in /var/log, but rotates it and moves a few other things around to make Cacti a little more secure.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Really? When a process can't write to a file, the OS kills it?TheWitness wrote:It's more of an OS/PHP issue than a Cacti issue. This is why you should setup log rotation in Cacti. The Debian distribution does this about the best. It not only places the Cacti.log file in /var/log, but rotates it and moves a few other things around to make Cacti a little more secure.
TheWitness
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Are you talking about linux or windows???
Maybe php4 kills the process. I don't know php4 but not the os!!
The problem is that 95% of the software never checks a write if it
worked or not (what should go wrong with a write??)!!
And of course the other idea of programmers are what can I do if the write
does not work ...
The problem maybe is that if the process cannot write to the fs it will
after some time write in the wrong page or something else and than it
receives the sigv ...
Nevertheless I can tell you that the os don't kill the process!
I don't know php4 as noted but know a lot of C,C++ and java.
Greetings
Beat
Maybe php4 kills the process. I don't know php4 but not the os!!
The problem is that 95% of the software never checks a write if it
worked or not (what should go wrong with a write??)!!
And of course the other idea of programmers are what can I do if the write
does not work ...
The problem maybe is that if the process cannot write to the fs it will
after some time write in the wrong page or something else and than it
receives the sigv ...
Nevertheless I can tell you that the os don't kill the process!
I don't know php4 as noted but know a lot of C,C++ and java.
Greetings
Beat
Who is online
Users browsing this forum: No registered users and 1 guest