2
1
0
How can we always store NMIS csv graph value in 5 minute interval? If we export a graph for an interface for the last 2 - 3 days from today, it stores values in 5 minutes interval which is fine and if we would like to pull a graph for a previous month the csv appears to be compressed in 2 hours value, which is not supportive when calculating percentile values. See few lines below from a same interface: "ifInOctets ifOperStatus ifOutOctets time date" "58440.7817054422 100 35556.9663639254 1431480000 13-May-2015 09:20:00" "73622.9126653538 99.9337483471074 41449.96107868 1431480300 13-May-2015 09:25:00" "108461.962583472 47678.2448347776 1431480600 13-May-2015 09:30:00" "180234.208901897 99.967989958159 52648.56184694 1431480900 13-May-2015 09:35:00" "ifInOctets ifOperStatus ifOutOctets time date" "567.541765675619 100 695.922317539576 1427824800 01-Apr-2015 02:00:00" "566.95895035592 100 708.123878953628 1427832000 01-Apr-2015 04:00:00" "566.353320302707 100 713.026145541161 1427839200 01-Apr-2015 06:00:00" "641.283954374474 100 859.222066816904 1427846400 01-Apr-2015 08:00:00"
    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      NMIS collects all performance in 5 minute intervals by default, but doesn't keep the raw/most precise data forever - disks are big but not infinite.

      The summarisation you are complaining about is a feature of RRDtool, the round robin database system that nmis uses: it guarantees that the rrd files always stay at the same size.

      naturally you can adjust how long you'd like NMIS to keep the precise data, and that is documented extensively on the wiki page "Amount of Performance Data Storage NMIS8 Stores".

       

      1. Ashar Burney

        Hi Alex

        Thanks for your response. We changed the file content as per your link under Common-database.nmis, however It didnt make any difference. Its been over 2 weeks since we changed the values but if I export a report which is over 8 days it's compressing to 30 min. rather than expected 5 min intervals.

        Do we have to change any thing else or restart a service!

        That's how our Interface section looks like under /usr/local/nmis8/models/Common-database.nmis

        'interface' => {

        'rows_day' => '9216',
        'rows_month' => '2268',
        'rows_week' => '4608',
        'rows_year' => '1890',
        'step_day' => '1',
        'step_month' => '24',
        'step_week' => '6',
        'step_year' => '288'

         

        Keep (days)
        Summarise (minutes)
        Model Entry
        Default Value
        New Value
        32 days5 minutesrows_day23049216
        96 days30 minutesrows_week15364608

         

        Thanks

      CommentAdd your comment...
    2.  
      1
      0
      -1

      the rrd size change does not apply to existing files. it is possible but not trivial to convince rrdtool to apply them to already stored data; this is discussed in detail here: See the section on Migration of existing data to a new RRD size scheme.

        CommentAdd your comment...