Error when installing wheathermap plugin

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
divit
Posts: 8
Joined: Thu Jul 25, 2013 8:38 am

Error when installing wheathermap plugin

Post by divit »

Sorry for my English.

OS Debian 7. Cacti 0.8.8a


Install a monitoring system Cacti

apt-get install cacti cacti-spine

During the installation asks for the root password mySQL introduce 123456789

Then choose the server apatch for Cacti - it is configured automatically during installation.
All completed without errors.

Next, please enter the quote: Enter the password the administrator account with which this package should create its MySQL database and a user? Administrative password of the database user ______
I enter 123456789


Set a password to register for the cacti database server. If left blank, it will generate a random password. Vvvozhu 123456789

Cacti to run. Offers web-muzzle on http://localhost/cacti
The first time you start asking to change the password from the uchetki admin, I change on 123456789


Next, add the plugin to cacti on the manuals http://habrahabr.ru/post/143747/

I reach up to 1.4 points. Perform patch # patch-p1-N <cacti-plugin-0.8.7h-PA-v3.0.diff
And spilling mistakes. See below. And after this patch server stops working cacti. Web-face is not available for http://localhost/cacti



___________________________________________________________________________________________________________________________
root@Cacti:/home/user# cd /usr/share/cacti/site/
root@Cacti:/usr/share/cacti/site# patch -p1 -N < cacti-plugin-0.8.7h-PA-v3.0.diffpatching file auth_changepassword.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file auth_changepassword.php.rej
patching file auth_login.php
Hunk #1 FAILED at 124.
Hunk #2 FAILED at 168.
Hunk #3 FAILED at 189.
Hunk #4 FAILED at 222.
Hunk #5 FAILED at 249.
Hunk #6 FAILED at 264.
Hunk #7 FAILED at 303.
Hunk #8 FAILED at 319.
8 out of 8 hunks FAILED -- saving rejects to file auth_login.php.rej
patching file cli/add_graph_template.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file cli/add_graph_template.php.rej
patching file cli/host_update_template.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file cli/host_update_template.php.rej
patching file data_sources.php
Reversed (or previously applied) patch detected! Skipping patch.
9 out of 9 hunks ignored -- saving rejects to file data_sources.php.rej
patching file graph.php
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file graph.php.rej
patching file graph_image.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file graph_image.php.rej
patching file graphs.php
Reversed (or previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file graphs.php.rej
patching file graphs_new.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file graphs_new.php.rej
patching file host.php
Reversed (or previously applied) patch detected! Skipping patch.
8 out of 8 hunks ignored -- saving rejects to file host.php.rej
The next patch would create the file images/disable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/enable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/enable_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/install_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/install_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/uninstall_icon.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/view_none.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file include/auth.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file include/auth.php.rej
patching file include/bottom_footer.php
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file include/bottom_footer.php.rej
The next patch would create the file include/config.php.dist,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file include/global.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file include/global.php.rej
patching file include/global_arrays.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file include/global_arrays.php.rej
patching file include/global_constants.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/global_constants.php.rej
patching file include/global_form.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file include/global_form.php.rej
patching file include/global_settings.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/global_settings.php.rej
The next patch would create the file include/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file include/top_graph_header.php
Reversed (or previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file include/top_header.php.rej
patching file index.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file index.php.rej
patching file lib/api_device.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/api_device.php.rej
patching file lib/api_graph.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/api_graph.php.rej
patching file lib/auth.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/auth.php.rej
patching file lib/data_query.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/data_query.php.rej
patching file lib/functions.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file lib/functions.php.rej
patching file lib/html.php
Reversed (or previously applied) patch detected! Skipping patch.
8 out of 8 hunks ignored -- saving rejects to file lib/html.php.rej
patching file lib/html_form.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/html_form.php.rej
patching file lib/html_tree.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/html_tree.php.rej
The next patch would create the file lib/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file lib/poller.php
Hunk #1 FAILED at 432.
1 out of 1 hunk FAILED -- saving rejects to file lib/poller.php.rej
patching file lib/rrd.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file lib/rrd.php.rej
patching file lib/template.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/template.php.rej
patching file lib/variables.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/variables.php.rej
The next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file poller.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file poller.php.rej
patching file user_admin.php
Hunk #1 FAILED at 57.
Hunk #2 FAILED at 83.
Hunk #3 FAILED at 402.
Hunk #4 FAILED at 444.
Hunk #5 succeeded at 898 with fuzz 2 (offset 9 lines).
Hunk #6 FAILED at 917.
Hunk #7 FAILED at 930.
6 out of 7 hunks FAILED -- saving rejects to file user_admin.php.rej
patching file utilities.php
Hunk #1 FAILED at 123.
Hunk #2 succeeded at 300 with fuzz 2 (offset 12 lines).
Hunk #3 succeeded at 1668 with fuzz 2 (offset 6 lines).
1 out of 3 hunks FAILED -- saving rejects to file utilities.php.rej
root@Cacti:/usr/share/cacti/site#
_____________________________________________________________________________________________________________________________________________________________________________________________________________
Далее по инструкции пытаюсь внести изменения в БД #mysql –u cactiuser –p cacti < pa.sql Где, cactiuser — пользователь БД cacti. НО Я ВЕДЬ ТОЛЬКО ВВОДИЛ ПАРОЛЬ административной учетной записи для создания БД.
Предпологаю что учетка root

Выдает следующие:

root@Cacti:/usr/share/cacti/site# mysql -u root -p cacti < pa.sql
Enter password:
ERROR 1050 (42S01) at line 5: Table 'plugin_config' already exists
root@Cacti:/usr/share/cacti/site#
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Error when installing wheathermap plugin

Post by phalek »

You do realize that the patch "cacti-plugin-0.8.7h-PA-v3.0.diff" is for Cacti version 0.8.7h only, right ?

There's no need to do that in Cacti 0.8.8a as it already includes the Plugin Architecture (PIA)
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
divit
Posts: 8
Joined: Thu Jul 25, 2013 8:38 am

Re: Error when installing wheathermap plugin

Post by divit »

Thanks for the answer!
I can not find documentation comparing versions of cacti and Weathermap. Tell me which version of Weathermap need to install on Cacti 0.8.8a?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Error when installing wheathermap plugin

Post by phalek »

Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
divit
Posts: 8
Joined: Thu Jul 25, 2013 8:38 am

Re: Error when installing wheathermap plugin

Post by divit »

Thank you! Everything was installed. Now I will try to set up))))
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest