Can windows platform surpport cacti plugins?

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
amaze_sun
Posts: 17
Joined: Tue Aug 04, 2009 3:17 am

Can windows platform surpport cacti plugins?

Post by amaze_sun »

Hi,friends

My cacti is running over windows not linux , and I want to use some plugins such as weathermap.
Would you please tell me where I shall download the win edition of plugin architecture and weathermap?
Thanks a lot.

amaze_sun
amaze_sun
Posts: 17
Joined: Tue Aug 04, 2009 3:17 am

Post by amaze_sun »

can I just follow the readme?

Drop the patch into your cacti directory, and then use this command on unix
to patch your cacti files.

patch -p1 -N < cacti-plugin-0.8.7e-PA-v2.6.diff

Edit your includes/global.php and add a plugin to the $plugins list

Then you will need to import the pa.sql file into your mysql database.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Well, ideally, you'd want the prepatched files. These are located on the Cacti downloads area.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
amaze_sun
Posts: 17
Joined: Tue Aug 04, 2009 3:17 am

Post by amaze_sun »

I have read through the cacti window setup guide , but I didn't find the plugins part.
According to your advice , I tried to find something prepatched to cover my edition, but I failed to get that file.
would you show me a link?
thanks a lot
amaze_sun
Posts: 17
Joined: Tue Aug 04, 2009 3:17 am

Post by amaze_sun »

after copy the prepatched filed int to the cacti folder,
I got the following messege, and I even can't get the cacti homepage
while before I set up plugins, my cacti is running rather well

On the web site , my cacti turns to that My God~~~

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:/AppServ/www/cacti/index.php' (include_path='.;C:\php5\pear') in Unknown on line 0
amaze_sun
Posts: 17
Joined: Tue Aug 04, 2009 3:17 am

Post by amaze_sun »

C:\AppServ\www\cacti> patch -p1 -N < cacti-plugin-0.8.7e-PA-v2.6.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
Hunk #1 succeeded at 98 (offset -2 lines).
Hunk #2 succeeded at 213 (offset -2 lines).
Hunk #3 succeeded at 246 (offset -2 lines).
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/bottom_footer.php
patching file include/global_arrays.php
Hunk #2 succeeded at 643 (offset -4 lines).
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
Hunk #3 FAILED at 195.
1 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
The next patch would create the file include/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/plugins.php.rej
patching file include/top_graph_header.php
Hunk #2 FAILED at 55.
Hunk #5 FAILED at 128.
Hunk #6 FAILED at 156.
3 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.r
ej
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
patching file lib/auth.php
patching file lib/functions.php
patching file lib/html_form.php
Hunk #1 succeeded at 655 (offset -67 lines).
Hunk #2 succeeded at 672 (offset -67 lines).
Hunk #3 succeeded at 693 (offset -67 lines).
patching file lib/html.php
The next patch would create the file lib/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/plugins.php.rej
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
The next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins/index.php.rej
The next patch would create the file plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins.php.rej
patching file poller.php
patching file user_admin.php
patching file utilities.php
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Don't attempt to patch the files if you are running Windows, unless you know what you are in for...

Prepatched files can be found here
http://mirror.cactiusers.org/downloads/ ... A-v2.6.zip

There is a directory for these files inside the ZIP.

The other issues you are experiencing look like permissions (or lacik thereof).

Hope this helps.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
amaze_sun
Posts: 17
Joined: Tue Aug 04, 2009 3:17 am

Post by amaze_sun »

thank you for your reply
your link is just what I have used, according to your opinion, I will try to used the files in zip to cover my cacti.
I am in trouble with the error log line 0.
where should I begin with my debug plugins
amaze_sun
Posts: 17
Joined: Tue Aug 04, 2009 3:17 am

Post by amaze_sun »

if I cover the files in zip, my cacti can be logged in, but the icons disappear, and the graphs can't be shown.
amaze_sun
Posts: 17
Joined: Tue Aug 04, 2009 3:17 am

Post by amaze_sun »

finally , it is ok

just follow the readme.txt

http://cactiusers.org/wiki/PluginArchitectureInstall
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests