Weathermap problem - creating output
Moderators: Developers, Moderators
Weathermap problem - creating output
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
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
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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).
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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.
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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!)
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!)
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
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
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Weathermap problem - creating output
joyeux666 wrote: (include_path='.:/usr/share/pear')
This is one problem.joyeux666 wrote: i've /usr/lib/php/pear
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!)
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!)
Who is online
Users browsing this forum: No registered users and 0 guests