Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Hi,
I`m struggling with the permissions of the maps i created.
Does someone knows the correct permissions of the files of the folder en files in the output folder and config folder..
WEATHERMAP: Poller[0] WARNING: Output directory (/usr/share/cacti/plugins/weathermap/output) isn't writable (tried to create '/usr/share/cacti/plugins/weathermap/output/weathermap.permissions.test'). No maps created. You probably need to make it writable by the poller process (like you did with the RRA directory) [WMPOLL06]
hallo, the permissions should be that of your web server, you can also make the user cacti part of your apache group, and chmod -R 775 it, should fix it for you ...
You can make life a little nicer with the 'recalculate now' button, by *also* making files owned by group 'apache' (or whatever group your apache user is a member of), and then also making the output directory and files group-writable by that group.
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Disk say 37.49G available
I also backup t the config files and the image directory
removed the weathermap dir. and installed a fresh one. Enabled a new simple.conf and it keeps coming with the same error.
I hope i don`t have to install all from scratch.
Last edited by Palermo on Thu Aug 13, 2009 6:41 am, edited 1 time in total.
Looking at those file dates, it seems that it IS updating the files though, isn't it? Do the contents change? (I mean - is the datestamp on the map changing?)
Howie wrote:Looking at those file dates, it seems that it IS updating the files though, isn't it? Do the contents change? (I mean - is the datestamp on the map changing?)
Thats correct. the date stamp updates. And the pictures also.
is that strange or what
But no weathermap picture and no thumbnails and keeps coming with the same error in the log.
08/14/2009 07:00:03 AM - WEATHERMAP: Poller[0] STATS: Weathermap 0.96a run complete - 2 maps were run in 1 seconds with 2 warnings.
08/14/2009 07:00:03 AM - WEATHERMAP: Poller[0] [Map 5] Cacti Test Environment: Wrote map to /usr/share/cacti/plugins/weathermap/output/c3171ffbb43f18e31651.png and /usr/share/cacti/plugins/weathermap/output/c3171ffbb43f18e31651.thumb.png
08/14/2009 07:00:03 AM - WEATHERMAP: Poller[0] WARNING: [Map 5] Cacti Test Environment: Failed to overwrite existing image file /usr/share/cacti/plugins/weathermap/output/c3171ffbb43f18e31651.png - permissions of existing file are wrong? [WMWARN15]
If you open the file in the map output directly. the map is updated and well. But in cacti if you hit the tab Weathermap you see no tumbnails (in my case be course i have 2 mapes)and no pictures.. if i remove 1 map from the config map. i see a broken picture icon at the top right side in the cacti weathermap tab.
Palermo wrote:If you open the file in the map output directly. the map is updated and well. But in cacti if you hit the tab Weathermap you see no tumbnails (in my case be course i have 2 mapes)and no pictures.. if i remove 1 map from the config map. i see a broken picture icon at the top right side in the cacti weathermap tab.
Hmm, I didn't notice that before. There are no thumbnail files. It should look more like this:
-rw-r--r-- 1 cactiuser cactiuser 12840 Aug 14 09:21 f44f4eaae97f10360153.html
-rw-r--r-- 1 cactiuser cactiuser 259569 Aug 14 09:21 f44f4eaae97f10360153.png
-rw-r--r-- 1 cactiuser cactiuser 23009 Aug 14 09:21 f44f4eaae97f10360153.thumb.png
-rw-r--r-- 1 cactiuser cactiuser 12889 Aug 14 09:21 f6b367a90c84060ead4f.html
-rw-r--r-- 1 cactiuser cactiuser 249855 Aug 14 09:21 f6b367a90c84060ead4f.png
-rw-r--r-- 1 cactiuser cactiuser 24544 Aug 14 09:21 f6b367a90c84060ead4f.thumb.png
-rw-r--r-- 1 cactiuser cactiuser 21652 Aug 14 09:21 fb7fa01af669ba72f4bc.html
-rw-r--r-- 1 cactiuser cactiuser 253765 Aug 14 09:21 fb7fa01af669ba72f4bc.png
-rw-r--r-- 1 cactiuser cactiuser 28649 Aug 14 09:21 fb7fa01af669ba72f4bc.thumb.png
Have you made any PHP changes lately? The thumbnail generation relies on a particular PHP function that isn't always present. Running check.php should confirm that.