weathermap cannot find rrd files
Moderators: Developers, Moderators
weathermap cannot find rrd files
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: scaless7.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.
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: scaless7.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.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: weathermap cannot find rrd files
Are you sure? Cacti normally stores rrd files in a directory called rra/
Also, that file you show hasn't been updated since 2012!
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!)
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!)
Re: weathermap cannot find rrd files
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
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
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: weathermap cannot find rrd files
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 )
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!)
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!)
Re: weathermap cannot find rrd files
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.
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.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: weathermap cannot find rrd files
zapp != zap
Also, you can skip the scale:1: from the front of the target...
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!)
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!)
Re: weathermap cannot find rrd files
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]
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]
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: weathermap cannot find rrd files
How about:
TARGET /var/lib/cacti/rra/zapp.rrd
?
Also that should be zapp.rrd:IN:- not zapp.rrd:IN
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!)
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!)
Re: weathermap cannot find rrd files
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
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
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: weathermap cannot find rrd files
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.
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!)
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!)
Re: weathermap cannot find rrd files
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.
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.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: weathermap cannot find rrd files
selinux enabled?
check the audit log for denies, if so...
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!)
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!)
Re: weathermap cannot find rrd files
we do not use selinux, it is disabled. will have to find another way to figure this one out.
Who is online
Users browsing this forum: No registered users and 0 guests