Weathermap permnissions

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Author
Message
Palermo
Cacti User
Posts: 87
Joined: Thu Sep 11, 2008 11:48 pm

#16 Post by Palermo » Fri Aug 14, 2009 6:10 am

Ok

There is no PHP change done since the installation.
I also installed a fresh clean install of weathermap.
If i enable the simple.conf map for testing. it still does not work. May be it is not a weathermap problem. But i have no clu where to look.

This is the result of the check.php looks good is gues

Code: Select all

----------------------------------------------------
Weathermap Pre-Install Checker

This script checks for some common problems with your PHP and server
environment that may stop Weathermap or the Editor from working.

NOTE: You should run this script as both a web page AND from the
command-line, as the environment can be different in each.

This is the PHP version that is responsible for 
* creating maps from the Cacti poller
* the command-line weathermap tool

PHP Basics
----------
This is PHP Version 5.2.9 running on "Linux CactiNEXTGEN
2.6.27.24-170.2.68.fc10.i686.PAE #1 SMP Wed May 20 22:58:30 EDT 2009 i686"
with a memory_limit of '512M'. 

The php.ini file was /etc
The following additional ini files were read: /etc/php.d/dbase.ini,
/etc/php.d/gd.ini,
/etc/php.d/json.ini,
/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/snmp.ini,
/etc/php.d/zip.ini


PHP Functions
-------------
Some parts of Weathermap need special support in your PHP
installation to work.

This PHP uses the 'bundled' GD library, which doesn't have alpha-blending
bugs. That's good!

The Console_Getopt PEAR module is not available. The CLI weathermap tool
will not run without it (that may not be a problem, if you only intend to
use Cacti).

            imagepng   YES                                                     
imagecreatetruecolor   YES                                                     
  imagealphablending   YES                                                     
      imageSaveAlpha   YES                                                     
          preg_match   YES                                                     
  imagecreatefrompng   YES                                                     
 imagecreatefromjpeg   YES                                                     
  imagecreatefromgif   YES                                                     
           imagejpeg   YES                                                     
            imagegif   YES                                                     
         imagefilter   YES                                                     
  imagecopyresampled   YES                                                     
        imagettfbbox   YES                                                     
    memory_get_usage   YES                                                     

If these functions are not found, you may need to
 * check that the 'extension=' line for that extension is uncommented in
   your php.ini file (then restart your webserver), or
 * install the extension, if it isn't installed already

The details of how this is done will depend on your operating system, and
on where you installed (or compiled) your PHP from originally. Usually, you
would install an RPM, or other package on Linux systems, a port on *BSD, or
a DLL on Windows. If you build PHP from source, you need to add extra
options to the './configure' line. Consult your PHP documention for more
information.

---------------------------------------------------------------------
Some features of Weathermap will not be available to you, due to lack of
support in your PHP installation. You can still proceed with Weathermap
though.
thx for helping.

Palermo
Cacti User
Posts: 87
Joined: Thu Sep 11, 2008 11:48 pm

#17 Post by Palermo » Mon Aug 17, 2009 1:29 am

Hi Howie

I`f dedicated this weekend for testing trying shouting yelling and much more :D
And in think i`m a step closer to the solution. :)

I ended op to delete the whole weatermap folder and rebooted the server. I`f installed a older version of weathermap (0.96) enabled the simple.conf and waited... in the log there was no error message.
If cop yd 1 small environment to the weathermap. with all the appropriate images. still no error in the log file. in the output directory i see that weathermap creates 6 files

Code: Select all

[[email protected] output]# ls -ltr
total 304
-rw-rw-r-- 1 cacti apache     62 2008-03-19 21:37 index.php
-rw-rw-r-- 1 cacti apache      0 2008-03-19 21:37 dummy-file.delete-me
-rw-r--r-- 1 cacti cacti   22064 2009-08-17 08:15 7efec6a420900d4a5bd2.png
-rw-rw-r-- 1 cacti apache  19042 2009-08-17 08:15 d2e04c0f315b1fe4e057.thumb.png
-rw-rw-r-- 1 cacti apache 233013 2009-08-17 08:15 d2e04c0f315b1fe4e057.png
-rw-rw-r-- 1 cacti apache   2240 2009-08-17 08:15 d2e04c0f315b1fe4e057.html
-rw-r--r-- 1 cacti cacti   16023 2009-08-17 08:15 7efec6a420900d4a5bd2.thumb.png
-rw-r--r-- 1 cacti cacti    3123 2009-08-17 08:15 7efec6a420900d4a5bd2.html
[[email protected] output]#
2 PNG files and 2 thumbnail files and 2 HTML files.
The files are updated every 5 minutes
I would say this is a good thing right?????

The only thing i don't understand is wy i don't see the thumbnails in the tab weathermap. (see picture)
Wy is it not showing the pictures.

i hope that we could clarify this.. again thx in advanced
Attachments
Weathermap.PNG
(thumbnail for map not created yet)
Weathermap.PNG (17.44 KiB) Viewed 8227 times

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

#18 Post by Howie » Mon Aug 17, 2009 3:36 am

Palermo wrote:
2 PNG files and 2 thumbnail files and 2 HTML files.
The files are updated every 5 minutes
I would say this is a good thing right?????

The only thing i don't understand is wy i don't see the thumbnails in the tab weathermap. (see picture)
Wy is it not showing the pictures.
Yes - that's looking better. I would try now to overwrite the weathermap directory with 0.96a though (don't uninstall, just unpack it over the top), because there are a lot of bugfixes in that 'a'.

I don't see why the thumbnails don't appear, unless the output directory is not readable by apache.
Weathermap 0.98 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!)

Palermo
Cacti User
Posts: 87
Joined: Thu Sep 11, 2008 11:48 pm

#19 Post by Palermo » Mon Aug 17, 2009 10:43 am

Howie wrote:I don't see why the thumbnails don't appear, unless the output directory is not readable by apache.
Befor i copy the newer version of Weathermap over the old one.

The permissions of the output directory is

Code: Select all

drwxrwxr-x 2 cacti  apache   4096 2009-08-17 17:35 output
And the files in the output directory are set to

Code: Select all

-rw-rw-r-- 1 cacti apache     62 2008-03-19 21:37 index.php
-rw-rw-r-- 1 cacti apache      0 2008-03-19 21:37 dummy-file.delete-me
-rw-r--r-- 1 cacti cacti   15969 2009-08-17 17:40 7efec6a420900d4a5bd2.thumb.png
-rw-r--r-- 1 cacti cacti   22063 2009-08-17 17:40 7efec6a420900d4a5bd2.png
-rw-r--r-- 1 cacti cacti    3123 2009-08-17 17:40 7efec6a420900d4a5bd2.html
-rw-rw-r-- 1 cacti apache  19049 2009-08-17 17:40 d2e04c0f315b1fe4e057.thumb.png
-rw-rw-r-- 1 cacti apache 233004 2009-08-17 17:40 d2e04c0f315b1fe4e057.png
-rw-rw-r-- 1 cacti apache   2240 2009-08-17 17:40 d2e04c0f315b1fe4e057.html

is this correct so?

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

#20 Post by Howie » Mon Aug 17, 2009 2:37 pm

Palermo wrote:
is this correct so?
Yes that looks fine. So I really don't know why you would not see the thumbnails in the weathermap page.

Let's see what filename it's looking for. If you look at weathermap-cacti-plugin.php, around line 400, there's the part that says

Code: Select all

print "(thumbnail for map not created yet)";
Change that to

Code: Select all

print "(thumbnail $thumbfile for map not created yet)";
and you'll get the full filenames in the weathermap page. Do they look right?
Weathermap 0.98 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!)

Palermo
Cacti User
Posts: 87
Joined: Thu Sep 11, 2008 11:48 pm

#21 Post by Palermo » Tue Aug 18, 2009 5:00 am

I'f changed the rule as you ask.

This is the result of what i see in the Weathermap tab.

Code: Select all

(thumbnail /usr/share/cacti/plugins/weathermap/output/7efec6a420900d4a5bd2.thumb. for map not created yet)
(thumbnail /usr/share/cacti/plugins/weathermap/output/d2e04c0f315b1fe4e057.thumb. for map not created yet)
They refer to the correct files. So that is really strange.

Code: Select all

-rw-rw-r-- 1 cacti apache  19045 2009-08-18 11:55 d2e04c0f315b1fe4e057.thumb.png
-rw-r--r-- 1 cacti cacti   15992 2009-08-18 11:55 7efec6a420900d4a5bd2.thumb.png

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

#22 Post by Howie » Tue Aug 18, 2009 5:23 am

No they don't. They don't have any png extension on the end.

Could you go into the Cacti Settings..Misc page, and make sure 'png' is selected as the format, and press save (even if it is)?

It would also be worth checking that if you change it to (say) JPEG, that the change 'sticks' and doesn't just default back to PNG again. I think perhaps a line might be missing from the setttings table, but that will test it.
Weathermap 0.98 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!)

Palermo
Cacti User
Posts: 87
Joined: Thu Sep 11, 2008 11:48 pm

#23 Post by Palermo » Wed Aug 19, 2009 4:57 am

Sure..
Howie wrote:Could you go into the Cacti Settings..Misc page, and make sure 'png' is selected as the format, and press save (even if it is)?
Unbelievable it works.. That is strange...

now i'm gonna copy the new version over the old one..

Palermo
Cacti User
Posts: 87
Joined: Thu Sep 11, 2008 11:48 pm

#24 Post by Palermo » Thu Aug 20, 2009 6:03 am

I'f copyd the 96a over the existing directory.

All seems to bee working.

Howie thx for the support.

i`m learning all the time :-)

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

#25 Post by Howie » Thu Aug 20, 2009 6:11 am

Palermo wrote:I'f copyd the 96a over the existing directory.

All seems to bee working.

Howie thx for the support.

i`m learning all the time :-)
Me too. I've never seen that failure before! :-)
Weathermap 0.98 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!)

bartc
Posts: 17
Joined: Wed Aug 20, 2014 11:06 am

Re: Weathermap permnissions

#26 Post by bartc » Wed Aug 20, 2014 1:53 pm

Few years later , same issue , no thumbnails or pictures generated. All configs in place. SELinux disabled, permissions set to 777 for configs and output folder. When running weathermap from command line this is what I get :

PHP 5.3.3 (cli) (built: Dec 5 2013 07:09:40)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[[email protected] weathermap]# ./weathermap --config configs/TESTMAP --output output/ --debug
DEBUG: [@weathermap:191] ------------------------------------
DEBUG: [@weathermap:192] Starting PHP-Weathermap run, with config: configs/TESTMAP
DEBUG: [@weathermap:193] ------------------------------------
DEBUG: [[email protected]:326] Creating ':: DEFAULT ::' DEFAULT LINK
DEBUG: [[email protected]:119] Resetting :: DEFAULT :: with :: DEFAULT ::
DEBUG: [[email protected]:335] Creating ':: DEFAULT ::' DEFAULT NODE
DEBUG: [[email protected]:707] Resetting :: DEFAULT :: with :: DEFAULT ::
DEBUG: [[email protected]:353] Creating actual DEFAULT NODE from :: DEFAULT ::
DEBUG: [[email protected]:707] Resetting DEFAULT with :: DEFAULT ::
DEBUG: [[email protected]:731] Initialising NODE DEFAULT from :: DEFAULT ::
DEBUG: [[email protected]:361] Creating actual DEFAULT LINK from :: DEFAULT ::
DEBUG: [[email protected]:119] Resetting DEFAULT with :: DEFAULT ::
DEBUG: [[email protected]:145] Initialising LINK DEFAULT from :: DEFAULT ::
DEBUG: [[email protected]:386] Adding default map colour set.
DEBUG: [[email protected]:667] Beginning to load data plugins from lib/datasources
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_rrd.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_rrd from WeatherMapDataSource_rrd.php
DEBUG: [LoadP[email protected]:710] Instantiated WeatherMapDataSource_rrd.
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_fping.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_fping from WeatherMapDataSource_fping.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_fping.
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_cactihost.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_cactihost from WeatherMapDataSource_cactihost.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_cactihost.
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_dsstats.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_dsstats from WeatherMapDataSource_dsstats.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_dsstats.
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_snmp.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_snmp from WeatherMapDataSource_snmp.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_snmp.
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_tabfile.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_tabfile from WeatherMapDataSource_tabfile.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_tabfile.
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_time.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_time from WeatherMapDataSource_time.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_time.
DEBUG: [[email protected]:715] Skipping README.txt
DEBUG: [[email protected]:715] Skipping ..
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_static.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_static from WeatherMapDataSource_static.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_static.
DEBUG: [[email protected]:715] Skipping WeatherMapDataSource_skeleton.php.txt
DEBUG: [[email protected]rmap.class.php:690] Loading data Plugin class from WeatherMapDataSource_external.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_external from WeatherMapDataSource_external.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_external.
DEBUG: [[email protected]:715] Skipping .
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_mrtg.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_mrtg from WeatherMapDataSource_mrtg.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_mrtg.
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_cactithold.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_cactithold from WeatherMapDataSource_cactithold.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_cactithold.
DEBUG: [[email protected]:690] Loading data Plugin class from WeatherMapDataSource_dbsample.php
DEBUG: [[email protected]:702] Loaded data Plugin class WeatherMapDataSource_dbsample from WeatherMapDataSource_dbsample.php
DEBUG: [[email protected]:710] Instantiated WeatherMapDataSource_dbsample.
DEBUG: [[email protected]:667] Beginning to load pre plugins from lib/pre
DEBUG: [[email protected]:715] Skipping ..
DEBUG: [[email protected]:715] Skipping .
DEBUG: [[email protected]:690] Loading pre Plugin class from WeatherMapPreProcessorTest.php
DEBUG: [[email protected]:702] Loaded pre Plugin class WeatherMapPreProcessorTest from WeatherMapPreProcessorTest.php
DEBUG: [[email protected]:710] Instantiated WeatherMapPreProcessorTest.
DEBUG: [[email protected]:667] Beginning to load post plugins from lib/post
DEBUG: [[email protected]:715] Skipping ..
DEBUG: [[email protected]:690] Loading post Plugin class from WeatherMapPostProcessorTest.php
DEBUG: [[email protected]:702] Loaded post Plugin class WeatherMapPostProcessorTest from WeatherMapPostProcessorTest.php
DEBUG: [[email protected]:710] Instantiated WeatherMapPostProcessorTest.
DEBUG: [[email protected]:715] Skipping .
DEBUG: [[email protected]:417] WeatherMap class Reset() complete
DEBUG: [[email protected]:2085] configs/TESTMAP: ReadConfig Detected that this is a config filename.
DEBUG: [[email protected]:126] configs/TESTMAP: Adding hint key_hidezero_DEFAULT='1' to MAP
DEBUG: [[email protected]:2219] configs/TESTMAP: Loaded NODE DEFAULT
DEBUG: [[email protected]:3114] configs/TESTMAP: Saving Node: DEFAULT
DEBUG: [[email protected]:2184] configs/TESTMAP: Loaded LINK DEFAULT
DEBUG: [[email protected]:3128] configs/TESTMAP: Saving Template-Only Link: DEFAULT
DEBUG: [[email protected]:707] configs/TESTMAP: Resetting node05076 with DEFAULT
DEBUG: [[email protected]:731] configs/TESTMAP: Initialising NODE node05076 from DEFAULT
DEBUG: [[email protected]:3114] configs/TESTMAP: Saving Node: node05076
DEBUG: [[email protected]:2929] configs/TESTMAP: ReadConfig has finished reading the config (51 lines)
DEBUG: [[email protected]:2930] configs/TESTMAP: ------------------------------------------
DEBUG: [[email protected]:2958] configs/TESTMAP: Already have 9 scales, no defaults added.
DEBUG: [[email protected]:2968] configs/TESTMAP: Building cache of z-layers and finalising bandwidth.
DEBUG: [[email protected]:3011] configs/TESTMAP: Setting bandwidth on NODE :: DEFAULT :: (100 -> 100 bps, 100 -> 100 bps, KILO = 1000)
DEBUG: [[email protected]:3011] configs/TESTMAP: Setting bandwidth on NODE DEFAULT (100 -> 100 bps, 100 -> 100 bps, KILO = 1000)
DEBUG: [[email protected]:3011] configs/TESTMAP: Setting bandwidth on NODE node05076 (100 -> 100 bps, 100 -> 100 bps, KILO = 1000)
DEBUG: [[email protected]:3011] configs/TESTMAP: Setting bandwidth on LINK :: DEFAULT :: (100M -> 100000000 bps, 100M -> 100000000 bps, KILO = 1000)
DEBUG: [[email protected]:3011] configs/TESTMAP: Setting bandwidth on LINK DEFAULT (100M -> 100000000 bps, 100M -> 100000000 bps, KILO = 1000)
DEBUG: [[email protected]:3014] configs/TESTMAP: Found 4 z-layers including builtins (0,100).
DEBUG: [[email protected]:3019] configs/TESTMAP: Resolving relative positions for NODEs...
DEBUG: [[email protected]:3081] configs/TESTMAP: Relative Positions Cycle 100 - set 0 and Skipped 0 for unresolved dependencies
DEBUG: [[email protected]:3090] configs/TESTMAP: -----------------------------------
DEBUG: [[email protected]:3093] configs/TESTMAP: Running Pre-Processing Plugins...
DEBUG: [[email protected]:3096] configs/TESTMAP: Running WeatherMapPreProcessorTest->run()
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note test='TEST!' to MAP
DEBUG: [[email protected]:10] configs/TESTMAP: Test Preprocessor in the hizouse
DEBUG: [[email protected]:3099] configs/TESTMAP: Finished Pre-Processing Plugins...
DEBUG: [[email protected]:126] configs/TESTMAP: Adding hint debugging='1' to MAP
DEBUG: [[email protected]:727] configs/TESTMAP: Running Init() for Data Source Plugins...
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_rrd->Init()
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_fping->Init()
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_cactihost->Init()
DEBUG: [[email protected]_cactihost.php:20] configs/TESTMAP: ReadData CactiHost: Can only run from Cacti environment.
DEBUG: [[email protected]:740] configs/TESTMAP: Removing WeatherMapDataSource_cactihost from Data Source list, since Init() failed
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_dsstats->Init()
DEBUG: [[email protected]:740] configs/TESTMAP: Removing WeatherMapDataSource_dsstats from Data Source list, since Init() failed
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_snmp->Init()
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_tabfile->Init()
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_time->Init()
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_static->Init()
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_external->Init()
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_mrtg->Init()
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_cactithold->Init()
DEBUG: [[email protected]_cactithold.php:74] configs/TESTMAP: ReadData CactiTHold: Can only run from Cacti environment. [THOLD004]
DEBUG: [[email protected]:740] configs/TESTMAP: Removing WeatherMapDataSource_cactithold from Data Source list, since Init() failed
DEBUG: [[email protected]:732] configs/TESTMAP: Running WeatherMapDataSource_dbsample->Init()
DEBUG: [[email protected]:745] configs/TESTMAP: Finished Initialising Plugins...
DEBUG: [[email protected]:854] configs/TESTMAP: ======================================
DEBUG: [R[email protected]:855] configs/TESTMAP: ReadData: Updating link data for all links and nodes
DEBUG: [[email protected]:750] configs/TESTMAP: Preprocessing targets
DEBUG: [[email protected]:755] configs/TESTMAP: Preprocessing targets
DEBUG: [[email protected]:862] configs/TESTMAP: ======================================
DEBUG: [[email protected]:863] configs/TESTMAP: Starting prefetch
DEBUG: [[email protected]:869] configs/TESTMAP: ======================================
DEBUG: [[email protected]:870] configs/TESTMAP: Starting main collection loop
DEBUG: [[email protected]:891] configs/TESTMAP:
DEBUG: [[email protected]:892] configs/TESTMAP: ReadData for LINK :: DEFAULT :::
DEBUG: [[email protected]:973] configs/TESTMAP: ReadData: Skipping LINK :: DEFAULT :: that looks like a template
.DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC :: DEFAULT :: DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC :: DEFAULT :: DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalekey='0_0' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalekey='0_0' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscaletag='' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscaletag='' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalecolor='#c0c0c0' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalecolor='#c0c0c0' to :: DEFAULT ::
DEBUG: [[email protected]:1031] configs/TESTMAP: ReadData: Setting 0,0
DEBUG: [[email protected]:891] configs/TESTMAP:
DEBUG: [[email protected]:892] configs/TESTMAP: ReadData for LINK DEFAULT:
DEBUG: [[email protected]:973] configs/TESTMAP: ReadData: Skipping LINK DEFAULT that looks like a template
.DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC DEFAULT DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC DEFAULT DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalekey='0_0' to DEFAULT
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalekey='0_0' to DEFAULT
DEBUG: [a[email protected]:106] configs/TESTMAP: Adding note inscaletag='' to DEFAULT
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscaletag='' to DEFAULT
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalecolor='#c0c0c0' to DEFAULT
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalecolor='#c0c0c0' to DEFAULT
DEBUG: [[email protected]:1031] configs/TESTMAP: ReadData: Setting 0,0
DEBUG: [[email protected]:891] configs/TESTMAP:
DEBUG: [[email protected]:892] configs/TESTMAP: ReadData for NODE :: DEFAULT :::
DEBUG: [[email protected]:973] configs/TESTMAP: ReadData: Skipping NODE :: DEFAULT :: that looks like a template
.DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC :: DEFAULT :: DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC :: DEFAULT :: DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalekey='0_0' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalekey='0_0' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscaletag='' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscaletag='' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalecolor='#c0c0c0' to :: DEFAULT ::
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalecolor='#c0c0c0' to :: DEFAULT ::
DEBUG: [[email protected]:1031] configs/TESTMAP: ReadData: Setting 0,0
DEBUG: [[email protected]:891] configs/TESTMAP:
DEBUG: [[email protected]:892] configs/TESTMAP: ReadData for NODE DEFAULT:
DEBUG: [[email protected]:973] configs/TESTMAP: ReadData: Skipping NODE DEFAULT that looks like a template
.DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC DEFAULT DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC DEFAULT DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalekey='0_0' to DEFAULT
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalekey='0_0' to DEFAULT
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscaletag='' to DEFAULT
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscaletag='' to DEFAULT
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalecolor='#c0c0c0' to DEFAULT
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalecolor='#c0c0c0' to DEFAULT
DEBUG: [[email protected]:1031] configs/TESTMAP: ReadData: Setting 0,0
DEBUG: [[email protected]:891] configs/TESTMAP:
DEBUG: [[email protected]:892] configs/TESTMAP: ReadData for NODE node05076:
DEBUG: [[email protected]:968] configs/TESTMAP: ReadData: No targets for NODE node05076
DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC node05076 DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:1256] configs/TESTMAP: NCFPC node05076 DEFAULT 0 '' 0_0 192 192 192
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalekey='0_0' to node05076
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalekey='0_0' to node05076
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscaletag='' to node05076
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscaletag='' to node05076
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note inscalecolor='#c0c0c0' to node05076
DEBUG: [[email protected]:106] configs/TESTMAP: Adding note outscalecolor='#c0c0c0' to node05076
DEBUG: [[email protected]:1031] configs/TESTMAP: ReadData: Setting 0,0
DEBUG: [[email protected]:1035] configs/TESTMAP: ReadData Completed.
DEBUG: [[email protected]:1036] configs/TESTMAP: ------------------------------
DEBUG: [[email protected]:3375] configs/TESTMAP: Trace: DrawMap()
DEBUG: [[email protected]:3387] configs/TESTMAP: Running Post-Processing Plugins...
DEBUG: [[email protected]:3390] configs/TESTMAP: Running WeatherMapPostProcessorTest->run()
DEBUG: [[email protected]:26] configs/TESTMAP: WeatherMapPostProcessorTest Not Enabled
DEBUG: [[email protected]:3395] configs/TESTMAP: Finished Post-Processing Plugins...
DEBUG: [[email protected]:3397] configs/TESTMAP: =====================================
DEBUG: [[email protected]:3398] configs/TESTMAP: Start of Map Drawing
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 'America/New_York' for 'EDT/-4.0/DST' instead in /var/www/cacti/plugins/weathermap/Weathermap.class.php on line 3400
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 KEYTEXT (0,0,0)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 KEYOUTLINE (0,0,0)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 KEYBG (255,255,255)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 BG (255,255,255)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 TITLE (0,0,0)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 TIME (0,0,0)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 0_0 (192,192,192)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 0_1 (255,255,255)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 1_10 (140,0,255)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 10_25 (32,32,255)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 25_40 (0,192,255)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 40_55 (0,240,0)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 55_70 (240,240,0)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 70_85 (255,192,0)
DEBUG: [[email protected]:3366] configs/TESTMAP: AllocateScaleColours: DEFAULT/gdref1 85_100 (255,0,0)
DEBUG: [[email protected]:3461] configs/TESTMAP: Pre-rendering :: DEFAULT :: to get bounding boxes.
DEBUG: [[email protected]:3461] configs/TESTMAP: Pre-rendering DEFAULT to get bounding boxes.
DEBUG: [[email protected]:3461] configs/TESTMAP: Pre-rendering node05076 to get bounding boxes.
DEBUG: [[email protected]:249] configs/TESTMAP: Node->pre_render: node05076 Label Metrics are: 28 x 13 -> 32 x 17
DEBUG: [[email protected]:455] configs/TESTMAP: If this is the last thing in your logs, you probably have a buggy GD library. Get > 2.0.33 or use PHP builtin.
DEBUG: [[email protected]:3471] configs/TESTMAP: Drawing layer 0
DEBUG: [[email protected]:3471] configs/TESTMAP: Drawing layer 300
DEBUG: [[email protected]:3471] configs/TESTMAP: Drawing layer 600
DEBUG: [[email protected]:3521] configs/TESTMAP: Drawing NODE node05076
DEBUG: [[email protected]:3529] configs/TESTMAP: Adding imagemap areaDEBUG: [[email protected]:3529] configs/TESTMAP: Adding imagemap areaDEBUG: [[email protected]:3532] configs/TESTMAP: Added 2 bounding boxes too
DEBUG: [[email protected]:3471] configs/TESTMAP: Drawing layer 1000
DEBUG: [[email protected]:3477] configs/TESTMAP: Drawing KEY for DEFAULT if necessary.
WARNING: configs/TESTMAP: Failed to write map image. No function existed for the image format you requested. [WMWARN12]
DEBUG: [@weathermap:254] configs/TESTMAP: Writing HTML to TESTMAP
DEBUG: [[email protected]:3924] configs/TESTMAP: Trace: MakeHTML()
DEBUG: [[email protected]:3702] configs/TESTMAP: Trace: PreloadMapHTML()
DEBUG: [[email protected]:3970] configs/TESTMAP: Starting to dump imagemap in reverse Z-order...
DEBUG: [[email protected]:3975] configs/TESTMAP: Writing HTML for layer 1000
DEBUG: [[email protected]:3979] configs/TESTMAP: Found things for layer 1000
DEBUG: [[email protected]:3983] configs/TESTMAP: Builtins fit here.
DEBUG: [[email protected]:3975] configs/TESTMAP: Writing HTML for layer 600
DEBUG: [[email protected]:3979] configs/TESTMAP: Found things for layer 600
DEBUG: [[email protected]:3997] configs/TESTMAP: Writing NODE:N104: from imagemap
DEBUG: [[email protected]:3975] configs/TESTMAP: Writing HTML for layer 300
DEBUG: [[email protected]:3979] configs/TESTMAP: Found things for layer 300
DEBUG: [[email protected]:3975] configs/TESTMAP: Writing HTML for layer 0
DEBUG: [[email protected]:3979] configs/TESTMAP: Found things for layer 0


and nothing is generated in output folder :( I have checked support for my gd library , it has JPEG SUPPORT , PNG SUPPORT, GIF READ SUPPORT and GIF CREATE SUPPORT.

No idea what else shall I look for ...

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

Re: Weathermap permnissions

#27 Post by Howie » Wed Aug 20, 2014 4:03 pm

--output output/

There should be a filename there too!

So it's looking at the file extension to figure out what kind of file to write, and there isn't one, or a filename, so... it must be lack of support in PHP.

This is not a great error message - I'll improve that.
Weathermap 0.98 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!)

bartc
Posts: 17
Joined: Wed Aug 20, 2014 11:06 am

Re: Weathermap permnissions

#28 Post by bartc » Thu Aug 21, 2014 9:35 am

Thank you for help.

I have changed it to /output/TESTMAP.png and added --htmloutput output/TESTMAP.html (Initially I thought filenames will be the ones that we define in config file). Now both files are there, still no TESTMAP.thumb.png file. In GUI there are still no thumbnails or maps since it looks for alphanumeric strings filenames (50a89c059ddfeb77c505.*) and not TESTMAP.* files. Additionally I have discovered that there are no logs in cacti.log about "weathermap" even after enabling debug. So now tu sum up:

1. Poller does not automatically run weathermap script (my version of cacti is 0.8.8b and weathermap 0.91a, I had also tested with 0.98c)

2. Even when running weathermap manually , no thumbnails are generated and filenames will not match files that GUI is looking for.

:(

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

Re: Weathermap permnissions

#29 Post by Howie » Thu Aug 21, 2014 11:15 am

The gui doesn't know anything about your manual command-line runs. It only looks in the Cacti database for information about which configurations to run.

It runs as part of the cacti poller to generate maps. It decides which maps to generate from the Manage..Weathermaps menu in Cacti. You need to choose Add in there and pick your config file (which must be in the configs/ directory). THEN everything should work as you expect.

Weathermap 0.91a is *incredibly* old. (actually, there isn't a 0.91a according to the website, just 0.91 and 0.92 - both 7 years ago)
Weathermap 0.98 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!)

bartc
Posts: 17
Joined: Wed Aug 20, 2014 11:06 am

Re: Weathermap permnissions

#30 Post by bartc » Thu Aug 21, 2014 12:19 pm

I meant 0.98 , 0.91 was typeo , I had all the maps already added , I am the one of very few that actually reads manuals before asking questions ;)

Do you have any other ideas what could it be? according to me poller fails to generate maps since there are no logs in cacti.log about weathermap. Does poller reach out to weathermap script from weathermap directory while generating maps ?

Trying to understand how does poller interact so I can find the issue.

Post Reply