Weathermap problem - creating output

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
joyeux666
Posts: 20
Joined: Wed Sep 28, 2005 7:15 am
Location: France

Weathermap problem - creating output

Post by joyeux666 »

Hi,

I update my cacti version (0.8.7.e)

Since, weathermap (v 0.95b) don't create output (my conf files are OK)

When i check the CLI running weathermap command :
php ./weathermap --config myconfigfile.conf --output mymap.png --htmloutput mymap.html

I have this error :

PHP Warning: require_once(Console/Getopt.php): failed to open stream: No such file or directory in /opt/cacti/plugins/weathermap/weathermap on line 8
PHP Fatal error: require_once(): Failed opening required 'Console/Getopt.php' (include_path='.:/usr/share/pear') in /opt/cacti/plugins/weathermap/weathermap on line 8

Dou have any idea ?

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

Post by Howie »

You need to install PEAR to get the Console/Getopt module, which is required by the command-line weathermap. http://pear.php.net/ (or via a package, depending on your OS).

You should probably look in the Cacti log file though - if weathermap isn't automatically creating maps, then you should see some error in there. Most likely the permissions on the output/ folder are not correct (it should be writable by the user that runs the Cacti poller).
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!)
joyeux666
Posts: 20
Joined: Wed Sep 28, 2005 7:15 am
Location: France

Post by joyeux666 »

Hi,

Thanks for your response


I've already PEAR installed

weathermap runs with my old cacti version 0.8.7b but not since the migration 0.8.7e

When I search :

find / -name pear

i've /usr/lib/php/pear

Pb with my environnement, path ?

regards
Sorry for my english

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

Post by Howie »

php -i will tell you where PHP is looking for modules.

BUT, look at the cacti.log! You don't really need to get the command-line tool working.
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!)
joyeux666
Posts: 20
Joined: Wed Sep 28, 2005 7:15 am
Location: France

Post by joyeux666 »

Since my upgrade

I doesn't have any log.

cacti.log 0 octet

I can't view log....
I verify my permissions and it's OK

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

Post by Howie »

Then you should figure out why Cacti isn't logging. Your upgrade didn't go well.
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!)
joyeux666
Posts: 20
Joined: Wed Sep 28, 2005 7:15 am
Location: France

Post by joyeux666 »

Now, Cacti log in cacti.log but stop 4096 octets

in my logs i've

12/24/2009 04:43:23 PM - WEATHERMAP: Poller[0] [Map 15] Archi_Secu.conf: ReadData: LINK NA_SM_SWI_DMZ2-NA_SFW02, target: /opt/cacti/rra/na_smswidmz2_traffic_in_2287.rrd on config line 254 had no valid data, according to WeatherMapDataSource_rrd
12/24/2009 04:43:23 PM - WEATHERMAP: Poller[0] [Map 15] Archi_Secu.conf: ReadData: LINK NA_SM_SWI_DMZ2-NA_SM_SWI_DMZ2_copy, target: /opt/cacti/rra/ni_smswidmz2_traffic_in_2293.rrd on config line 308 had no valid data, according to WeatherMapDataSource_rrd
12/24/2009 04:43:23 PM - WEATHERMAP: Poller[0] [Map 15] Archi_Secu.conf: ReadData: LINK NA_SM_SWI_DMZ1-NI_SM_SWI_DMZ1, target: /opt/cacti/rra/ni_smswidmz1_traffic_in_2316.rrd on config line 367 had no valid data, according to WeatherMapDataSource_rrd
12/24/2009 04:43:24 PM - WEATHERMAP: Poller[0] [Map 9] niort_dmz.conf: ReadData: LINK Firewall-Internet, target: /opt/cacti/rra/routeur_internet_principal_traffic_in_1238.rrd on config line 117 had no valid data, according to WeatherMapDataSource_rrd
12/24/2009 04:43:24 PM - WEATHERMAP: Poller[0] [Map 9] niort_dmz.conf: ReadData: LINK Firewall-SAVM01, target: /opt/cacti/rra//na_smswidmz1_traffic_in_1187.rrd on config line 134 had no valid data, according to WeatherMapDataSource_rrd
12/24/2009 04:43:24 PM - WEATHERMAP: Poller[0] [Map 9] niort_dmz.conf: ReadData: LINK Firewall-SFTP01, target: /opt/cacti/rra/na_smswidmz1_traffic_in_1191.rrd on config line 149 had no valid data, according to WeatherMapDataSource_rrd
12/24/2009 04:43:24 PM - WEATHERMAP: Poller[0] [Map 9] niort_dmz.conf: ReadData: LINK Firewall-SRPROXY02, target: /opt/cacti/rra/na_smswidmz1_traffic_in_1190.rrd on config line 155 had no valid data, according to WeatherMapDataSource_rrd
12/24/2009 04:43:24 PM - WEATHERMAP: Poller[0] [Map 9] niort_dmz.conf: ReadData: LINK Firewall-SDOMPTHRU01, target: /opt/cacti/rra/na_smswidmz1_traffic_in_1192.rrd on config line 169 had no valid data, according to WeatherMapDataSource_rrd


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

Re: Weathermap problem - creating output

Post by Howie »

joyeux666 wrote: (include_path='.:/usr/share/pear')
joyeux666 wrote: i've /usr/lib/php/pear
This is one problem.

It looks like your rrd files are not up to date, or weathermap would find valid data.

Are the map image files (weathermap/output/) updating?
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!)
joyeux666
Posts: 20
Joined: Wed Sep 28, 2005 7:15 am
Location: France

Post by joyeux666 »

some problems but now it's OK :

Path environnement
Rights on output files

Thanks a lot for your help.

Happy new year to all
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests