Topic
  • 4 replies
  • Latest Post - ‏2013-12-11T10:20:52Z by fbenfredj
fbenfredj
fbenfredj
40 Posts

Pinned topic nmon2web : update with old nmon files

‏2013-12-10T15:15:46Z |

Hi Bruce,

How can I update nmon2web RRD files with old nmon files?

In fact, when centralizing nmon files on the nmon2web server, I missed som files. So, now, there is a gap in the the graphs :-(

Thank you for your help.

Regards

Faouzi BEN FREDJ

  • sun.aus
    sun.aus
    12 Posts

    Re: nmon2web : update with old nmon files

    ‏2013-12-10T22:23:55Z  

    For rrdtool, it is not easy to import old data which is older than the existing data.

    Maybe you need,

    1. dump rrddata to file

    2. import old data first

    3. restore xml dump data to rrdtool

  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web : update with old nmon files

    ‏2013-12-11T01:55:06Z  

    By design, you must load data sequentially into the rrdtool.   So it's a reload.

    If you've saved the nmon.csv files, you can delete the server directory on the web page  

    rm -r  <serial number>/<type>/<hostname>

    Then unzip the nmon.csv.gz files and rerun.

     

    If you don't have the nmon files, the rrdtool data load files are in

    <serial number>/<type>/<hostname>/rrddata

    Be sure you have a backup.  then remove the rrdtool databases

    rm *rrd

    Then recreate the databases

    rrdtool - < rrdcreate

     

    Then reload the data

    cd updates

    Run update files sequentially, in order.

    rrdtool - < update_file

     

  • fbenfredj
    fbenfredj
    40 Posts

    Re: nmon2web : update with old nmon files

    ‏2013-12-11T10:06:42Z  

    By design, you must load data sequentially into the rrdtool.   So it's a reload.

    If you've saved the nmon.csv files, you can delete the server directory on the web page  

    rm -r  <serial number>/<type>/<hostname>

    Then unzip the nmon.csv.gz files and rerun.

     

    If you don't have the nmon files, the rrdtool data load files are in

    <serial number>/<type>/<hostname>/rrddata

    Be sure you have a backup.  then remove the rrdtool databases

    rm *rrd

    Then recreate the databases

    rrdtool - < rrdcreate

     

    Then reload the data

    cd updates

    Run update files sequentially, in order.

    rrdtool - < update_file

     

    Yes I had nmon files. So, I applied the first solution.

    Fortunately, I am in test period and I have only 8 servers to follow :-)

    It last all the night for the 8 servers and 2 weeks nmon files for each server (nmon is launched every hour with un interval of 30 sec).

    it is really very long.

  • fbenfredj
    fbenfredj
    40 Posts

    Re: nmon2web : update with old nmon files

    ‏2013-12-11T10:20:52Z  
    • sun.aus
    • ‏2013-12-10T22:23:55Z

    For rrdtool, it is not easy to import old data which is older than the existing data.

    Maybe you need,

    1. dump rrddata to file

    2. import old data first

    3. restore xml dump data to rrdtool

    Good idea!

    But, I have to apply it for 8 servers and for each server there are more than 100 rrd file :-)

    I will keep it for future changes in some rrd files.

    Thanks