functions.php error with wm 0.82

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

functions.php error with wm 0.82

Post by Pumpi »

Hello Howie,

I have some problems to get the excellent weathermap to work on one of our Cacti servers.

First I get following error after installing weathermap after login:

Notice: Undefined index: index.php: in /srv/www/htdocs/cacti/lib/functions.php on line 1420

When I click on Weathermaps link I get:

Notice: Undefined index: index.php: in /srv/www/htdocs/cacti/lib/functions.php on line 1430

Notice: Undefined index: index.php: in /srv/www/htdocs/cacti/lib/functions.php on line 1449
-> Weathermap Management


I use weathermap on another Linux server - Redhat instead of SUSE without any problems.


----------------------------------------------------------------------
SUSE Server:

Cacti Version 0.8.6i
Plugin Architecture 1.0
Poller Type Cactid v0.8.6i
Server Info Linux 2.6.5-7.252-bigsmp
Web Server Apache/2.0.49 (Linux/SuSE)
PHP Version 4.3.4
PHP Extensions xml, tokenizer, standard, posix, pcre, overload, openssl, apache2handler, zlib, yp, xslt, wddx, odbc, sysvshm, sysvsem, swf, sockets, snmp, shmop, session, readline, qtdom, mysql, mime_magic, mhash, mcrypt, mcal, mbstring, ldap, iconv, gmp, gettext, gd, ftp, filepro, domxml, curl, ctype, calendar, bz2, bcmath
MySQL Version 4.0.18
RRDTool Version 1.2.15
SNMP Version 5.1.3.1
Plugins cycle - v0.1
Device Monitoring (monitor - v0.7)
rrdclean (RRD Cleaner - v1.2 (Hack Gilles Boulon))
Thresholds (thold - v0.3.0)
Network Tools (tools - v0.2)
update
Host Info (hostinfo - v0.1)
Dataquery (dataquery - v0.1.2a)
killspike (killspike - v0.1.0a)
PHP Network Weathermap (weathermap - v0.82)

-----------------------------------------------------------------------------
RedHat Server:

Cacti Version 0.8.6i
Plugin Architecture 1.0
Poller Type Cactid v0.8.6i
Server Info Linux 2.6.9-34.ELsmp
Web Server Apache/2.0.52 (Red Hat)
PHP Version 4.3.9
PHP Extensions yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, ldap, mysql, snmp
MySQL Version 4.1.12
RRDTool Version 1.2.15
SNMP Version 5.1.2
Plugins Thresholds (thold - v0.3.0)
Update Checker (update - v0.3)
Host Info (hostinfo - v0.1)
Network Tools (tools - v0.2)
cycle - v0.1
rrdclean (RRD Cleaner - v1.2)
PHP Network Weathermap (weathermap - v0.82)
PHP Network Managing (manage - v0.4)
Device Monitoring (monitor - v0.7)
Report Creator (reports - v0.1b)
--------------------------------------------------------------------------------------

Any ideas ?

P.s. when will be version 0.9 released ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: functions.php error with wm 0.82

Post by Howie »

Pumpi wrote:Hello Howie,

I have some problems to get the excellent weathermap to work on one of our Cacti servers.

First I get following error after installing weathermap after login:

Notice: Undefined index: index.php: in /srv/www/htdocs/cacti/lib/functions.php on line 1420
This is to do with the Cacti permissions system. I think it might be caused by having Weathermap and the older (0.1) version of Cycle installed together. I believe there was a conflict that has been corrected in the more recent Cycle (0.3 seems to be the latest) where both plugins used the same realm number.
Pumpi wrote: P.s. when will be version 0.9 released ?
When it's done. :)
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!)
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Hello Howie,

have have upgraded Cycle Plugin with same error, but after removing the Killspike Plugin I get no more errors.

Thanks for the hint :D

I'll test it now and create some maps.

When do you release Weathermap 0.9 ? :roll:
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Pumpi wrote:Hello Howie,

have have upgraded Cycle Plugin with same error, but after removing the Killspike Plugin I get no more errors.
That's odd, because I use both Weathermap and Killspike with no problems...
Pumpi wrote: Thanks for the hint :D

I'll test it now and create some maps.

When do you release Weathermap 0.9 ? :roll:
When it's done. I'm not joking. Is there some particular thing you are waiting for?
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!)
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Howie,

can I resize the Cisco icons which I have downloaded from your page ?


And no maps are shown in Cacti:

This map hasn't been created yet.

Log shows following entries:
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update weathermap_maps set sortorder=id where sortorder is null;"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update weathermap_maps set sortorder=id where sortorder is null or sortorder=0;"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='42'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_delay'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_font_size'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_font_face'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_font_color'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_width'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_height'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select distinct weathermap_maps.* from weathermap_auth,weathermap_maps where weathermap_maps.id=weathermap_auth.mapid and active='on' and (userid=1 or userid=0) order by sortorder, id"
11/29/2006 03:15:28 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into weathermap_maps (configfile,titlecache,active,imagefile,htmlfile) VALUES ('NWMAP.conf','Network Map','on','','')"
11/29/2006 03:15:28 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into weathermap_auth (mapid,userid) VALUES (10,1)"

Pumpi

P.s. the new features of 0.9 are very interesting


A customer map that makes use of 0.9 features - numeric offsets for link ends, and sub-nodes with embedded data (the router CPU). It also uses the BWLABELPOS feature to change the positions of the bandwidth labels in the trunks. I wanted to see traffic across multiple VLANs in a VLAN trunk.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Pumpi wrote:Howie,

can I resize the Cisco icons which I have downloaded from your page ?
Sure. Photoshop or The Gimp will do that with no problems. Remember to save as PNG. In 0.9, it can do some scaling for you, but it's less efficient than doing it yourself before using the icon images.
Pumpi wrote: And no maps are shown in Cacti:

This map hasn't been created yet.

Log shows following entries:
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update weathermap_maps set sortorder=id where sortorder is null;"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update weathermap_maps set sortorder=id where sortorder is null or sortorder=0;"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='42'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_delay'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_font_size'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_font_face'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_font_color'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_width'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select * from settings where name='cycle_height'"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
11/29/2006 03:15:20 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select distinct weathermap_maps.* from weathermap_auth,weathermap_maps where weathermap_maps.id=weathermap_auth.mapid and active='on' and (userid=1 or userid=0) order by sortorder, id"
11/29/2006 03:15:28 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into weathermap_maps (configfile,titlecache,active,imagefile,htmlfile) VALUES ('NWMAP.conf','Network Map','on','','')"
11/29/2006 03:15:28 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into weathermap_auth (mapid,userid) VALUES (10,1)"
If those are ALL the weathermap entries you get for a poller cycle, then something is very wrong. All of those lines were produced from you using the web user interface, rather than the poller process. You should see at least one line that is something like:

Code: Select all

WEATHERMAP: Poller[0] Weathermap 0.899a3 starting - Normal logging mode. Turn on DEBUG in Cacti for more information
even if everything else goes wrong.
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 4 guests