weathermap cannot find rrd files

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
wizardelo
Posts: 7
Joined: Fri Aug 08, 2014 7:27 am

weathermap cannot find rrd files

Post by wizardelo »

Hello,

i have recently moved to a new machine and i cannot get my weathermap configs to work properly.
since i have a different folder for my rrds, i have set this in my config

SET rrd_default_path /var/www/cacti/rrds

the maps show but the rrd data isnt recognized and inserted at all:(
on a debug it shows:

08/08/2014 04:00:04 PM - WEATHERMAP: Poller[0] WARNING: [Map 20] CoreBB: Target /var/www/cacti/rrds/ss7.rrd doesn't exist. Is it a file? [WMRRD06]
08/08/2014 04:00:04 PM - WEATHERMAP: Poller[0] WARNING: [Map 20] CoreBB: ReadData: LINK BUX9-BUX5, target: scale:-1:ss7.rrd:-:ske10 on config line 642 of /usr/share/cacti/site/plugins/weathermap/configs/CoreBB had no valid data, according to WeatherMapDataSource_rrd

i also made sure the file exists:

#ls -l /var/www/cacti/rrds/ss7.rrd
-rw-r--r-- 1 cacti cacti 960896 Oct 26 2012 /var/www/cacti/rrds/ss7.rrd

i dont know what else could it be, and why my map.config is refusing to use the rrd file.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weathermap cannot find rrd files

Post by Howie »

Are you sure? Cacti normally stores rrd files in a directory called rra/

Also, that file you show hasn't been updated since 2012!
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!)
wizardelo
Posts: 7
Joined: Fri Aug 08, 2014 7:27 am

Re: weathermap cannot find rrd files

Post by wizardelo »

yes i know cacti stores files in rra/, but i use a remote folder because i creat my rrds with another tool. so i do not overlap with cacti's own rra files.

that is why i used a global SET in my map.config: SET rrd_default_path /var/www/cacti/rrds

it doesnt really matter when the file is created, the question is why is it refusing to use it ;)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weathermap cannot find rrd files

Post by Howie »

Fair enough :-)

What happens if you use the full path in the config file (instead of using the default base path)?

(also, it's still 2 years out of date ;-) )
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!)
wizardelo
Posts: 7
Joined: Fri Aug 08, 2014 7:27 am

Re: weathermap cannot find rrd files

Post by wizardelo »

i removed the global SET path and added full path in the TARGET
i am now using a actualy rrd file:)) from 2014 so there is no problem there .

TARGET scale:1:/var/www/cacti/rrds/zap.rrd:OUT:- scale:1:/var/www/cacti/rrds/zap.rrd:-:IN


checked the file again to see if it exists
#ls -l /var/www/cacti/rrds/
-rw-r--r-- 1 root root 960896 Aug 8 16:25 zapp.rrd


still no love:(

08/08/2014 04:35:02 PM - WEATHERMAP: Poller[0] WARNING: [Map 23] CoreFix: Target /var/www/cacti/rrds/zap.rrd doesn't exist. Is it a file? [WMRRD06]
08/08/2014 04:35:02 PM - WEATHERMAP: Poller[0] WARNING: [Map 23] CoreFix: ReadData: LINK fix-zap1, target: scale:1:/var/www/cacti/rrds/zap.rrd:OUT:- on config line 68 of /usr/share/cacti/site/plugins/weathermap/configs/CoreFix had no valid data, according to WeatherMapDataSource_rrd

EDIT: so i think the problem is elsewhere because i just copied my rrd file into the default folder of cacti rra
/var/lib/cacti/rra where i have found the rrd generated by cacti and weathermap its stil refusing to use them.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weathermap cannot find rrd files

Post by Howie »

zapp != zap

Also, you can skip the scale:1: from the front of the target...
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!)
wizardelo
Posts: 7
Joined: Fri Aug 08, 2014 7:27 am

Re: weathermap cannot find rrd files

Post by wizardelo »

hmm just noticed the extra p there and corrected, but that wasnt it either.

so here is my map conf object

LINK ss7-zapp
VIASTYLE angled
LINKSTYLE oneway
DUPLEX half
OVERLIBCAPTION IN: {link:ss7-zapp:e10zapp} OUT: {link:ss7-zapp:zappe10}
TARGET zapp.rrd:OUT:- zapp.rrd:IN
NODES ss7 zapp
VIA 550 150
VIA 480 150
BANDWIDTH 870

my rrd DS are e10zapp & zappe10
file is now located in /var/lib/cacti/rra/zapp.rrd

can you take another look see if maybe im missing something?

error message is the same
08/08/2014 05:05:02 PM - WEATHERMAP: Poller[0] WARNING: [Map 23] CoreFix: Target zapp.rrd doesn't exist. Is it a file? [WMRRD06]
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weathermap cannot find rrd files

Post by Howie »

How about:

TARGET /var/lib/cacti/rra/zapp.rrd

?

Also that should be zapp.rrd:IN:- not zapp.rrd:IN
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!)
wizardelo
Posts: 7
Joined: Fri Aug 08, 2014 7:27 am

Re: weathermap cannot find rrd files

Post by wizardelo »

changed map.conf
TARGET /var/lib/cacti/rra/zapp.rrd:OUT:- /var/lib/cacti/rra/zapp.rrd:-:IN

# ls -l /var/lib/cacti/rra/zapp.rrd
-rw-r--r-- 1 cacti cacti 960896 Aug 8 17:25 /var/lib/cacti/rra/zapp.rrd

error still there :
08/08/2014 05:25:02 PM - WEATHERMAP: Poller[0] WARNING: [Map 23] CoreFix: Target /var/lib/cacti/rra/zapp.rrd doesn't exist. Is it a file? [WMRRD06]

was reading up on a faq and corrected a bit the syntax also
http://www.network-weathermap.com/manua ... INK_TARGET

im still thinking it might be related with permisions not with path. because somewhere says weathermap runs with user www-data while i have cacti user running poller.php
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weathermap cannot find rrd files

Post by Howie »

The editor runs as www-data, but weathermap (the actual bit that produces maps) runs from the poller.

So.. what are the permissions of the directory itself?

Also, wait a second, you've changed the path to rra/ as well... that's not the same directory anymore! Although it does still exist.

If it's now the regular cacti rra directory, then it should definitely be readable by weathermap.
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!)
wizardelo
Posts: 7
Joined: Fri Aug 08, 2014 7:27 am

Re: weathermap cannot find rrd files

Post by wizardelo »

yes ive moved to default rra/ so elimited the issue.
i dont work with the editor so i'll remove any www-data permisions.

ls -l /var/lib/cacti/
drwxrwx--- 2 cacti cacti 40960 Aug 8 16:25 rra

i made a copy of my rrd file and put in plugins/weathermap/ folder and guess what it read it!! :(
but i think i need to change the TARGET again because its still confused about my DS. but at least it doesnt say rra file not exist.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weathermap cannot find rrd files

Post by Howie »

selinux enabled?

check the audit log for denies, if so...
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!)
wizardelo
Posts: 7
Joined: Fri Aug 08, 2014 7:27 am

Re: weathermap cannot find rrd files

Post by wizardelo »

we do not use selinux, it is disabled. will have to find another way to figure this one out.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests