cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh install

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
pozar
Posts: 7
Joined: Mon Sep 27, 2010 2:36 pm

cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh install

Post by pozar »

On a fresh install of 0.8.7g cacti-plugin-0.8.7g-PA-v2.8.diff is breaking. Any thoughts?
---
[...]
--------------------------
|diff -Naur cacti-0.8.7g-old/images/disable_icon.png cacti-0.8.7g/images/disable_icon.png
|--- cacti-0.8.7g-old/images/disable_icon.png 1969-12-31 19:00:00.000000000 -0500
|+++ cacti-0.8.7g/images/disable_icon.png 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file images/disable_icon.png using Plan A...
patch: **** malformed patch at line 384: diff -Naur cacti-0.8.7g-old/images/enable_icon_disabled.png cacti-0.8.7g/images/enable_icon_disabled.png
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Re: cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh ins

Post by mcutting »

Did you try with the pre-patched files ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
pozar
Posts: 7
Joined: Mon Sep 27, 2010 2:36 pm

Re: cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh ins

Post by pozar »

Whoops. Sorry missed that. When I did applied the patches shown at:

http://www.cacti.net/download_patches.php

I am still getting....

[...]
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/images/disable_icon.png cacti-0.8.7g/images/disable_icon.png
|--- cacti-0.8.7g-old/images/disable_icon.png 1969-12-31 19:00:00.000000000 -0500
|+++ cacti-0.8.7g/images/disable_icon.png 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file images/disable_icon.png using Plan A...
patch: **** malformed patch at line 384: diff -Naur cacti-0.8.7g-old/images/enable_icon_disabled.png cacti-0.8.7g/images/enable_icon_disabled.png
#
[...]
pozar
Posts: 7
Joined: Mon Sep 27, 2010 2:36 pm

Re: cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh ins

Post by pozar »

BTW... Here is the patch file I am patching with.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh ins

Post by Howie »

On what OS?

I had this problem on FreeBSD - I think that binary patches (like this one failing, that modifies/creates a new icon) might not be part of the standard patch format...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
pozar
Posts: 7
Joined: Mon Sep 27, 2010 2:36 pm

Re: cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh ins

Post by pozar »

Ah... That be it. I am running FreeBSD. I guess I would have to dig up some gnu patch program.

I did do a work around by:

1] installing a fresh copy
2] adding patches
3] doing a "cp -r -p [patchdirectory]/files-0.8.7g/* /usr/local/share/cacti/

I did find that there are some directory assumptions that are still a little wonky that I dealt with on the short term with symbolic links.

Tim
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh ins

Post by Linegod »

It's an icon. It didn't change. Ignore the error.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh ins

Post by Howie »

Linegod wrote:It's an icon. It didn't change. Ignore the error.
It's been a while, but my memory of it was that the patch process just stops, so anything after that doesn't happen.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
pozar
Posts: 7
Joined: Mon Sep 27, 2010 2:36 pm

Re: cacti-plugin-0.8.7g-PA-v2.8.diff breaking on a fresh ins

Post by pozar »

I did find that there are some directory assumptions that are still a little wonky that I dealt with on the short term with symbolic links.
Silly me. The directory assumptions issue can be solved by editing "../include/global.php" and putting in the URL for the site at...

Code: Select all

/* set URL path */
if (! isset($url_path)) {
        /* $url_path = ""; */
        $url_path = "https://cacti.domain.com/";
}
With these "work arounds", all is good.

Tim
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests