cacti plugins weathermap This map hasn't been created yet.

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

wd
Posts: 9
Joined: Fri May 12, 2006 8:35 pm

Post by wd »

Howie wrote:
wd wrote:Still nothing about weathermap in cacti log...
I can see something about thold

Code: Select all

05/14/2006 11:35:29 AM - THOLD: Poller[0] Checking Thresholds
And if you disable the other plugins? (just for one cycle). The only thing like this I have seen before is with the Reports plugin, where nothing that is in the list after it runs. I wonder if this is something similar.
Yes,you are right.
After I disabled reports,I can see weathermap,and the uptime plugin is works properly too.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

wd wrote:Yes,you are right.
After I disabled reports,I can see weathermap,and the uptime plugin is works properly too.
OK. Cool. That was worrying me :) Reports does work, but it's best to put it last in your plugins list. I know that Jimmy has a new Reports in development, so I hope that it fixes this.
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!)
Julrodrig
Posts: 3
Joined: Fri Mar 24, 2006 4:30 pm
Location: Colombia

The Same problem

Post by Julrodrig »

we have the same problem, i disabled all other plugin and no maps shows

The log in debug for weathermap i'ts

02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Weathermap 0.82 in da house
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Engaging Weathermap DEBUG mode
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Iterating all maps.
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Map: /opt/cacti-0.8.6h/plugins/weathermap/configs/Coldecon.conf -> /opt/cacti-0.8.6h/plugins/weathermap/output/weathermap_3.html & /opt/cacti-0.8.6h/plugins/weathermap/output/weathermap_3.png
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Adding default map colour set.
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Setting bandwidth (100M, 100M)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Saving Default Link: DEFAULT
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Saving Node: node1144504144
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Saving Node: node1144504196
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Saving Node: node1144504212
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Saving Node: node1170350990
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Saving Node: node1170351844
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] RRDTOOL check triggered
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Setting bandwidth (150, 150)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Saving Link: node1170350990-node1144504144
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Setting bandwidth (80M, 80M)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Saving Link: node1170350990-node1144504196
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Setting bandwidth (150M, 150M)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Saving Link: node1170351844-node1170350990
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Already have 7 scales, no defaults added.
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ================== ReadData: Updating link data for all links
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] New Target: /opt/cacti-0.8.6h/rra/bar_bog_1_traffic_in_64.rrd (/opt/cacti-0.8.6h/rra/bar_bog_1_traffic_in_64.rrd)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadData: Updating link node1170350990-node1144504144 from RRD Target /opt/cacti-0.8.6h/rra/bar_bog_1_traffic_in_64.rrd
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Target DS names are traffic_in and traffic_out
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Running: /usr/bin/rrdtool fetch /opt/cacti-0.8.6h/rra/bar_bog_1_traffic_in_64.rrd AVERAGE --start now-800
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] > 1170357300: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] > 1170357600: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] > 1170357900: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] >
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --1170357900: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 1: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 2: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --1170357600: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 1: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 2: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --1170357300: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 1: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 2: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (-1,-1)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadData: Link node1170350990-node1144504144, target: /opt/cacti-0.8.6h/rra/bar_bog_1_traffic_in_64.rrd on config line 64 had no valid data
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadData: Setting 0,0
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] New Target: /opt/cacti-0.8.6h/rra/bar_clo_1_traffic_in_1020.rrd (/opt/cacti-0.8.6h/rra/bar_clo_1_traffic_in_1020.rrd)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadData: Updating link node1170350990-node1144504196 from RRD Target /opt/cacti-0.8.6h/rra/bar_clo_1_traffic_in_1020.rrd
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Target DS names are traffic_in and traffic_out
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Running: /usr/bin/rrdtool fetch /opt/cacti-0.8.6h/rra/bar_clo_1_traffic_in_1020.rrd AVERAGE --start now-800
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] > 1170357300: 4.8308706607e+06 5.2714414099e+06
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] > 1170357600: 4.3134062632e+06 4.6806370665e+06
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] > 1170357900: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] >
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --1170357900: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 1: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 2: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --1170357600: 4.3134062632e+06 4.6806370665e+06
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Found a good line: 1170357600: 4.3134062632e+06 4.6806370665e+06
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --1170357300: 4.8308706607e+06 5.2714414099e+06
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1170357600: 4.3134062632e+06 4.6806370665e+06
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (37445096.532,34507250.1056)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadData: Setting 37445096.532,34507250.1056
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] New Target: /opt/cacti-0.8.6h/rra/bar_ctg_1_traffic_in_1425.rrd (/opt/cacti-0.8.6h/rra/bar_ctg_1_traffic_in_1425.rrd)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadData: Updating link node1170351844-node1170350990 from RRD Target /opt/cacti-0.8.6h/rra/bar_ctg_1_traffic_in_1425.rrd
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Target DS names are traffic_in and traffic_out
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Running: /usr/bin/rrdtool fetch /opt/cacti-0.8.6h/rra/bar_ctg_1_traffic_in_1425.rrd AVERAGE --start now-800
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] > 1170357300: 6.4135893695e+06 1.0466171481e+07
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] > 1170357600: 6.3431888343e+06 1.0476727349e+07
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] > 1170357900: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] >
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --1170357900: nan nan
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 1: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: 2: This isn't a number: [nan]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --1170357600: 6.3431888343e+06 1.0476727349e+07
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Found a good line: 1170357600: 6.3431888343e+06 1.0476727349e+07
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] --1170357300: 6.4135893695e+06 1.0466171481e+07
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1170357600: 6.3431888343e+06 1.0476727349e+07
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (83813818.792,50745510.6744)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] ReadData: Setting 83813818.792,50745510.6744
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0]
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: KEYTEXT (0,0,0)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: KEYBG (255,255,255)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: BG (255,255,255)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: TITLE (0,0,0)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: TIME (0,0,0)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: 1:10 (140,0,255)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: 10:25 (32,32,255)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: 25:40 (0,192,255)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: 40:55 (0,240,0)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: 55:70 (240,240,0)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: 70:85 (255,192,0)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] AllocateScaleColours: 85:100 (255,0,0)
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Adding Poly imagemap for node1170350990-node1144504144
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Adding Poly imagemap for node1170350990-node1144504144
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Adding Poly imagemap for node1170350990-node1144504196
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Adding Poly imagemap for node1170350990-node1144504196
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Adding Poly imagemap for node1170351844-node1170350990
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Adding Poly imagemap for node1170351844-node1170350990
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Node->Draw: Metrics are: 3 42 x 13 -> 42 x 13
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Node->Draw: Metrics are: 3 28 x 13 -> 28 x 13
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Node->Draw: Metrics are: 3 56 x 13 -> 56 x 13
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Node->Draw: Metrics are: 3 56 x 13 -> 56 x 13
02/01/2007 02:24:56 PM - WEATHERMAP: Poller[0] Node->Draw: Metrics are: 3 63 x 13 -> 63 x 13
i note that the html file don't apeer

