thumbnail for map not created yet

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

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 »

And there are still NO entries in the cacti.log for 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 »

Hi Howie,

Sorry I wasn't around yesterday. There is no Weathermap related errors in cacti.log, mostly are SNMP related.
Non significant weathermap error, but lots of PHP error in httpd/error_log.

I have attached the cacti.log, httpd/access_log, httpd/error_log.

I will try to download a sample map from the internet and put it into my weathermap and test my luck.

Thanks & Best Regards,
Andrew
Attachments
cacti.zip
(1.03 MiB) Downloaded 109 times
error_log.zip
(40.28 KiB) Downloaded 94 times
access_log.txt
(182.12 KiB) Downloaded 147 times
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Hi Howie,

Recheck. Refer to the diagram below, is the permission and file ownership correct?
/usr/share/cacti/plugins/weathermap/configs ---
/usr/share/cacti/plugins/weathermap/output ---
weathermap3.jpg
weathermap3.jpg (151.99 KiB) Viewed 3110 times
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Hi Howie,

Say I followed a guide from internet, and executed below commands...

[root@MyCacti /]# cd /usr/share/cacti/plugins/weathermap/
[root@MyCacti weathermap]# ./weathermap --config configs/example.conf --output=example.png --htmloutput example.html

PHP Warning: fopen(configs/example.conf): failed to open stream: No such file or directory in /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line 1787

PHP Warning: file_get_contents(configs/example.conf): failed to open stream: No such file or directory in /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line 3078

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
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 »

No idea about the permissions - you didn't post the permissions for the directories, only the files in them. You need 'ls -ld'

The other errors - do those files actually exist? Do you have an example.conf in your configs directory? I don't see one in your screenshot.
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 folder permission is as follows:-

drwxr--r--. 2 apache apache 4096 Oct 14 11:51 configs
drwxr--r--. 2 cacti apache 4096 Apr 11 2013 output

I do not have example.conf in my configs directory. I though the command creates a new map. My bad.

I will change the example.conf to some existing map and let you know. Thanks!
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

OK I have corrected my command. I am choosing an existing config file now.
MyREN.html and MyREN.png files added in the weathermap directory.

Below is my screenshot. Anything wrong here? I am still facing the issue thumbnail not created even after this.
Untitleda.jpg
Untitleda.jpg (236.56 KiB) Viewed 3102 times
Untitledb.jpg
Untitledb.jpg (311.84 KiB) Viewed 3102 times
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Last resort, I will access to server owner's serve room and disable the selinux. Will update you again.
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 actually have errors in the selinux audit log? I don't think that would affect the map creation, only the editing.

But if you don't see ANY lines in the cacti.log for weathermap, then something else in the cacti database is not right. There should always be a "WEATHERMAP Starting" and "WEATHERMAP STATS" line.
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,

Appreciate if you have an diagnostics steps to share on how to check if the cacti database is workable for weathermap?
Really appreciate your on going support.
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Hi Howie, I have copied the database query as follows after referring to other posts similar to thumbnail not created.

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| cacti |
| test |
+--------------------+
3 rows in set (0.00 sec)

MySQL>use cacti;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+--------------------------------+
| Tables_in_cacti |
+--------------------------------+
| cdef |
| cdef_items |
| colors |
| data_input |
| data_input_data |
| data_input_fields |
| data_local |
| data_template |
| data_template_data |
| data_template_data_rra |
| data_template_rrd |
| graph_local |
| graph_template_input |
| graph_template_input_defs |
| graph_templates |
| graph_templates_gprint |
| graph_templates_graph |
| graph_templates_item |
| graph_tree |
| graph_tree_items |
| host |
| host_graph |
| host_snmp_cache |
| host_snmp_query |
| host_template |
| host_template_graph |
| host_template_snmp_query |
| plugin_config |
| plugin_db_changes |
| plugin_discover_hosts |
| plugin_discover_template |
| plugin_hmib_hrDevices |
| plugin_hmib_hrProcessor |
| plugin_hmib_hrSWInstalled |
| plugin_hmib_hrSWRun |
| plugin_hmib_hrSWRun_ignore |
| plugin_hmib_hrSWRun_last_seen |
| plugin_hmib_hrStorage |
| plugin_hmib_hrSystem |
| plugin_hmib_hrSystemTypes |
| plugin_hmib_processes |
| plugin_hmib_types |
| plugin_hooks |
| plugin_nectar |
| plugin_nectar_items |
| plugin_nmidWeb2_sort_order |
| plugin_notification_lists |
| plugin_realms |
| plugin_thold_contacts |
| plugin_thold_host_failed |
| plugin_thold_log |
| plugin_thold_template_contact |
| plugin_thold_threshold_contact |
| poller |
| poller_command |
| poller_item |
| poller_output |
| poller_output_rt |
| poller_reindex |
| poller_time |
| rra |
| rra_cf |
| settings |
| settings_graphs |
| settings_tree |
| snmp_query |
| snmp_query_graph |
| snmp_query_graph_rrd |
| snmp_query_graph_rrd_sv |
| snmp_query_graph_sv |
| syslog |
| syslog_alert |
| syslog_facilities |
| syslog_host_facilities |
| syslog_hosts |
| syslog_incoming |
| syslog_logs |
| syslog_priorities |
| syslog_remove |
| syslog_removed |
| syslog_reports |
| syslog_statistics |
| thold_data |
| thold_template |
| user_auth |
| user_auth_perms |
| user_auth_realm |
| user_log |
| version |
| weathermap_auth |
| weathermap_data |
| weathermap_groups |
| weathermap_maps |
| weathermap_settings |
+--------------------------------+
94 rows in set (0.00 sec)

MySQL> select * from weathermap_auth
-> ;
+--------+-------+
| userid | mapid |
+--------+-------+
| 1 | 2 |
| 1 | 8 |
+--------+-------+
2 rows in set (0.00 sec)

MySQL> select * from weathermap_maps;
+----+-----------+----------+--------+--------------+-----------+----------+------------------+----------------------+-----------+--------+-------------+--------------+----------+-----------+
| id | sortorder | group_id | active | configfile | imagefile | htmlfile | titlecache | filehash | warncount | config | thumb_width | thumb_height | schedule | archiving |
+----+-----------+----------+--------+--------------+-----------+----------+------------------+----------------------+-----------+--------+-------------+--------------+----------+-----------+
| 2 | 2 | 1 | on | simple.conf | | | MyREN | eac00e314187b1b6540d | 0 | | 0 | 0 | * | off |
| 8 | 1 | 1 | on | example.conf | | | Network Overview | 4a773d09ff3b9fcb4c0d | 0 | | 0 | 0 | * | off |
+----+-----------+----------+--------+--------------+-----------+----------+------------------+----------------------+-----------+--------+-------------+--------------+----------+-----------+
2 rows in set (0.00 sec)

mysql>
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

recheck my cacti.log,

I got weathermap errors such"

10/17/2015 04:00:05 PM - WEATHERMAP: Poller[0] Weathermap 0.97c starting - Normal logging mode. Turn on DEBUG in Cacti for more information

10/17/2015 04:00:05 PM - WEATHERMAP: Poller[0] WARNING: [Map 8] example.conf: Mapfile /usr/share/cacti/plugins/weathermap/configs/example.conf is not readable or doesn't exist [WMPOLL04]

10/17/2015 04:00:05 PM - WEATHERMAP: Poller[0] WARNING: [Map 2] simple.conf: Mapfile /usr/share/cacti/plugins/weathermap/configs/simple.conf is not readable or doesn't exist [WMPOLL04]

10/17/2015 04:00:05 PM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97c run complete - Sat, 17 Oct 15 16:00:05 +0800: 0 maps were run in 0 seconds with 2 warnings.

"
andrewtee2001
Posts: 17
Joined: Tue Oct 13, 2015 1:53 am

Re: thumbnail for map not created yet

Post by andrewtee2001 »

Dear Howie,

I dunno what I did. I left it there for a day and the thumbnail appeared. Thanks for your guide in troubleshooting!!!! I got it!!!
Weathermap.jpg
Weathermap.jpg (240.92 KiB) Viewed 2716 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests