Welcome, Guest. Please login or register.

Author Topic: Re: NeDi 1.0.7 bug  (Read 16099 times)

raider82

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: NeDi 1.0.7 bug
« Reply #15 on: February 22, 2012, 02:36:35 PM »
Make sure you use the same rrdstep for the discovery intervall, which were used upon creating the graphs. You can verify this with rrdtool dump graph.rrd or simply delete and have nedi recreate them.
All configs now have the same rrdstep value of 86400. After deleting the rrds and new discovery today, all graphs are missing again. However, I still see the figures when the mouse pointer is over the white canvas.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2691
    • View Profile
    • NeDi
Re: NeDi 1.0.7 bug
« Reply #16 on: February 22, 2012, 07:27:42 PM »
And you discover once a day? Can you post a screenshot of a graph?

To all, unfortunately there is also a bug in libmon.pm, which lets moni.pl get slower and slower, if dependencies are used. I've moved this function into this lib without making it explicitly global:

32,34c32,34
<       %srcna = ();
<       %mon   = ();
<       %usr   = ();
---
>       %srcna     = ();
>       %main::mon = ();
>       %main::usr = ();
« Last Edit: February 22, 2012, 09:09:32 PM by rickli »
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

raider82

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: NeDi 1.0.7 bug
« Reply #17 on: February 23, 2012, 10:05:34 AM »
And you discover once a day? Can you post a screenshot of a graph?
Yes, I discover once a day.
Here is one example.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2691
    • View Profile
    • NeDi
Re: NeDi 1.0.7 bug
« Reply #18 on: February 23, 2012, 08:31:33 PM »
What do you see after a few days with:

rrdtool dump /var/nedi/rrd/charon/system.rrd 

Do you get any values like this?


                        <!-- 2012-02-24 17:30:00 CET / 1330101000 --> <row><v> 6.9993472333e-01 </v><v> 1.5679446455e+08 </v><v> 0.0000000000e+00 </v><v> 0.0000000000e+00 </v></row>
                        <!-- 2012-02-24 18:20:00 CET / 1330104000 --> <row><v> 2.0156523100e-01 </v><v> 1.5679488000e+08 </v><v> 0.0000000000e+00 </v><v> 0.0000000000e+00 </v></row>
                        <!-- 2012-02-24 19:10:00 CET / 1330107000 --> <row><v> 3.0007798367e-01 </v><v> 1.5679324725e+08 </v><v> 0.0000000000e+00 </v><v> 0.0000000000e+00 </v></row>
                        <!-- 2012-02-24 20:00:00 CET / 1330110000 --> <row><v> 6.9851405200e-01 </v><v> 1.5679282594e+08 </v><v> 0.0000000000e+00 </v><v> 0.0000000000e+00 </v></row>
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2691
    • View Profile
    • NeDi
Re: NeDi 1.0.7 bug
« Reply #19 on: February 23, 2012, 11:02:35 PM »
FYI, I've added a patch to fix those bugs to the download section.
With this out of the way, I can focus on 1oh8 now...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

piet

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: NeDi 1.0.7 bug
« Reply #20 on: February 24, 2012, 06:18:58 PM »
Have the same problem with graphs.

rrdtool dump /var/nedi/rrd(devicename/system.rrd shows the following values:
Quote
                        <!-- 2012-02-24 05:00:00 CET / 1330056000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v><v> NaN </v></row>
                        <!-- 2012-02-24 10:00:00 CET / 1330074000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v><v> NaN </v></row>
                        <!-- 2012-02-24 15:00:00 CET / 1330092000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v><v> NaN </v></row>

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2691
    • View Profile
    • NeDi
Re: NeDi 1.0.7 bug
« Reply #21 on: February 24, 2012, 07:30:23 PM »
Is there an actual number in the DB? I have several installations for testing and all seem to create graphs. BTW I forgot to fix the error counters in the patch. I've updated it and if you download and apply it again (answer any questions with n), it should work...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

raider82

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: NeDi 1.0.7 bug
« Reply #22 on: February 27, 2012, 02:34:08 PM »
I have several installations for testing and all seem to create graphs.
Mine does too, but:
  • no graphs for the first few days
  • graphs disappearing after some time until re-discovery
I need to run your command before discovery tomorrow in order to deliver the required feedback. After discovery, it does not make sense for a certain time, since graphs are visible then.

raider82

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: NeDi 1.0.7 bug
« Reply #23 on: February 28, 2012, 09:14:34 AM »
What do you see after a few days with:

rrdtool dump /var/nedi/rrd/charon/system.rrd 
I see:
                        <!-- 2005-02-16 01:00:00 CET / 1108512000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v><v> NaN </v></row>
                        <!-- 2005-02-26 01:00:00 CET / 1109376000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v><v> NaN </v></row>
...
                        <!-- 2012-01-21 01:00:00 CET / 1327104000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v><v> NaN </v></row>
                        <!-- 2012-01-31 01:00:00 CET / 1327968000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v><v> NaN </v></row>
                        <!-- 2012-02-10 01:00:00 CET / 1328832000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v><v> NaN </v></row>
                        <!-- 2012-02-20 01:00:00 CET / 1329696000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v><v> NaN </v></row>
This system has been installed in 2012. It does not make any difference when I run this comman.
Btw. Today at 8, all graphs were white again. The first locations are now discovered by the cron job and show their graphs.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2691
    • View Profile
    • NeDi
Re: NeDi 1.0.7 bug
« Reply #24 on: February 28, 2012, 05:09:36 PM »
Are the devices discovered in the same order? If the interval is irregular RRD won't accept the update as valid number (it's +- 50% though). If -v output shows actual numbers I'm a bit at a loss as to why RRDs are not updated correctly...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

raider82

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: NeDi 1.0.7 bug
« Reply #25 on: February 29, 2012, 11:15:18 AM »
Are the devices discovered in the same order?
Yes. The order within the seedlist is constant. And the order within the cron job is constant.

If -v output shows actual numbers I'm a bit at a loss as to why RRDs are not updated correctly...
The odd thing is that after the discovery, the graphs show and after some times they are lost again. And even if the graphic is lost, there is still the latest value in the mouse-over "popup". The output of the command  you mentioned however stays static.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2691
    • View Profile
    • NeDi
Re: NeDi 1.0.7 bug
« Reply #26 on: February 29, 2012, 06:22:45 PM »
Do you have several discoveries in parallel overwriting the same RRDs?
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

raider82

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: NeDi 1.0.7 bug
« Reply #27 on: March 12, 2012, 08:39:13 AM »
Do you have several discoveries in parallel overwriting the same RRDs?
No, all jobs run in sequence except one for a special location that is running every hour. However, I set this up later - I already had this effect before.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2691
    • View Profile
    • NeDi
Re: NeDi 1.0.7 bug
« Reply #28 on: March 12, 2012, 08:06:36 PM »
Ah, this changes everything. Are you using the same nedi.conf for the one runnnig every hour?

However I suspect the hourly run to mess up your graphs. Try running it with -So to skip topgraphs...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

raider82

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: NeDi 1.0.7 bug
« Reply #29 on: March 15, 2012, 01:34:58 PM »
Ah, this changes everything. Are you using the same nedi.conf for the one runnnig every hour?
No. I got an individual nedi.<location>.conf for any job.

However I suspect the hourly run to mess up your graphs. Try running it with -So to skip topgraphs...
Thanks. I will try this and report about the results.