Upgrading The Windows Installer created by BSOD2600

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
nickrigas
Posts: 9
Joined: Wed Sep 02, 2009 12:56 pm

Upgrading The Windows Installer created by BSOD2600

Post by nickrigas »

I have a Windows 2003 server running Cacti. I installed it using BSOD2600 installer.

I am attempting to apply patches found on http://cacti.net/download_patches.php .
The wget commands worked like a charm.
I am stumped on the 3 lines shown below:


patch -p1 -N < cli_add_graph.patch
patch -p1 -N < snmp_invalid_response.patch
patch -p1 -N < template_duplication.patch

They all ask what file to patch?
See the output below:

---------------------------------------------------

C:\cygwin\bin>patch -p1 -N < cli_add_graph.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ../tags/0.8.7e/cli/add_graphs.php 2009-06-28 12:34:31.000000000 -0400
|+++ 0.8.7/cli/add_graphs.php 2009-08-18 20:04:44.000000000 -0400
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored

C:\cygwin\bin>patch -p1 -N < snmp_invalid_response.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ../tags/0.8.7e/include/global_arrays.php 2009-06-28 12:34:31.000000000 -
400
|+++ 0.8.7/include/global_arrays.php 2009-08-18 20:04:44.000000000 -0400
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ../tags/0.8.7e/lib/snmp.php 2009-06-28 12:34:30.000000000 -0400
|+++ 0.8.7/lib/snmp.php 2009-08-18 20:04:44.000000000 -0400
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored

C:\cygwin\bin>patch -p1 -N < template_duplication.patch
patching file cli/repair_templates.php
can't find file to patch at input line 143
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruBbd 0.8.7e/docs/README 0.8.7/docs/README
|--- 0.8.7e/docs/README 2009-08-18 21:57:30.000000000 -0400
|+++ 0.8.7/docs/README 2009-08-18 21:58:09.000000000 -0400
--------------------------
File to patch:


-----------------------------------------------



What 3 files am I patching?

Thanks
Nick Rigas
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Per the instructions on that patching page:
Be sure that you are in your Cacti directory when you execute these commands.
You're patching in the wrong directory.

You can also just download the pre-patched files and use those instead too: http://www.cacti.net/downloads/patches/ ... e-patched/
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Can not patched the file for cacti 0.8.7e

Post by trungtano »

Hi! I'm new user in cacti

I have the same problem. I run cacti0.8.7e on Fedora 11 and when I patched these file!

So, that mean just download these file and replace them, right?

And, when I try to
[root@Cacti cacti]# patch -p1 -N < cacti-plugin-0.8.7e-PA-v2.5.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
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 647 (offset 4 lines).
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
patching file include/global_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
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
patching file lib/html.php
patching file lib/plugins.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php

There was error with this one:
patching file include/global_arrays.php
Hunk #2 succeeded at 647 (offset 4 lines).

Do you have the file global_arrays.php that already patched? or do you repair the PA?


Help me please
Best regards!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

trungtano: Wrong forum. Get the updated files from http://forums.cacti.net/viewtopic.php?t=34188
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Post by trungtano »

Oop I'm sorry!

Thank you very much!
robocp01
Posts: 28
Joined: Mon Sep 21, 2009 3:59 pm
Location: Chalottesville, Va.

Patching Windows 2003

Post by robocp01 »

Pardon my ignorance on this subject, but I have a Windows 2003 server in a test environment that I've installed Cacti on. I have it running just fine but I'm confused about patching.

I can't load Cygwin due to restrictions from the test site on outbound connections to the internet. I've read the documentation and downloaded just the files as shown above.

I'm confused on how you actually patch the application. Is it to just replace the files although I don't see these files in the cacti directory with exactly the same name format.

Can you help?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Take the files from http://www.cacti.net/downloads/patches/ ... e-patched/ and overwrite them in the correct directories.
robocp01
Posts: 28
Joined: Mon Sep 21, 2009 3:59 pm
Location: Chalottesville, Va.

Thanks

Post by robocp01 »

Helps if you pick the correct files.. :roll:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest