thumbnail for map not created yet

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

saryas
Posts: 30
Joined: Fri Mar 26, 2010 1:37 am

thumbnail for map not created yet

Post by saryas »

Hello,

I have a problem with the weathermap plugin. When i click on the weathermap tab in order to see a thumbnail of the map, i have this message "(thumbnail for map not created yet)" . I made many researches in order to solve this problem and i realized that it is related to the permissions. i must give permissions to cactiuser in order to access the "output" folder located in the weathermap folder. I did write the command that gives permissions to cactiuser but still nothing is displayed but this message. So please if you have a solution to this problem, let me know about it.

Thank you in advance,

Best regards,
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: thumbnail for map not created yet

Post by Howie »

saryas wrote:Hello,

I have a problem with the weathermap plugin. When i click on the weathermap tab in order to see a thumbnail of the map, i have this message "(thumbnail for map not created yet)" . I made many researches in order to solve this problem and i realized that it is related to the permissions. i must give permissions to cactiuser in order to access the "output" folder located in the weathermap folder. I did write the command that gives permissions to cactiuser but still nothing is displayed but this message. So please if you have a solution to this problem, let me know about it.

Thank you in advance,

Best regards,
Look in the cacti.log - if there are permissions problems with weathermap, there will be log entries.
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!)
saryas
Posts: 30
Joined: Fri Mar 26, 2010 1:37 am

Post by saryas »

Hello again,

I checked the log file as u said but there are no log entries concerning a problem with the permissions...any other solution please please???

Thank you in advance!!
mark_6974
Posts: 1
Joined: Mon Mar 22, 2010 6:05 pm

Post by mark_6974 »

I'm experiencing the same issue. I'm running the following:
Centos 5.2
Cacti Version 0.8.7e
SNMP Version NET-SNMP version: 5.3.2.2
RRDTool Version RRDTool 1.3.x
PHP Version 5.2.11
GD Version bundled (2.0.34 compatible)
cacti-plugin-0.8.7e-PA-v2.6

I've rebuild my cacti from scratch, only to end up with the same results. Its not a permission issue. I can create and update map manually from cli only.
Everything is working great with the updated versions, except weathermaps. I have weathermaps working of 4 other servers, however running later versions of cacti / plugin / and weathermap.

Anyone with solutions please?????
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I use the exact same setup to test, so it's not a general platform issue.

SELinux?
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!)
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Hi, I am also facing problem which thumbnail for map not created yet.

weathermap 1.jpg
weathermap 1.jpg (61.46 KiB) Viewed 7835 times

Though I am able to add map.

weathermap 2.jpg
weathermap 2.jpg (104.65 KiB) Viewed 7835 times

I am unable to create a new map or create a new map as a copy of an existing map at the editor's page.

weathermap 3.jpg
weathermap 3.jpg (138.76 KiB) Viewed 7834 times

However, I am able to Open and edit an existing map and save it.

weathermap 4.jpg
weathermap 4.jpg (156.54 KiB) Viewed 7825 times

My current system configuration is as follows:-

CentOS release 6.7 (Final)
Linux MyCacti 2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22 22:00:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Cacti 0.8.8b
Weathermap 0.97c

# more /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
saslauth:x:499:76:Saslauthd user:/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
cacti:x:498:498::/usr/share/cacti:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
fixie:x:501:501::/home/fixie:/bin/bash


# ps aux |grep httpd
root 5647 0.0 0.0 282028 13976 ? Ss Oct03 0:35 /usr/sbin/httpd
apache 10947 0.0 0.1 293876 22788 ? S Oct04 0:04 /usr/sbin/httpd
apache 10948 0.0 0.1 302368 30816 ? S Oct04 0:04 /usr/sbin/httpd
apache 10949 0.0 0.1 302352 30804 ? S Oct04 0:04 /usr/sbin/httpd


# cd /usr/share/cacti
# ls -la

total 876
drwxr-xr-x. 8 root root 4096 Sep 27 23:50 .
drwxr-xr-x. 73 root root 4096 Sep 27 23:50 ..
-rw-r--r--. 1 root root 5945 Jun 28 2014 about.php
-rw-r--r--. 1 root root 5348 Jun 28 2014 auth_changepassword.php
-rw-r--r--. 1 root root 14288 Jun 28 2014 auth_login.php
-rw-r--r--. 1 root root 21864 Jun 28 2014 cdef.php
lrwxrwxrwx. 1 root root 18 Sep 27 23:50 cli -> /var/lib/cacti/cli
-rwxr-xr-x. 1 root root 26620 Jun 28 2014 cmd.php
-rw-r--r--. 1 root root 6974 Jun 28 2014 color.php
-rw-r--r--. 1 root root 25255 Jun 28 2014 data_input.php
-rw-r--r--. 1 root root 35692 Jun 28 2014 data_queries.php
-rw-r--r--. 1 root root 60304 Jun 28 2014 data_sources.php
-rw-r--r--. 1 root root 33107 Jun 28 2014 data_templates.php
-rw-r--r--. 1 root root 6107 Jun 28 2014 gprint_presets.php
-rw-r--r--. 1 root root 3657 Jun 28 2014 graph_image.php
-rw-r--r--. 1 root root 13469 Jun 28 2014 graph.php
-rw-r--r--. 1 root root 9208 Jun 28 2014 graph_settings.php
-rw-r--r--. 1 root root 17426 Jun 28 2014 graphs_items.php
-rw-r--r--. 1 root root 40166 Jun 28 2014 graphs_new.php
-rw-r--r--. 1 root root 60759 Jun 28 2014 graphs.php
-rw-r--r--. 1 root root 10285 Jun 28 2014 graph_templates_inputs.php
-rw-r--r--. 1 root root 18542 Jun 28 2014 graph_templates_items.php
-rw-r--r--. 1 root root 26890 Jun 28 2014 graph_templates.php
-rw-r--r--. 1 root root 40313 Jun 28 2014 graph_view.php
-rw-r--r--. 1 root root 6480 Jun 28 2014 graph_xport.php
-rw-r--r--. 1 root root 60413 Jun 28 2014 host.php
-rw-r--r--. 1 root root 20218 Jun 28 2014 host_templates.php
drwxr-xr-x. 2 root root 4096 Sep 27 23:50 images
drwxr-xr-x. 4 root root 4096 Oct 6 00:22 include
-rw-r--r--. 1 root root 2313 Jun 28 2014 index.php
drwxr-xr-x. 2 root root 4096 Sep 27 23:50 install
drwxr-xr-x. 3 root root 4096 Sep 27 23:50 lib
lrwxrwxrwx. 1 root root 15 Sep 27 23:50 log -> /var/log/cacti/
-rw-r--r--. 1 root root 2838 Jun 28 2014 logout.php
drwxr-xr-x. 14 root root 4096 Sep 28 17:47 plugins
-rw-r--r--. 1 root root 27362 Jun 28 2014 plugins.php
-rw-r--r--. 1 root root 4310 Jun 28 2014 poller_commands.php
-rw-r--r--. 1 root root 2243 Jun 28 2014 poller_export.php
-rwxr-xr-x. 1 root root 18056 Jun 28 2014 poller.php
drwxr-xr-x. 5 root root 4096 Sep 27 23:50 resource
lrwxrwxrwx. 1 root root 18 Sep 27 23:50 rra -> /var/lib/cacti/rra
-rw-r--r--. 1 root root 7394 Jun 28 2014 rra.php
lrwxrwxrwx. 1 root root 22 Sep 27 23:50 scripts -> /var/lib/cacti/scripts
-rw-r--r--. 1 root root 10820 Jun 28 2014 script_server.php
-rw-r--r--. 1 root root 5761 Jun 28 2014 settings.php
-rw-r--r--. 1 root root 6345 Jun 28 2014 templates_export.php
-rw-r--r--. 1 root root 5835 Jun 28 2014 templates_import.php
-rw-r--r--. 1 root root 19529 Jun 28 2014 tree.php
-rw-r--r--. 1 root root 44997 Jun 28 2014 user_admin.php
-rw-r--r--. 1 root root 65635 Jun 28 2014 utilities.php


# cd rra
# ls -la

total 8704
drwxr-xr-x. 2 cacti root 12288 Oct 9 16:45 .
drwxr-xr-x. 5 root root 4096 Sep 27 23:50 ..
-rw-r--r--. 1 cacti cacti 8792 Oct 13 16:05 asr1006-cen1-noc-ibr01_5min_cpu_197.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_173.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_174.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_175.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_176.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_177.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_178.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_179.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_180.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_181.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_182.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_183.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_184.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_185.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_186.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_187.rrd
-rw-r--r--. 1 cacti cacti 8792 Oct 13 16:05 asr1006-cen1-noc-rr01_5min_cpu_196.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-rr01_traffic_in_188.rrd



# cd /usr/share/cacti/plugins/
# ls -la

total 60
drwxr-xr-x. 14 root root 4096 Sep 28 17:47 .
drwxr-xr-x. 8 root root 4096 Sep 27 23:50 ..
drwxr-xr-x. 3 root root 4096 Dec 22 2011 discovery
drwxr-xr-x. 3 root root 4096 Oct 6 2011 errorimage
drwxr-xr-x. 4 root root 4096 Dec 1 2011 hmib
-rw-r--r--. 1 root root 44 Aug 7 2013 index.php
drwxr-xr-x. 4 root root 4096 Oct 6 2011 monitor
drwxr-xr-x. 2 fixie fixie 4096 Dec 21 2009 nectar
drwxr-xr-x. 4 apache cacti 4096 Apr 2 2013 nmidWeb2
drwxr-xr-x. 13 root root 4096 Sep 28 01:22 plugins
drwxr-xr-x. 3 root root 4096 Sep 28 01:22 realtime
drwxr-xr-x. 3 root root 4096 Sep 25 2011 settings
drwxr-xr-x. 5 root root 4096 Dec 3 2011 syslog
drwxr-xr-x. 5 root root 4096 Jun 10 2013 thold
drwxr-xr-x. 9 root root 4096 Oct 8 13:46 weathermap



# cd weathermap/
# ls -la

total 432
drwxr-xr-x. 9 root root 4096 Oct 8 13:46 .
drwxr-xr-x. 14 root root 4096 Sep 28 17:47 ..
-rwxr--r--. 1 root root 12735 Apr 4 2013 cacti-pick.php
-rwxr--r--. 1 root root 35564 Apr 11 2013 CHANGES
-rw-r--r--. 1 root root 1633 Mar 22 2013 check-gdbug.php
-rw-r--r--. 1 root root 13008 Mar 26 2013 check.php
drwxr--r--. 2 apache apache 4096 Oct 9 16:12 configs
-rw-r--r--. 1 root root 18011 Mar 22 2013 COPYING
drwxr-xr-x. 7 root root 4096 Apr 11 2013 docs
-rwxr-xr-x. 1 root root 49604 Sep 28 01:24 editor.php
-rwxr-xr-x. 1 root root 49605 Sep 28 01:23 editor.php.default
drwxr-xr-x. 2 root root 4096 Apr 11 2013 editor-resources
drwxr-xr-x. 2 root root 4096 Apr 11 2013 images
-rw-r--r--. 1 root root 62 Mar 22 2013 index.php
drwxr-xr-x. 5 root root 4096 Apr 11 2013 lib
-rw-r--r--. 1 root root 65 Mar 22 2013 logout.php
-rw-r--r--. 1 root root 38 Mar 22 2013 net-data.txt
drwxr--r--. 2 apache apache 4096 Apr 11 2013 output
-rw-r--r--. 1 root root 50734 Mar 22 2013 overlib.js
drwxr-xr-x. 2 root root 4096 Apr 11 2013 random-bits
-rw-r--r--. 1 root root 1348 Mar 25 2013 README
-rw-r--r--. 1 root root 36357 Mar 22 2013 setup.php
-rwxr-xr-x. 1 root root 8683 Apr 3 2013 weathermap
-rw-r--r--. 1 root root 149 Mar 22 2013 weathermap-cacti-plugin.css
-rwxr--r--. 1 root root 42134 Apr 3 2013 weathermap-cacti-plugin-mgmt.php
-rwxr--r--. 1 root root 26791 Apr 3 2013 weathermap-cacti-plugin.php
-rw-r--r--. 1 root root 1052 Mar 22 2013 weathermap-cacti-rebuild.php
-rw-r--r--. 1 root root 370 Mar 22 2013 weathermap.conf

Hope I may get some help here.

Thanks & Best Regards,
Andrew
Last edited by andrewtee2001 on Tue Oct 13, 2015 3:22 am, edited 1 time in total.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: thumbnail for map not created yet

Post by Howie »

Did you check the permissions are correct on the output and configs directories?

Did you look in the cacti.log for any weathermap errors?

What does the editor say when you try to create a map? (the screenshot is a completely normal front screen)
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!)
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

My current system configuration is as follows:-

CentOS release 6.7 (Final)
Linux MyCacti 2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22 22:00:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Cacti 0.8.8b
Weathermap 0.97c

# more /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
saslauth:x:499:76:Saslauthd user:/var/empty/saslauth:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
cacti:x:498:498::/usr/share/cacti:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
fixie:x:501:501::/home/fixie:/bin/bash


# ps aux |grep httpd
root 5647 0.0 0.0 282028 13976 ? Ss Oct03 0:35 /usr/sbin/httpd
apache 10947 0.0 0.1 293876 22788 ? S Oct04 0:04 /usr/sbin/httpd
apache 10948 0.0 0.1 302368 30816 ? S Oct04 0:04 /usr/sbin/httpd
apache 10949 0.0 0.1 302352 30804 ? S Oct04 0:04 /usr/sbin/httpd


# cd /usr/share/cacti
# ls -la

total 876
drwxr-xr-x. 8 root root 4096 Sep 27 23:50 .
drwxr-xr-x. 73 root root 4096 Sep 27 23:50 ..
-rw-r--r--. 1 root root 5945 Jun 28 2014 about.php
-rw-r--r--. 1 root root 5348 Jun 28 2014 auth_changepassword.php
-rw-r--r--. 1 root root 14288 Jun 28 2014 auth_login.php
-rw-r--r--. 1 root root 21864 Jun 28 2014 cdef.php
lrwxrwxrwx. 1 root root 18 Sep 27 23:50 cli -> /var/lib/cacti/cli
-rwxr-xr-x. 1 root root 26620 Jun 28 2014 cmd.php
-rw-r--r--. 1 root root 6974 Jun 28 2014 color.php
-rw-r--r--. 1 root root 25255 Jun 28 2014 data_input.php
-rw-r--r--. 1 root root 35692 Jun 28 2014 data_queries.php
-rw-r--r--. 1 root root 60304 Jun 28 2014 data_sources.php
-rw-r--r--. 1 root root 33107 Jun 28 2014 data_templates.php
-rw-r--r--. 1 root root 6107 Jun 28 2014 gprint_presets.php
-rw-r--r--. 1 root root 3657 Jun 28 2014 graph_image.php
-rw-r--r--. 1 root root 13469 Jun 28 2014 graph.php
-rw-r--r--. 1 root root 9208 Jun 28 2014 graph_settings.php
-rw-r--r--. 1 root root 17426 Jun 28 2014 graphs_items.php
-rw-r--r--. 1 root root 40166 Jun 28 2014 graphs_new.php
-rw-r--r--. 1 root root 60759 Jun 28 2014 graphs.php
-rw-r--r--. 1 root root 10285 Jun 28 2014 graph_templates_inputs.php
-rw-r--r--. 1 root root 18542 Jun 28 2014 graph_templates_items.php
-rw-r--r--. 1 root root 26890 Jun 28 2014 graph_templates.php
-rw-r--r--. 1 root root 40313 Jun 28 2014 graph_view.php
-rw-r--r--. 1 root root 6480 Jun 28 2014 graph_xport.php
-rw-r--r--. 1 root root 60413 Jun 28 2014 host.php
-rw-r--r--. 1 root root 20218 Jun 28 2014 host_templates.php
drwxr-xr-x. 2 root root 4096 Sep 27 23:50 images
drwxr-xr-x. 4 root root 4096 Oct 6 00:22 include
-rw-r--r--. 1 root root 2313 Jun 28 2014 index.php
drwxr-xr-x. 2 root root 4096 Sep 27 23:50 install
drwxr-xr-x. 3 root root 4096 Sep 27 23:50 lib
lrwxrwxrwx. 1 root root 15 Sep 27 23:50 log -> /var/log/cacti/
-rw-r--r--. 1 root root 2838 Jun 28 2014 logout.php
drwxr-xr-x. 14 root root 4096 Sep 28 17:47 plugins
-rw-r--r--. 1 root root 27362 Jun 28 2014 plugins.php
-rw-r--r--. 1 root root 4310 Jun 28 2014 poller_commands.php
-rw-r--r--. 1 root root 2243 Jun 28 2014 poller_export.php
-rwxr-xr-x. 1 root root 18056 Jun 28 2014 poller.php
drwxr-xr-x. 5 root root 4096 Sep 27 23:50 resource
lrwxrwxrwx. 1 root root 18 Sep 27 23:50 rra -> /var/lib/cacti/rra
-rw-r--r--. 1 root root 7394 Jun 28 2014 rra.php
lrwxrwxrwx. 1 root root 22 Sep 27 23:50 scripts -> /var/lib/cacti/scripts
-rw-r--r--. 1 root root 10820 Jun 28 2014 script_server.php
-rw-r--r--. 1 root root 5761 Jun 28 2014 settings.php
-rw-r--r--. 1 root root 6345 Jun 28 2014 templates_export.php
-rw-r--r--. 1 root root 5835 Jun 28 2014 templates_import.php
-rw-r--r--. 1 root root 19529 Jun 28 2014 tree.php
-rw-r--r--. 1 root root 44997 Jun 28 2014 user_admin.php
-rw-r--r--. 1 root root 65635 Jun 28 2014 utilities.php


# cd rra
# ls -la

total 8704
drwxr-xr-x. 2 cacti root 12288 Oct 9 16:45 .
drwxr-xr-x. 5 root root 4096 Sep 27 23:50 ..
-rw-r--r--. 1 cacti cacti 8792 Oct 13 16:05 asr1006-cen1-noc-ibr01_5min_cpu_197.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_173.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_174.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_175.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_176.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_177.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_178.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_179.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_180.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_181.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_182.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_183.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_184.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_185.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_186.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-ibr01_traffic_in_187.rrd
-rw-r--r--. 1 cacti cacti 8792 Oct 13 16:05 asr1006-cen1-noc-rr01_5min_cpu_196.rrd
-rw-r--r--. 1 cacti cacti 94816 Oct 13 16:05 asr1006-cen1-noc-rr01_traffic_in_188.rrd



# cd /usr/share/cacti/plugins/
# ls -la

total 60
drwxr-xr-x. 14 root root 4096 Sep 28 17:47 .
drwxr-xr-x. 8 root root 4096 Sep 27 23:50 ..
drwxr-xr-x. 3 root root 4096 Dec 22 2011 discovery
drwxr-xr-x. 3 root root 4096 Oct 6 2011 errorimage
drwxr-xr-x. 4 root root 4096 Dec 1 2011 hmib
-rw-r--r--. 1 root root 44 Aug 7 2013 index.php
drwxr-xr-x. 4 root root 4096 Oct 6 2011 monitor
drwxr-xr-x. 2 fixie fixie 4096 Dec 21 2009 nectar
drwxr-xr-x. 4 apache cacti 4096 Apr 2 2013 nmidWeb2
drwxr-xr-x. 13 root root 4096 Sep 28 01:22 plugins
drwxr-xr-x. 3 root root 4096 Sep 28 01:22 realtime
drwxr-xr-x. 3 root root 4096 Sep 25 2011 settings
drwxr-xr-x. 5 root root 4096 Dec 3 2011 syslog
drwxr-xr-x. 5 root root 4096 Jun 10 2013 thold
drwxr-xr-x. 9 root root 4096 Oct 8 13:46 weathermap



# cd weathermap/
# ls -la

total 432
drwxr-xr-x. 9 root root 4096 Oct 8 13:46 .
drwxr-xr-x. 14 root root 4096 Sep 28 17:47 ..
-rwxr--r--. 1 root root 12735 Apr 4 2013 cacti-pick.php
-rwxr--r--. 1 root root 35564 Apr 11 2013 CHANGES
-rw-r--r--. 1 root root 1633 Mar 22 2013 check-gdbug.php
-rw-r--r--. 1 root root 13008 Mar 26 2013 check.php
drwxr--r--. 2 apache apache 4096 Oct 9 16:12 configs
-rw-r--r--. 1 root root 18011 Mar 22 2013 COPYING
drwxr-xr-x. 7 root root 4096 Apr 11 2013 docs
-rwxr-xr-x. 1 root root 49604 Sep 28 01:24 editor.php
-rwxr-xr-x. 1 root root 49605 Sep 28 01:23 editor.php.default
drwxr-xr-x. 2 root root 4096 Apr 11 2013 editor-resources
drwxr-xr-x. 2 root root 4096 Apr 11 2013 images
-rw-r--r--. 1 root root 62 Mar 22 2013 index.php
drwxr-xr-x. 5 root root 4096 Apr 11 2013 lib
-rw-r--r--. 1 root root 65 Mar 22 2013 logout.php
-rw-r--r--. 1 root root 38 Mar 22 2013 net-data.txt
drwxr--r--. 2 apache apache 4096 Apr 11 2013 output
-rw-r--r--. 1 root root 50734 Mar 22 2013 overlib.js
drwxr-xr-x. 2 root root 4096 Apr 11 2013 random-bits
-rw-r--r--. 1 root root 1348 Mar 25 2013 README
-rw-r--r--. 1 root root 36357 Mar 22 2013 setup.php
-rwxr-xr-x. 1 root root 8683 Apr 3 2013 weathermap
-rw-r--r--. 1 root root 149 Mar 22 2013 weathermap-cacti-plugin.css
-rwxr--r--. 1 root root 42134 Apr 3 2013 weathermap-cacti-plugin-mgmt.php
-rwxr--r--. 1 root root 26791 Apr 3 2013 weathermap-cacti-plugin.php
-rw-r--r--. 1 root root 1052 Mar 22 2013 weathermap-cacti-rebuild.php
-rw-r--r--. 1 root root 370 Mar 22 2013 weathermap.conf

Hope I may get some help here.

Thanks & Best Regards,
Andrew
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Howie wrote:Did you check the permissions are correct on the output and configs directories?
I did. I think the output folder and configs folder need ot change the ownership from apache:apache to cacti:cacti?

Did you look in the cacti.log for any weathermap errors?

Nothing from cacti.log regards to weathermap sire.
#cd log
# ls -la

total 51336
drwxrwxr-x. 2 cacti apache 4096 Oct 1 03:12 .
drwxr-xr-x. 6 root root 4096 Oct 11 03:48 ..
-rw-rw-r--. 1 cacti apache 52206476 Oct 13 16:25 cacti.log
-rw-rw-r--. 1 cacti apache 314350 Oct 1 03:12 cacti.log-20151001.gz
# more cacti.log |grep weathermap
# more cacti.log |grep WEATHERMAP
#



What does the editor say when you try to create a map? (the screenshot is a completely normal front screen)
It has no response, however, the map name I keyed into the text box goes blank.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: thumbnail for map not created yet

Post by Howie »

OK - then I think you might have more than one problem.

The first is that you didn't follow the install instructions ;-) The output directory should be owned by the cacti user: chown cacti output/ Once you have done that, the thumbnails should fill in (after 5-10 minutes)

But for the editor, the configs directory should be writable by the web server, which it already is.

So next:

check for PHP errors in the apache error_log

Also, do you have selinux enabled? You would probably need to add some SElinux policy to allow apache to write to the configs directory (or disable selinux). Check the selinux audit log (in /var/log) for lines related to 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!)
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Howie wrote:OK - then I think you might have more than one problem.

The first is that you didn't follow the install instructions ;-) The output directory should be owned by the cacti user: chown cacti output/ Once you have done that, the thumbnails should fill in (after 5-10 minutes)

I have tried to change the file ownership to cacti:cacti, after restarted httpd service, this is the screen that I got from weathermap
weathermap 5.jpg
weathermap 5.jpg (34.93 KiB) Viewed 7823 times
weathermap 6.jpg
weathermap 6.jpg (191.74 KiB) Viewed 7823 times
Is it because I have to change the map_file.conf ownership to cacti as well? Because earlier the file was created by apache user.....

Should the chown command be
#chown -R cacti:cacti output
#chown -R cacti:cacti configs
?????


But for the editor, the configs directory should be writable by the web server, which it already is.

So next:

check for PHP errors in the apache error_log

Also, do you have selinux enabled? You would probably need to add some SElinux policy to allow apache to write to the configs directory (or disable selinux). Check the selinux audit log (in /var/log) for lines related to weathermap.
Yes, after installing the OS, it comes with SELINUX automatically.
Forgot where I have referred from in the internet, I have added these 2 lines.


# chcon -R -t httpd_cache_t /usr/share/cacti/plugins/weathermap/configs
# chcon -R -t httpd_cache_t /usr/share/cacti/plugins/weathermap/output


#sestatus -v
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted

Process contexts:
Current context: unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Init context: system_u:system_r:init_t:s0
/sbin/mingetty system_u:system_r:getty_t:s0
/usr/sbin/sshd system_u:system_r:sshd_t:s0-s0:c0.c1023

File contexts:
Controlling term: unconfined_u:object_r:user_devpts_t:s0
/etc/passwd system_u:object_r:etc_t:s0
/etc/shadow system_u:object_r:shadow_t:s0
/bin/bash system_u:object_r:shell_exec_t:s0
/bin/login system_u:object_r:login_exec_t:s0
/bin/sh system_u:object_r:bin_t:s0 -> system_u:object_r:shell_exec_t:s0
/sbin/agetty system_u:object_r:getty_exec_t:s0
/sbin/init system_u:object_r:init_exec_t:s0
/sbin/mingetty system_u:object_r:getty_exec_t:s0
/usr/sbin/sshd system_u:object_r:sshd_exec_t:s0
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

# sestatus -b |grep http
allow_httpd_anon_write off
allow_httpd_mod_auth_ntlm_winbind off
allow_httpd_mod_auth_pam off
allow_httpd_sys_script_anon_write off
httpd_builtin_scripting on
httpd_can_check_spam off
httpd_can_network_connect off
httpd_can_network_connect_cobbler off
httpd_can_network_connect_db off
httpd_can_network_memcache off
httpd_can_network_relay off
httpd_can_sendmail off
httpd_dbus_avahi on
httpd_dbus_sssd off
httpd_enable_cgi on
httpd_enable_ftp_server off
httpd_enable_homedirs off
httpd_execmem off
httpd_manage_ipa off
httpd_read_user_content off
httpd_run_preupgrade off
httpd_run_stickshift off
httpd_serve_cobbler_files off
httpd_setrlimit off
httpd_ssi_exec off
httpd_tmp_exec off
httpd_tty_comm on
httpd_unified on
httpd_use_cifs off
httpd_use_fusefs off
httpd_use_gpg off
httpd_use_nfs off
httpd_use_openstack off
httpd_verify_dns off
named_bind_http_port off
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Below is the log message from var/log/httpd/error_log

# more error_log |grep weathermap

[Tue Oct 13 16:48:29 2015] [error] [client 192.168.1.21] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Kuala_Lumpur' for 'MY

[Tue Oct 13 16:48:29 2015] [error] [client 192.168.1.21] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Kuala_Lumpur' for 'MY

[Tue Oct 13 16:49:26 2015] [error] [client 192.168.1.21] PHP Deprecated: Function split() is deprecated in /usr/share/cacti/plugins/weathermap/editor.php on line 32, referer: http://192.168.1.21/cacti/plugins/weath ... plugin.php


[Tue Oct 13 16:56:16 2015] [error] [client 192.168.1.21] PHP Warning: fopen(configs/MyREN.conf): failed to open stream: Permission denied in /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line 1787, referer: http://192.168.1.21/cacti/plugins/weathermap/weathermap-cacti-plugin-mgmt.php

[Tue Oct 13 16:56:16 2015] [error] [client 192.168.1.21] PHP Warning: file_get_contents(configs/MyREN.conf): failed to open stream: Permission denied in /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line 3078, referer: http://192.168.1.21/cacti/plugins/weathermap/weathermap-cacti-plugin-mgmt.php

[Tue Oct 13 16:56:16 2015] [error] [client 192.168.1.21] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Kuala_Lumpur' for 'MYT/8.0/no DST' instead in /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line 3098, referer: http://192.168.1.21/cacti/plugins/weathermap/weathermap-cacti-plugin-mgmt.php


** Note, IP address has been appended to protect the server owner.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: thumbnail for map not created yet

Post by Howie »

You should change the configs directory permissions back - they were correct before! It was the output directory that was incorrect.

Hopefully by now you have some map thumbnails though?

And once you change the configs permissions back, the editor maybe works?
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!)
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Hi Howie, this is my current file permission setting.

# ls -la
total 432
drwxr-xr-x. 9 root root 4096 Oct 8 13:46 .
drwxr-xr-x. 14 root root 4096 Sep 28 17:47 ..
-rwxr--r--. 1 root root 12735 Apr 4 2013 cacti-pick.php
-rwxr--r--. 1 root root 35564 Apr 11 2013 CHANGES
-rw-r--r--. 1 root root 1633 Mar 22 2013 check-gdbug.php
-rw-r--r--. 1 root root 13008 Mar 26 2013 check.php
drwxr--r--. 2 apache apache 4096 Oct 14 11:51 configs
-rw-r--r--. 1 root root 18011 Mar 22 2013 COPYING
drwxr-xr-x. 7 root root 4096 Apr 11 2013 docs
-rwxr-xr-x. 1 root root 49604 Sep 28 01:24 editor.php
-rwxr-xr-x. 1 root root 49605 Sep 28 01:23 editor.php.default
drwxr-xr-x. 2 root root 4096 Apr 11 2013 editor-resources
drwxr-xr-x. 2 root root 4096 Apr 11 2013 images
-rw-r--r--. 1 root root 62 Mar 22 2013 index.php
drwxr-xr-x. 5 root root 4096 Apr 11 2013 lib
-rw-r--r--. 1 root root 65 Mar 22 2013 logout.php
-rw-r--r--. 1 root root 38 Mar 22 2013 net-data.txt
drwxr--r--. 2 cacti apache 4096 Apr 11 2013 output
-rw-r--r--. 1 root root 50734 Mar 22 2013 overlib.js
drwxr-xr-x. 2 root root 4096 Apr 11 2013 random-bits
-rw-r--r--. 1 root root 1348 Mar 25 2013 README
-rw-r--r--. 1 root root 36357 Mar 22 2013 setup.php
-rwxr-xr-x. 1 root root 8683 Apr 3 2013 weathermap
-rw-r--r--. 1 root root 149 Mar 22 2013 weathermap-cacti-plugin.css
-rwxr--r--. 1 root root 42134 Apr 3 2013 weathermap-cacti-plugin-mgmt.php
-rwxr--r--. 1 root root 26791 Apr 3 2013 weathermap-cacti-plugin.php
-rw-r--r--. 1 root root 1052 Mar 22 2013 weathermap-cacti-rebuild.php
-rw-r--r--. 1 root root 370 Mar 22 2013 weathermap.conf


# cd output
# ls -la
total 16
drwxr--r--. 2 cacti apache 4096 Apr 11 2013 .
drwxr-xr-x. 9 root root 4096 Oct 8 13:46 ..
-rwxr--r--. 1 cacti apache 33 Mar 22 2013 .htaccess
-rwxr--r--. 1 cacti apache 62 Mar 22 2013 index.php


I am able to create new map on the editor. My mistake, I have to name the file "map_name.conf" instead of "map_name". Yet, thumbnail still not created yet. Did I miss some step here while editing the map?

Whenever I click the refresh button, this is the screenshot.
weathermap1.jpg
weathermap1.jpg (111.05 KiB) Viewed 7769 times

A second later, the map auto cycle and changed to this.
weathermap2.jpg
weathermap2.jpg (85.78 KiB) Viewed 7769 times
Did I miss any step whenever I am editing a map? How can I save a thumbnail after finish editing it?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests