Patches

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

Moderators: Developers, Moderators

shadow1975
Posts: 32
Joined: Wed Mar 02, 2005 11:58 am

Patches

Post by shadow1975 »

How do you install patches under a windows enviroment?
User avatar
mrh
Cacti User
Posts: 84
Joined: Tue Mar 08, 2005 9:50 am

Post by mrh »

I've recently posted the same ask... There is no patch.exe file! Maybe we should download older versions of cacti and see if it's there...

If you discover how to do that, please post me the solution!

Thanks
mrh | cacti 0.8.6h | plugin architecture | thold | monitor | iis6
shadow1975
Posts: 32
Joined: Wed Mar 02, 2005 11:58 am

Post by shadow1975 »

Will do as going to have a serious hunt for solution over the weekend as need run updates on Monday. Will post solution if find one.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

you can find pre-patches files here : http://www.cacti.net/downloads/patches/ ... e-patched/

Backup the original files, and replace them with the new ones.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Lol, beat me to it, thanks for posting the link.. ;)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Also, I will ask Ian to update the patch download page to include a link to the fully patched files.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
shadow1975
Posts: 32
Joined: Wed Mar 02, 2005 11:58 am

Post by shadow1975 »

Guys thanks very much for this help now can start patching this morning. Sorry for late reply.
hajid
Posts: 11
Joined: Sat Mar 12, 2005 1:37 am

Post by hajid »

please instruction detail for install patches.
hajid
Posts: 11
Joined: Sat Mar 12, 2005 1:37 am

Post by hajid »

i have replaced old file with new one but when login i got this warning :

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\cacti\lib\database.php:220) in c:\inetpub\wwwroot\cacti\auth_login.php on line 77

but when i enter it can login. also i got warning :

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\cacti\lib\database.php:220) in c:\inetpub\wwwroot\cacti\include\top_graph_header.php on line 51

when see graphs.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Did you download the correct patches for the version cacti that you are running?

Please confirm the version of cacti by looking at the about section.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

hmm, I'm getting simular errors after installing the files in the pre-patched directory:

Code: Select all


Warning: main(c:\auntie\cacti\lib/database.php): failed to open stream: Permission denied in c:\auntie\cacti\include\config.php on line 104

Warning: main(c:\auntie\cacti\lib/database.php): failed to open stream: Permission denied in c:\auntie\cacti\include\config.php on line 104

Warning: main(): Failed opening 'c:\auntie\cacti\lib/database.php' for inclusion (include_path='.;c:\php4\pear') in c:\auntie\cacti\include\config.php on line 104

Fatal error: Call to undefined function: db_connect_real() in c:\auntie\cacti\include\config.php on line 105
Edit1: The troubling thing is that I restored the original files and I'm still getting these errors!

Edit2: Phew! fixed it. Somehow IUSR only had 'list folder contents' set for the include and lib directories. Adding 'read' fixed it. Now to try the patched files again...

Edit3: Got them all installed and I don't seem to have any errors. yay.

Edit4: I take that back, I am getting errors when running poller.php

Code: Select all

<b>Warning</b>:  Compilation failed: range out of order in character class at of
fset 29 in <b>C:\auntie\cacti\lib\poller.php</b> on line <b>215</b><br />
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

post you poller.php file. Back off your config.php change.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Here is the patched file I downloaded

The only line this different is line 214:

if (preg_match("/^([a-zA-Z0-9_\.-]+):([0-9Ee-\+\.]+)$/", $values[$i], $matches)) {
Attachments
poller.patched.php.zip
rename to php
(11.52 KiB) Downloaded 392 times
hajid
Posts: 11
Joined: Sat Mar 12, 2005 1:37 am

Post by hajid »

rony wrote:Did you download the correct patches for the version cacti that you are running?

Please confirm the version of cacti by looking at the about section.
i have installed cacti 0.8.6c and i got pre-pacthes from this link http://www.cacti.net/downloads/patches/ ... re-patched

please advice. if this link not corect, where i can download for patches. i need for graphing several oid at my router.
scavenger67
Posts: 49
Joined: Fri Mar 18, 2005 7:33 am
Location: France

is it working ?

Post by scavenger67 »

I just want to know if someone try to patch on windows. ( pre-patch files )
is the link bellow working fine ?
thanks.
:D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests