Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


console_getopt error

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
fate



Joined: 16 May 2007
Posts: 4

PostPosted: Wed May 16, 2007 3:56 pm    Post subject: console_getopt error Reply with quote

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
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Wed May 16, 2007 4:53 pm    Post subject: Re: console_getopt error Reply with quote

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...
Back to top
fate



Joined: 16 May 2007
Posts: 4

PostPosted: Thu May 17, 2007 7:41 am    Post subject: Reply with quote

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
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Thu May 17, 2007 8:06 am    Post subject: Reply with quote

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)
Back to top
fate



Joined: 16 May 2007
Posts: 4

PostPosted: Thu May 17, 2007 8:41 am    Post subject: Reply with quote

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


fate
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group