Hi Jordi,

Sorry about the delay in getting back to you but have been very busy over
the last week.

Anyway...

I copied this from the website and called it fix.patch

--- /usr/lib/monitorix/fs.pm    2014-03-24 15:00:59.000000000 +0100
+++ fs.pm    2014-04-03 22:09:23.000000000 +0200
@@ -191,7 +191,7 @@
         if(/<\/row>/) {
             my $str = $_;
            my $n = 0;
-            $str =~ s/( <\/v>)/++$n % 3 == 0 ? " $1 NaN <\/v> NaN <\/v>
NaN <\/v> NaN <\/v> NaN <\/v>" : $1/eg;
+            $str =~ s/(\s*<\/v>)/++$n % 3 == 0 ? " $1 NaN <\/v> NaN <\/v>
NaN <\/v> NaN <\/v> NaN <\/v>" : $1/eg;
            print OUT $str;
            next;
        }

cd to /usr/lib/monitorix and type "patch -u fs.pm fix.patch"

And get this error

patching file fs.pm
Hunk #1 FAILED at 191.
patch unexpectedly ends in middle of line
1 out of 1 hunk FAILED -- saving rejects to file fs.pm.rej
patch unexpectedly ends in middle of line

Heres the contents of fs.pm.rej

--- fs.pm       2014-03-24 15:00:59.000000000 +0100
+++ fs.pm       2014-04-03 22:09:23.000000000 +0200
@@ -191,7 +191,7 @@
                if(/<\/row>/) {
                        my $str = $_;
                        my $n = 0;
-                       $str =~ s/( <\/v>)/++$n % 3 == 0 ? " $1 NaN <\/v>
NaN <\/v> NaN <\/v> NaN <\/v> NaN <\/v>" : $1/eg;
+                       $str =~ s/(\s*<\/v>)/++$n % 3 == 0 ? " $1 NaN <\/v>
NaN <\/v> NaN <\/v> NaN <\/v> NaN <\/v>" : $1/eg;
                        print OUT $str;
                        next;
                }

So am I doing something wrong here again or whats the story?

thanks



On 10 April 2014 21:14, Jordi Sanfeliu <jo...@fibranet.cat> wrote:

> Hi Spud,
>
> Of course, you can uninstall Monitorix as any other system package
> probably just using the same command you used to install it.
>
> Anyway, instead of trying to uninstall Monitorix and stuck on an old
> version forever, let's see if we can fix it.
>
> First of all, and as stated in the Monitorix web site, the new version
> 3.5.0 changes a pair of locations, and introduced an annoying bug when
> upgrading the 'fs.rrd' file that lead the following error message:
>
> ERROR: line 1237: expected </row> element but found <v>
>
> So, you need to apply the patch manually or using the 'patch' command.
> The patch is just so simple that will only change a blank space by '\s*'.
>
> Please, make sure that you upgraded correctly your old 'monitorix.conf'
> file. That is, not only update the new location in 'base_dir' option but
> also, the rest of new options that comes with the new version.
>
> Next, if you are not using the built-in HTTP server in Monitorix, also
> please make sure that your external web server is correctly pointing to
> the new location '/var/lib/monitorix/www', otherwise it won't find the
> 'index.html' nor the 'monitorix.cgi' file, etc.
>
> Please, let me know if that helped you.
> Regards.
>
>
>
> On 04/10/2014 12:47 PM, Spud wrote:
> > Hi Jordi,
> >
> > Is there an easy way to remove 3.5 and revert back to the previous
> > version as I seem to be unable to get this version up and running.
> >
> > I've been using monitorix for many years but this update has me
> > completely stumped. I've made all the necessary changes to the new
> > config file in the new location but still no joy.
> >
> >
>
> --
> Jordi Sanfeliu
> FIBRANET Network Services Provider
> http://www.fibranet.cat
>
>
>
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> Monitorix-general mailing list
> Monitorix-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monitorix-general
>



-- 
db

It denos't mtater waht oredr the ltteers in a wrod are, it's olny iprmoatnt
taht the frist and lsat ltteer be at the rghit pclae.The rset can be a
total mses and you can sitll raed it wouthit porbelm.Tihs is bcuseae the
huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Monitorix-general mailing list
Monitorix-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/monitorix-general

Reply via email to