c
acti:# ls -la /opt/cacti-0.8.6h/plugins/weathermap/output/weathermap_3.htm
/bin/ls: /opt/cacti-0.8.6h/plugins/weathermap/output/weathermap_3.htm: No such file or directory
cacti: # ls -la /opt/cacti-0.8.6h/plugins/weathermap/output/
total 12
drwxr-xr-x 2 tc www 4096 2007-02-01 14:57 .
drwxr-xr-x 7 tc users 4096 2007-02-01 14:37 ..
-rw-r--r-- 1 tc users 33 2007-02-01 14:58 weathermap_3.png
Now how can solve this???
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: The Same problem

Post by Howie »

Julrodrig wrote: i note that the html file don't apeer

c
acti:# ls -la /opt/cacti-0.8.6h/plugins/weathermap/output/weathermap_3.htm
/bin/ls: /opt/cacti-0.8.6h/plugins/weathermap/output/weathermap_3.htm: No such file or directory
cacti: # ls -la /opt/cacti-0.8.6h/plugins/weathermap/output/
total 12
drwxr-xr-x 2 tc www 4096 2007-02-01 14:57 .
drwxr-xr-x 7 tc users 4096 2007-02-01 14:37 ..
-rw-r--r-- 1 tc users 33 2007-02-01 14:58 weathermap_3.png
Is 'tc' the user that runs the cacti poller? If not, then the permissions are wrong on your output directory. You should have got an error about that though... :-?
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!)
linsys2
Posts: 4
Joined: Thu Jan 18, 2007 10:52 pm

Going Nuts

Post by linsys2 »

All,
I have a windows install of cacti that works fine. I have tested the simple tools plugin and it works. I can create a .png file if I run php weathermap from the command line. Moreover I can use my config file I created using the editor.php in the command line and then view the .png file. If I run the poller.php I don't even see the weathermap entry being created. I have looked at all the posts. Also I looked at the weathermap_maps table and see entries. As you can see there is no image associated with it....no error in my cacti.log file has show up. I have even added the code to my setup.php and nothing....thanks in advance

mysql> select * from weather_maps;
ERROR 1146 (42S02): Table 'cactidb.weather_maps' doesn't exist
mysql> use cactidb;
Database changed
mysql> select * from weathermap_maps;
+----+-----------+--------+------------+-----------+----------+------------+
| id | sortorder | active | configfile | imagefile | htmlfile | titlecache |
+----+-----------+--------+------------+-----------+----------+------------+
| 4 | 1 | on | test3 | | | (no title) |
+----+-----------+--------+------------+-----------+----------+------------+
1 row in set (0.00 sec)

mysql> select * from weathermap_maps;
+----+-----------+--------+-------------+-----------+----------+------------+
| id | sortorder | active | configfile | imagefile | htmlfile | titlecache |
+----+-----------+--------+-------------+-----------+----------+------------+
| 5 | 1 | on | simple.conf | | | (no title) |
| 4 | 2 | on | test3 | | | (no title) |
+----+-----------+--------+-------------+-----------+----------+------------+
2 rows in set (0.00 sec)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Going Nuts

Post by Howie »

linsys2 wrote:All,
I have a windows install of cacti that works fine. I have tested the simple tools plugin and it works. I can create a .png file if I run php weathermap from the command line. Moreover I can use my config file I created using the editor.php in the command line and then view the .png file. If I run the poller.php I don't even see the weathermap entry being created. I have looked at all the posts. Also I looked at the weathermap_maps table and see entries. As you can see there is no image associated with it....no error in my cacti.log file has show up. I have even added the code to my setup.php and nothing....thanks in advance
With CactiEZ, I believe that other people have had problems with the default memory_limit. That would potentially behave as you are seeing... change php.ini to

The imagefile/htmlfile fields in the database aren't used. They're a hangover from a previous version. A software appendix ;-)

The two main causes for no images generated are: file permissions on the output/ directory (this appears in the logs) and memory_limit problems, which manifest as the process just dying with no warning. Finally, if you run some versions of the Reports plugin, then they should run last, since they have their own problems that stop plugins later in the list from running.

Most problems like this do show up in some way in the logs. You should try a poller cycle with DEBUG on, too. See if there's ANY weathermap lines in the logs...
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests