|
|
| Author |
Message |
mbalcerak
Joined: 08 Jul 2008 Posts: 6
|
Posted: Tue Jul 08, 2008 9:39 am Post subject: Need help installing |
|
|
i am currently using cacti 0.8.7b and I'm trying to install weathermap and cannot figure it out, cacti is installed in /usr/local/cacti under fedora 9 and weathermap is extracted to /usr/local/cacti/plugins/weathermap
however i cannot figure out how to make the tab show up next to the graphs tab inc cacti, please help!! |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Tue Jul 08, 2008 9:52 am Post subject: |
|
|
Did you read the installation instructions?
especially the part about the monkey. |
|
| Back to top |
|
 |
mbalcerak
Joined: 08 Jul 2008 Posts: 6
|
Posted: Tue Jul 08, 2008 10:15 am Post subject: |
|
|
| uh ... no |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Tue Jul 08, 2008 10:43 am Post subject: |
|
|
Then read the installation instructions. That's why I wrote them.
There isn't really a monkey part. |
|
| Back to top |
|
 |
mbalcerak
Joined: 08 Jul 2008 Posts: 6
|
Posted: Tue Jul 08, 2008 12:24 pm Post subject: |
|
|
| where are they located i can't seem to find them... |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Tue Jul 08, 2008 12:47 pm Post subject: |
|
|
| mbalcerak wrote: | | where are they located i can't seem to find them... |
In the docs directory, or on the website. |
|
| Back to top |
|
 |
mbalcerak
Joined: 08 Jul 2008 Posts: 6
|
Posted: Tue Jul 08, 2008 2:39 pm Post subject: |
|
|
i finally got php-gd installed and everything in in the check.php looks good, but i keep getting this error:
| Code: | php ./weathermap --config myconfigfile.conf --output mymap.png --htmloutput mymap.html
PHP Warning: require_once(Console/Getopt.php): failed to open stream: No such file or directory in /usr/local/cacti/plugins/weathermap/weathermap on line 8
PHP Fatal error: require_once(): Failed opening required 'Console/Getopt.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/cacti/plugins/weathermap/weathermap on line 8
|
line 8 looks like this btw:
| Code: | | require_once 'Console/Getopt.php'; |
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Tue Jul 08, 2008 3:44 pm Post subject: |
|
|
OK - this bit might not be in the manual.
You need to install PEAR, which is PHP's standard library. On most OS, it's part of PHP. I guess on fedora it isn't. The RPM will be called something like php-pear or just pear. (looks like it's php-pear).
I'll make sure that's in the next version. For what it's worth, you only actually need it for the command-line version, not for the cacti plugin. |
|
| Back to top |
|
 |
mbalcerak
Joined: 08 Jul 2008 Posts: 6
|
Posted: Wed Jul 09, 2008 7:48 am Post subject: |
|
|
when i try i add the
| Code: | $plugins = array();
$plugins[] = 'monitor';
$plugins[] = 'weathermap'; |
to the config.php and global.php it does nothing.
how can i make the weathermap tab showup in cacti?
installing php-pear fixed the other problem though, thanks!! |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Wed Jul 09, 2008 7:55 am Post subject: |
|
|
| if you added the "$plugins = array()" part too, that sounds like you haven't installed the plugin architecture. |
|
| Back to top |
|
 |
mbalcerak
Joined: 08 Jul 2008 Posts: 6
|
Posted: Wed Jul 09, 2008 8:55 am Post subject: |
|
|
| also a bigger problem at the moment, the date on the system was incorrect, now that its current it doesn't want to run the poller anymore, any idea how to fix it? |
|
| Back to top |
|
 |
|