Xymon Mailing List Archive search

Custom graph not showing up. Possible RRD problem?

11 messages in this thread

list Jon Hittner · Fri, 8 Dec 2006 10:10:30 -0500 ·
Hi-

I am trying to create a custom graph

On the client, in /opt/hobbit/client/ext I have a "inqGraph" that has this
in it:

#!/bin/sh

. /opt/bb/etc/bbdef.sh


$BB $BBDISP "status `hostname`.inqGraph green `date`

`cat /tmp/queues.txt`

"


exit 0


/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE

      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n


The inqGraph.rrd is being created, however it seems a little strange.


====================

inqGraph.rrd

====================

<!-- Round Robin Database Dump --><rrd>   <version> 0003 </version>

      <step> 300 </step> <!-- Seconds -->

      <lastupdate> 1165329250 </lastupdate> <!-- 2006-12-05 09:34:10 EST -->


      <ds>

            <name> DIHM11a </name>

            <type> GAUGE </type>

            <minimal_heartbeat> 600 </minimal_heartbeat>

            <min> 0.0000000000e+00 </min>

            <max> NaN </max>


            <!-- PDP Status -->

            <last_ds> UNKN </last_ds>

            <value> 0.0000000000e+00 </value>

            <unknown_sec> 0 </unknown_sec>

      </ds>


      <ds>

            <name> DRE11a </name>

            <type> GAUGE </type>

            <minimal_heartbeat> 600 </minimal_heartbeat>

            <min> 0.0000000000e+00 </min>

            <max> NaN </max>


            <!-- PDP Status -->

            <last_ds> UNKN </last_ds>

            <value> 2.2500000000e+03 </value>

            <unknown_sec> 0 </unknown_sec>

      </ds>


      <ds>

            <name> MIRR11b </name>

            <type> GAUGE </type>

            <minimal_heartbeat> 600 </minimal_heartbeat>

            <min> 0.0000000000e+00 </min>

            <max> NaN </max>


            <!-- PDP Status -->

            <last_ds> UNKN </last_ds>

            <value> 1.2500000000e+03 </value>

            <unknown_sec> 0 </unknown_sec>

      </ds>


<!-- Round Robin Archives --> <rra>

            <cf> AVERAGE </cf>

            <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->


            <params>

            <xff> 5.0000000000e-01 </xff>

            </params>

            <cdp_prep>

                  <ds>

                  <primary_value> 0.0000000000e+00 </primary_value>

                  <secondary_value> 0.0000000000e+00 </secondary_value>

                  <value> NaN </value>

                  <unknown_datapoints> 0 </unknown_datapoints>

                  </ds>

                  <ds>

                  <primary_value> 9.0000000000e+00 </primary_value>

                  <secondary_value> 9.0000000000e+00 </secondary_value>

                  <value> NaN </value>

                  <unknown_datapoints> 0 </unknown_datapoints>

                  </ds>

                  <ds>

                  <primary_value> 5.0000000000e+00 </primary_value>

                  <secondary_value> 5.0000000000e+00 </secondary_value>

                  <value> NaN </value>

                  <unknown_datapoints> 0 </unknown_datapoints>

                  </ds>

            </cdp_prep>

            <database>

                  <!-- 2006-12-03 09:35:00 EST / 1165156500 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

                  <!-- 2006-12-03 09:40:00 EST / 1165156800 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

                  <!-- 2006-12-03 09:45:00 EST / 1165157100 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

                  <!-- 2006-12-03 09:50:00 EST / 1165157400 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

                  ...........

            </database>

      </rra>

</rrd>


Within this <database> portion, is the fishy part. I suspect this is why my
graph isn't being graphed.. What's with all of these NaNs (Not a Number) ?
This rrd file is fresh, created 2 minutes ago. But within this <database>
portion I see stuff like:

                  <!-- 2006-02-14 19:00:00 EST / 1139961600 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

Where is this coming from? February 14th, 2006.


Full rrd file is available upon request, if it will help.


Any suggestions?

list Johann Eggers · Fri, 8 Dec 2006 16:17:01 +0100 ·
quoted from Jon Hittner
-----Original Message-----
From: Jon Hittner [mailto:user-419d78321edc@xymon.invalid]
Sent: Freitag, 8. Dezember 2006 16:11
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom graph not showing up. Possible RRD problem?

Hi-

I am trying to create a custom graph

On the client, in /opt/hobbit/client/ext I have a "inqGraph" that has
this
in it:

#!/bin/sh

. /opt/bb/etc/bbdef.sh


$BB $BBDISP "status `hostname`.inqGraph green `date`

`cat /tmp/queues.txt`

"


exit 0


/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE

      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n


The inqGraph.rrd is being created, however it seems a little strange.
Your DEF and your GPRINT lines differs:

e.g: DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE
     GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

Johann
list Jon Hittner · Fri, 8 Dec 2006 10:59:31 -0500 ·
True, but it doesn't matter
Didn't notice it was in there when the email was sent out - the variable
names are the same now (and have been for a while)... but still no graphs
quoted from Johann Eggers


-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid] Sent: Friday, December 08, 2006 10:17 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD problem?

-----Original Message-----
From: Jon Hittner [mailto:user-419d78321edc@xymon.invalid]
Sent: Freitag, 8. Dezember 2006 16:11
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom graph not showing up. Possible RRD problem?

Hi-

I am trying to create a custom graph

On the client, in /opt/hobbit/client/ext I have a "inqGraph" that has
this
in it:

#!/bin/sh

. /opt/bb/etc/bbdef.sh


$BB $BBDISP "status `hostname`.inqGraph green `date`

`cat /tmp/queues.txt`

"


exit 0


/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE

      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n


The inqGraph.rrd is being created, however it seems a little strange.
Your DEF and your GPRINT lines differs:

e.g: DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE
     GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

Johann
list Johann Eggers · Fri, 8 Dec 2006 17:06:07 +0100 ·
-----Original Message-----
From: Val Polyakov [mailto:user-f80f448eb4ab@xymon.invalid] On Behalf Of Jon
Hittner
Sent: Freitag, 8. Dezember 2006 17:00
quoted from Jon Hittner
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

True, but it doesn't matter
Didn't notice it was in there when the email was sent out - the
variable
names are the same now (and have been for a while)... but still no
graphs


-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid]
Sent: Friday, December 08, 2006 10:17 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

-----Original Message-----
From: Jon Hittner [mailto:user-419d78321edc@xymon.invalid]
Sent: Freitag, 8. Dezember 2006 16:11
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom graph not showing up. Possible RRD problem?

Hi-

I am trying to create a custom graph

On the client, in /opt/hobbit/client/ext I have a "inqGraph" that
has
this
in it:

#!/bin/sh

. /opt/bb/etc/bbdef.sh


$BB $BBDISP "status `hostname`.inqGraph green `date`

`cat /tmp/queues.txt`

"


exit 0


/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE
I don't know if the DS definitions are case-sensitive, Just a hint:
In your NCV-definition you don't use all upper case letters
quoted from Jon Hittner
      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n


The inqGraph.rrd is being created, however it seems a little
strange.
Your DEF and your GPRINT lines differs:

e.g: DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE
     GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

Johann

list Jon Hittner · Fri, 8 Dec 2006 11:14:11 -0500 ·
What do you mean?
Here's our ncv definition:
NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

I see all caps in there...

Please clarify what you mean ?
quoted from Johann Eggers

-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid] 
Sent: Friday, December 08, 2006 11:06 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD problem?

-----Original Message-----
From: Val Polyakov [mailto:user-f80f448eb4ab@xymon.invalid] On Behalf Of Jon
Hittner
Sent: Freitag, 8. Dezember 2006 17:00
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

True, but it doesn't matter
Didn't notice it was in there when the email was sent out - the
variable
names are the same now (and have been for a while)... but still no
graphs


-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid]
Sent: Friday, December 08, 2006 10:17 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

-----Original Message-----
From: Jon Hittner [mailto:user-419d78321edc@xymon.invalid]
Sent: Freitag, 8. Dezember 2006 16:11
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom graph not showing up. Possible RRD problem?

Hi-

I am trying to create a custom graph

On the client, in /opt/hobbit/client/ext I have a "inqGraph" that
has
this
in it:

#!/bin/sh

. /opt/bb/etc/bbdef.sh


$BB $BBDISP "status `hostname`.inqGraph green `date`

`cat /tmp/queues.txt`

"


exit 0


/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE
I don't know if the DS definitions are case-sensitive, Just a hint:
In your NCV-definition you don't use all upper case letters
      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n


The inqGraph.rrd is being created, however it seems a little
strange.
Your DEF and your GPRINT lines differs:

e.g: DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE
     GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

Johann

list Johann Eggers · Fri, 8 Dec 2006 17:22:12 +0100 ·
-----Original Message-----
From: Val Polyakov [mailto:user-f80f448eb4ab@xymon.invalid] On Behalf Of Jon
Hittner
Sent: Freitag, 8. Dezember 2006 17:14
quoted from Jon Hittner
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

What do you mean?
Here's our ncv definition:
NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"
                    --^          --^           --^
                      
I see all caps in there...
And these are your DEF's:

DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE
                                --^

DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE
                              --^

DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE
quoted from Jon Hittner
                                --^
Please clarify what you mean ?

-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid]
Sent: Friday, December 08, 2006 11:06 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

-----Original Message-----
From: Val Polyakov [mailto:user-f80f448eb4ab@xymon.invalid] On Behalf Of Jon
Hittner
Sent: Freitag, 8. Dezember 2006 17:00
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

True, but it doesn't matter
Didn't notice it was in there when the email was sent out - the
variable
names are the same now (and have been for a while)... but still no
graphs


-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid]
Sent: Friday, December 08, 2006 10:17 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

-----Original Message-----
From: Jon Hittner [mailto:user-419d78321edc@xymon.invalid]
Sent: Freitag, 8. Dezember 2006 16:11
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom graph not showing up. Possible RRD
problem?

Hi-

I am trying to create a custom graph

On the client, in /opt/hobbit/client/ext I have a "inqGraph" that
has
this
in it:

#!/bin/sh

. /opt/bb/etc/bbdef.sh


$BB $BBDISP "status `hostname`.inqGraph green `date`

`cat /tmp/queues.txt`

"


exit 0


/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE
I don't know if the DS definitions are case-sensitive, Just a hint:
In your NCV-definition you don't use all upper case letters
      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n


The inqGraph.rrd is being created, however it seems a little
strange.
Your DEF and your GPRINT lines differs:

e.g: DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE
     GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

Johann

list Val Polyakov · Fri, 8 Dec 2006 11:29:04 -0500 ·
Excellent catch!

But unfortunately, still doesn't work 
quoted from Johann Eggers

-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid] 
Sent: Friday, December 08, 2006 11:22 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD problem?

-----Original Message-----
From: Val Polyakov [mailto:user-f80f448eb4ab@xymon.invalid] On Behalf Of Jon
Hittner
Sent: Freitag, 8. Dezember 2006 17:14
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

What do you mean?
Here's our ncv definition:
NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"
                    --^          --^           --^
                      
I see all caps in there...
And these are your DEF's:

DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE
                                --^

DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE
                              --^

DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE
                                --^
Please clarify what you mean ?

-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid]
Sent: Friday, December 08, 2006 11:06 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

-----Original Message-----
From: Val Polyakov [mailto:user-f80f448eb4ab@xymon.invalid] On Behalf Of Jon
Hittner
Sent: Freitag, 8. Dezember 2006 17:00
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

True, but it doesn't matter
Didn't notice it was in there when the email was sent out - the
variable
names are the same now (and have been for a while)... but still no
graphs


-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid]
Sent: Friday, December 08, 2006 10:17 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

-----Original Message-----
From: Jon Hittner [mailto:user-419d78321edc@xymon.invalid]
Sent: Freitag, 8. Dezember 2006 16:11
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom graph not showing up. Possible RRD
problem?

Hi-

I am trying to create a custom graph

On the client, in /opt/hobbit/client/ext I have a "inqGraph" that
has
this
in it:

#!/bin/sh

. /opt/bb/etc/bbdef.sh


$BB $BBDISP "status `hostname`.inqGraph green `date`

`cat /tmp/queues.txt`

"


exit 0


/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE
I don't know if the DS definitions are case-sensitive, Just a hint:
In your NCV-definition you don't use all upper case letters
      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n


The inqGraph.rrd is being created, however it seems a little
strange.
Your DEF and your GPRINT lines differs:

e.g: DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE
     GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

Johann

list Johann Eggers · Fri, 8 Dec 2006 17:39:31 +0100 ·
quoted from Val Polyakov
-----Original Message-----
From: Val Polyakov [mailto:user-f80f448eb4ab@xymon.invalid]
Sent: Freitag, 8. Dezember 2006 17:29
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

Excellent catch!

But unfortunately, still doesn't work
/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE

      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)
                                                  ---^

          What does this %s mean?
quoted from Val Polyakov
      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n

list Jon Hittner · Fri, 8 Dec 2006 11:45:02 -0500 ·
Honestly - no idea. I got this straight out of the howtograph.html :)

But I've already tried just removing all the GPRINT lines (since they don't
matter anyhow - they are the legend, from what I understand) and it still
didn't work.
quoted from Johann Eggers

-----Original Message-----
From: Johann Eggers [mailto:user-769b09132207@xymon.invalid] 
Sent: Friday, December 08, 2006 11:40 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD problem?

-----Original Message-----
From: Val Polyakov [mailto:user-f80f448eb4ab@xymon.invalid]
Sent: Freitag, 8. Dezember 2006 17:29
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Custom graph not showing up. Possible RRD
problem?

Excellent catch!

But unfortunately, still doesn't work
/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE

      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)
                                                  ---^
          What does this %s mean?
      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n

list Thomas Pedersen · Sat, 09 Dec 2006 16:42:30 +0100 ·
Last time I had this problem I did 2 tings:

1) was to change

NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

to 

NCV_inqGraph="*:GAUGE"

2) was to put 


TEST2RRD="......,inqGraph=ncv"

not as the last item

TEST2RRD="......,inqGraph=ncv,files"

or something like this.

Don't know which was the tricker to make the graph happen, but it did.
quoted from Jon Hittner


Jon Hittner wrote:
Hi-

I am trying to create a custom graph

On the client, in /opt/hobbit/client/ext I have a "inqGraph" that has this
in it:

#!/bin/sh

. /opt/bb/etc/bbdef.sh


$BB $BBDISP "status `hostname`.inqGraph green `date`

`cat /tmp/queues.txt`

"


exit 0


/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE

      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n


The inqGraph.rrd is being created, however it seems a little strange.


====================

inqGraph.rrd

====================

<!-- Round Robin Database Dump --><rrd>   <version> 0003 </version>

      <step> 300 </step> <!-- Seconds -->

      <lastupdate> 1165329250 </lastupdate> <!-- 2006-12-05 09:34:10 EST -->


      <ds>

            <name> DIHM11a </name>

            <type> GAUGE </type>

            <minimal_heartbeat> 600 </minimal_heartbeat>

            <min> 0.0000000000e+00 </min>

            <max> NaN </max>


            <!-- PDP Status -->

            <last_ds> UNKN </last_ds>

            <value> 0.0000000000e+00 </value>

            <unknown_sec> 0 </unknown_sec>

      </ds>


      <ds>

            <name> DRE11a </name>

            <type> GAUGE </type>

            <minimal_heartbeat> 600 </minimal_heartbeat>

            <min> 0.0000000000e+00 </min>

            <max> NaN </max>


            <!-- PDP Status -->

            <last_ds> UNKN </last_ds>

            <value> 2.2500000000e+03 </value>

            <unknown_sec> 0 </unknown_sec>

      </ds>


      <ds>

            <name> MIRR11b </name>

            <type> GAUGE </type>

            <minimal_heartbeat> 600 </minimal_heartbeat>

            <min> 0.0000000000e+00 </min>

            <max> NaN </max>


            <!-- PDP Status -->

            <last_ds> UNKN </last_ds>

            <value> 1.2500000000e+03 </value>

            <unknown_sec> 0 </unknown_sec>

      </ds>


<!-- Round Robin Archives --> <rra>

            <cf> AVERAGE </cf>

            <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->


            <params>

            <xff> 5.0000000000e-01 </xff>

            </params>

            <cdp_prep>

                  <ds>

                  <primary_value> 0.0000000000e+00 </primary_value>

                  <secondary_value> 0.0000000000e+00 </secondary_value>

                  <value> NaN </value>

                  <unknown_datapoints> 0 </unknown_datapoints>

                  </ds>

                  <ds>

                  <primary_value> 9.0000000000e+00 </primary_value>

                  <secondary_value> 9.0000000000e+00 </secondary_value>

                  <value> NaN </value>

                  <unknown_datapoints> 0 </unknown_datapoints>

                  </ds>

                  <ds>

                  <primary_value> 5.0000000000e+00 </primary_value>

                  <secondary_value> 5.0000000000e+00 </secondary_value>

                  <value> NaN </value>

                  <unknown_datapoints> 0 </unknown_datapoints>

                  </ds>

            </cdp_prep>

            <database>

                  <!-- 2006-12-03 09:35:00 EST / 1165156500 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

                  <!-- 2006-12-03 09:40:00 EST / 1165156800 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

                  <!-- 2006-12-03 09:45:00 EST / 1165157100 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

                  <!-- 2006-12-03 09:50:00 EST / 1165157400 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

                  ...........

            </database>

      </rra>

</rrd>


Within this <database> portion, is the fishy part. I suspect this is why my
graph isn't being graphed.. What's with all of these NaNs (Not a Number) ?
This rrd file is fresh, created 2 minutes ago. But within this <database>
portion I see stuff like:

                  <!-- 2006-02-14 19:00:00 EST / 1139961600 --> <row><v> NaN
</v><v> NaN </v><v> NaN </v></row>

Where is this coming from? February 14th, 2006.


Full rrd file is available upon request, if it will help.


Any suggestions?

list Dan Vande More · Sat, 9 Dec 2006 09:50:18 -0600 ·
One of the first rules of troubleshooting, and the more scientific method
type approach is to reduce your variables.

First, have a small script returning values for one data point. Set up this
one datapoint using ncv, and one graph for that datapoint. Get it to work.
Once it does, add another and another until you break it. Compare what was
working and what's not working, and you'll find your issue.

All things considered, it's a waste of time to troubleshooting the overly
complex problem by bruteforcing it, when you could easily setup an process
with control variables and experimental variables.
quoted from Thomas Pedersen

On 12/9/06, Thomas <user-97316fb2dd2a@xymon.invalid> wrote:
Last time I had this problem I did 2 tings:

1) was to change

NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

to

NCV_inqGraph="*:GAUGE"

2) was to put


TEST2RRD="......,inqGraph=ncv"

not as the last item

TEST2RRD="......,inqGraph=ncv,files"

or something like this.

Don't know which was the tricker to make the graph happen, but it did.


Jon Hittner wrote:
Hi-

I am trying to create a custom graph

On the client, in /opt/hobbit/client/ext I have a "inqGraph" that has
this
in it:

#!/bin/sh

. /opt/bb/etc/bbdef.sh


$BB $BBDISP "status `hostname`.inqGraph green `date`

`cat /tmp/queues.txt`

"


exit 0


/tmp/queues has this in it:

DIHM11a : 0

DRE11a : 9

MIRR11b : 5


===================

hobbitserver.cfg

===================

TEST2RRD="......,inqGraph=ncv"


NCV_inqGraph="DIHM11a:GAUGE,DRE11a:GAUGE,MIRR11b:GAUGE"

GRAPHS="......,inqGraph"


===================

hobbitgraph.cfg

===================

[inqGraph]

      Title Queue info

      YAXIS Files

      DEF:DIHM11Ajon=inqGraph.rrd:DIHM11A:AVERAGE

      DEF:DRE11ajon=inqGraph.rrd:DRE11A:AVERAGE

      DEF:MIRR11bjon=inqGraph.rrd:MIRR11B:AVERAGE

      LINE2:DIHM11ajon#00CCCC:DIHM1_1a

      LINE2:DRE11ajon#FF0000:DRE1_1a

      LINE2:MIRR11bjon#FF00CC:MIRR1_1b

      COMMENT:\n

      GPRINT:DIHM11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DIHM11a:MAX: \: %5.1lf%s (max)

      GPRINT:DIHM11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:DRE11a:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:DRE11a:MAX: \: %5.1lf%s (max)

      GPRINT:DRE11a:MIN: \: %5.1lf%s (avg)\n

      GPRINT:MIRR11b:LAST:DIHM1_1a \: %5.1lf%s (cur)

      GPRINT:MIRR11b:MAX: \: %5.1lf%s (max)

      GPRINT:MIRR11b:MIN: \: %5.1lf%s (avg)\n


The inqGraph.rrd is being created, however it seems a little strange.


====================

inqGraph.rrd

====================

<!-- Round Robin Database Dump --><rrd>   <version> 0003 </version>

      <step> 300 </step> <!-- Seconds -->

      <lastupdate> 1165329250 </lastupdate> <!-- 2006-12-05 09:34:10 EST
-->

      <ds>

            <name> DIHM11a </name>

            <type> GAUGE </type>

            <minimal_heartbeat> 600 </minimal_heartbeat>

            <min> 0.0000000000e+00 </min>

            <max> NaN </max>


            <!-- PDP Status -->

            <last_ds> UNKN </last_ds>

            <value> 0.0000000000e+00 </value>

            <unknown_sec> 0 </unknown_sec>

      </ds>


      <ds>

            <name> DRE11a </name>

            <type> GAUGE </type>

            <minimal_heartbeat> 600 </minimal_heartbeat>

            <min> 0.0000000000e+00 </min>

            <max> NaN </max>


            <!-- PDP Status -->

            <last_ds> UNKN </last_ds>

            <value> 2.2500000000e+03 </value>

            <unknown_sec> 0 </unknown_sec>

      </ds>


      <ds>

            <name> MIRR11b </name>

            <type> GAUGE </type>

            <minimal_heartbeat> 600 </minimal_heartbeat>

            <min> 0.0000000000e+00 </min>

            <max> NaN </max>


            <!-- PDP Status -->

            <last_ds> UNKN </last_ds>

            <value> 1.2500000000e+03 </value>

            <unknown_sec> 0 </unknown_sec>

      </ds>


<!-- Round Robin Archives --> <rra>

            <cf> AVERAGE </cf>

            <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->


            <params>

            <xff> 5.0000000000e-01 </xff>

            </params>

            <cdp_prep>

                  <ds>

                  <primary_value> 0.0000000000e+00 </primary_value>

                  <secondary_value> 0.0000000000e+00 </secondary_value>

                  <value> NaN </value>

                  <unknown_datapoints> 0 </unknown_datapoints>

                  </ds>

                  <ds>

                  <primary_value> 9.0000000000e+00 </primary_value>

                  <secondary_value> 9.0000000000e+00 </secondary_value>

                  <value> NaN </value>

                  <unknown_datapoints> 0 </unknown_datapoints>

                  </ds>

                  <ds>

                  <primary_value> 5.0000000000e+00 </primary_value>

                  <secondary_value> 5.0000000000e+00 </secondary_value>

                  <value> NaN </value>

                  <unknown_datapoints> 0 </unknown_datapoints>

                  </ds>

            </cdp_prep>

            <database>

                  <!-- 2006-12-03 09:35:00 EST / 1165156500 --> <row><v>
NaN
</v><v> NaN </v><v> NaN </v></row>

                  <!-- 2006-12-03 09:40:00 EST / 1165156800 --> <row><v>
NaN
</v><v> NaN </v><v> NaN </v></row>

                  <!-- 2006-12-03 09:45:00 EST / 1165157100 --> <row><v>
NaN
</v><v> NaN </v><v> NaN </v></row>

                  <!-- 2006-12-03 09:50:00 EST / 1165157400 --> <row><v>
NaN
</v><v> NaN </v><v> NaN </v></row>

                  ...........

            </database>

      </rra>

</rrd>


Within this <database> portion, is the fishy part. I suspect this is why
my
graph isn't being graphed.. What's with all of these NaNs (Not a Number)
?
This rrd file is fresh, created 2 minutes ago. But within this
<database>
portion I see stuff like:

                  <!-- 2006-02-14 19:00:00 EST / 1139961600 --> <row><v>
NaN
</v><v> NaN </v><v> NaN </v></row>

Where is this coming from? February 14th, 2006.


Full rrd file is available upon request, if it will help.


Any suggestions?