|
|
| Author |
Message |
Lynz
Joined: 08 Feb 2008 Posts: 3
|
Posted: Fri Feb 08, 2008 5:40 am Post subject: [SOLVED] Weathermap Problems with RRD's on NFS |
|
|
Hi,
I got some strange results if the RRD (also the whole webserver htdocs and mysql db) are on an NFS mounted Share.
Used Versions:
cacti 0.8.7a
php-weathermap 0.941
NFS Server is a Netapp3050 Filer
Web/Mysql/php-weathermap Server runs on opensuse 10.2
If the RRD's are on the local Filesystem, everything works find (about 6 Months).
After migrating the whole stuff to an NFS Mounted Filesystem, the graphs weren't generated, the php.poller touches some funny .nfs00492322 files, and the following errors were generated in cacti.log:
| Code: | | 02/08/2008 11:05:04 AM - WEATHERMAP: Poller[0] ReadData: NODE n_xxx_load, target: gauge:/srv/www/htdocs/rra/xxx_netappcpubusy_143.rrd:netappCPUBusy:netappCPUBusy on config line 73 had no valid data, according to WeatherMapDataSource_rrd |
Where /srv/www is the NFS mount (rw mounted).
This repeats for alle entrys with the "TARGET" tag.
NODE n_xxx_load
LABEL {node:this:bandwidth_in:%0.2f} CPU % Busy
INFOURL http://yyy.ccc.ggg/graph.php?rra_id=all&local_graph_id=136
OVERLIBGRAPH http://yyy.ccc.ggg/graph_image.php?local_graph_id=136&rra_id=0&graph_legend=true&graph_height=100&graph_width=300
TARGET gauge:/srv/www/htdocs/rra/xxx_netappcpubusy_143.rrd:netappCPUBusy:netappCPUBusy
USESCALE NETAPP_CPU in
POSITION n_xxx 140 0
These samples are only code snipplets of the whole config/log (config file got 1400 lines).
Also interesting is that the cacti-graphs are working (what you see if using the overlib.js an mouseover the icons).
New graphs were generated (New Timestamps on the grafic).
And now the funny part:
If i put the RRD file on the local disk and fix the path entry in the config file, everything works fine.
Are there any known Problems with weathermap and RRD's over NFS ? |
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
Posted: Fri Feb 08, 2008 5:51 am Post subject: |
|
|
Hi
from what I know, RRDtool and NFS shares are not friends...
I've tried once with a NetApp NFS server, and had a lot of locking issues... |
|
| Back to top |
|
 |
Lynz
Joined: 08 Feb 2008 Posts: 3
|
Posted: Fri Feb 08, 2008 6:21 am Post subject: |
|
|
Thanks for the fast reply.
But the wohle cacti runs on an NFS FS, calculating over 1300 RRD files without seeing any problems or errors.
Thats the reason why I thought that the problem came from weathermap.
Maybe I get some ideas after analysing Weathermap.class.php
| Code: | if (($in < 0) || ($out < 0))
{
$in=0;
$out=0;
// **
warn
("ReadData: $type $name, target: $targetstring on config line $target[3] had no valid data, according to $matched_by\n");
} |
.... UPS ... At this point I can see that my RRD's are not working properly.
I copied an old one from local FS to the NFS mount, and this one works.
So there must be a problem with the old files. Maybe there was a problem while rsync'ing the files (rsync -azv). |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Fri Feb 08, 2008 8:27 am Post subject: |
|
|
All weathermap does internally is run 'rrdtool fetch'... it doesn't know anything about locking or the underlying FS.
What you can also try though, is skipping the rrd file part for weathermap.
Add 'SET poller_output 1' to the top of your map config file, and wait for a couple of poller cycles (actually, perhaps 3). Weathermap will catch the data from the poller as it is collected, instead of pulling it out of the rrd file.
Should be a bit quicker too. |
|
| Back to top |
|
 |
Lynz
Joined: 08 Feb 2008 Posts: 3
|
Posted: Fri Feb 08, 2008 8:41 am Post subject: |
|
|
This one explains the problem:
On NFS:
yyy:/srv/www/htdocs/cacti2/plugins/weathermap # /usr/bin/rrdtool fetch /srv/www/htdocs/rra_filer/xxx_netappnfsops_146.rrd AVERAGE --start now-800 --end now
netappNFSOps
1202477400: nan
1202477700: nan
1202478000: nan
On Local FS:
yyy:/srv/www/htdocs/cacti2/plugins/weathermap # /usr/bin/rrdtool fetch /srv/www/htdocs/rra/xxx_netappnfsops_146
.rrd AVERAGE --start now-800 --end now
netappNFSOps
1202477400: 7.4844546667e+02
1202477700: 4.0938043333e+02
1202478000: nan
Resumee:
I could live with: RRDtool and NFS are not friends.
Maybe another day.
Thanks for your time. |
|
| Back to top |
|
 |
|