console_getopt error

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
fate
Posts: 4
Joined: Wed May 16, 2007 3:49 pm

console_getopt error

Post by fate »

Hello!
I try to use weathermap as cacti plugin on debian linux.
I have install console_geopt, but I can't creat a map :(

php weathermap --config configs/simple.conf --output test.png --htmloutput test.html


Fatal error: Cannot instantiate non-existent class: console_getopt in /usr/share/cacti/site/plugins/weathermap/weathermap on line 36

pear list:
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2.2 stable
PEAR 1.4.11 stable

Thanks for any help!

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

Re: console_getopt error

Post by Howie »

fate wrote:Hello!
I try to use weathermap as cacti plugin on debian linux.
I have install console_geopt, but I can't creat a map :(

php weathermap --config configs/simple.conf --output test.png --htmloutput test.html


Fatal error: Cannot instantiate non-existent class: console_getopt in /usr/share/cacti/site/plugins/weathermap/weathermap on line 36

pear list:
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2.2 stable
PEAR 1.4.11 stable

Thanks for any help!

fate
If you are using it as a Cacti plugin, you don't need to run the command-line weathermap. The poller does that for you. Just go to Manage...Weathermaps in the Cacti web interface, and add the config file, and wait a poller cycle.

However, if you do want to use the command-line weathermap... On debian especially, be sure that you installed console_getopt for the CLI php and not the mod_php/apache one. I don't know how Debian handles pear, but I do know that the configs for both of these PHPs are different on a debian system. My guess is that you have the PEAR module in your apache-php and not your cli-php...
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!)
fate
Posts: 4
Joined: Wed May 16, 2007 3:49 pm

Post by fate »

Thanks for your help!!!
I did it as you said but still i have problem with map. I waited 10min but cacti says : "This map hasn't been created yet"

If i run poller.php for CLI i have this error:

05/17/2007 02:34:47 PM - WEATHERMAP: Poller[0] Weathermap 0.91 starting - Normal logging mode. Turn on DEBUG in Cacti for more information
05/17/2007 02:34:47 PM - WEATHERMAP: Poller[0] Map: /usr/share/cacti/site/plugins/weathermap/configs/simple.conf -> /usr/share/cacti/site/plugins/weathermap/output/weathermap_3.html & /usr/share/cacti/site/plugins/weathermap/output/weathermap_3.png
05/17/2007 02:34:47 PM - WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini Segmentation fault (i changed memory_limit to 64MB)

After this in outup directory i have an empty file weathermap_3.html


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

Post by Howie »

fate wrote:Thanks for your help!!!
I did it as you said but still i have problem with map. I waited 10min but cacti says : "This map hasn't been created yet"

If i run poller.php for CLI i have this error:

05/17/2007 02:34:47 PM - WEATHERMAP: Poller[0] Weathermap 0.91 starting - Normal logging mode. Turn on DEBUG in Cacti for more information
05/17/2007 02:34:47 PM - WEATHERMAP: Poller[0] Map: /usr/share/cacti/site/plugins/weathermap/configs/simple.conf -> /usr/share/cacti/site/plugins/weathermap/output/weathermap_3.html & /usr/share/cacti/site/plugins/weathermap/output/weathermap_3.png
05/17/2007 02:34:47 PM - WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini Segmentation fault (i changed memory_limit to 64MB)

After this in outup directory i have an empty file weathermap_3.html


fate
Then you might need to look into updating your GD library too. See the other threads about this (anything with segmentation fault in the sbject)
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!)
fate
Posts: 4
Joined: Wed May 16, 2007 3:49 pm

Post by fate »

Thanks!!!
You are right. I updated GD to libgd2-xpm_2.0.34~rc1-2_i386.deb (unstable) and everythink is fine.


fate
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests