Xymon Mailing List Archive search

Custom graphs in Xymon

12 messages in this thread

list Cami · Fri, 07 May 2010 16:50:52 +0200 ·
Hi..

I'm having an issue with creating a system graph in Xymon.

The script outputs the following on the page:


      Fri May 7 16:42:19 SAST 2010

edge01 : 5
edge02 : 7
edge03 : 2
edge04 : 6


hobbitgraph ncv:fmsconns	 	  Zoom graph 


Its a script to monitor concurrent connections so its value goes up and down.

In hobbitserver.cfg, i have the following:

TEST2RRD="cpu=la,cpu2=la[......],fmsconns=ncv"
GRAPHS="la,disk[...........],fmsconns"
NCV_fmsconns="edge01:GAUGE,edge02:GAUGE"


in hobbitgraph.cfg
[fmsconns]
        TITLE Fmsconns info
        YAXIS Connections
        DEF:pct=fmsconns.rrd:util:AVERAGE
        LINE2:pct#00CC00:NParts
        GPRINT:pct:LAST: \: %3.1lf (cur)
        GPRINT:pct:MAX: \: %3.1lf (max)
        GPRINT:pct:MIN: \: %3.1lf (min)
        GPRINT:pct:AVERAGE: \: %3.1lf (avg)\n

On the 

I used the howto @ http://www.hswn.dk/hobbit/help/howtograph.html as a guideline
but its clear i'm lacking some understanding. I'm guessing the contents in hobbitgraph.cfg
is off as i'm doing an rrdtool dump and the output looks ok?


        <lastupdate> 1273230835 </lastupdate> <!-- 2010-05-07 13:13:55 SAST -->

        <ds>
                <name> jhbedge01optinetnet </name>
                <type> DERIVE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 4 </last_ds>
                <value> 0.0000000000e+00 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

        <ds>
                <name> jhbedge02optinetnet </name>
                <type> DERIVE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 3 </last_ds>
                <value> 7.9207920792e-02 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

Anyone have any ideas/tips?

Regards,
Cami
list Jerald Sheets · Fri, 7 May 2010 11:18:49 -0400 ·
The examples you pasted in look completely correct to me.  However, just to
be fully with you, I'd like to ask (just to be thorough, not a jerk)
regarding the term "The script outputs the following on the page:"

Just to cross all the t's and dot all the i's:

1.  you have a script running on a client, launched from clientlaunch.cfg
and gathering data remotely.
2.  It is being sent back to the server and properly making it to the page,
showing up in it's own column.
3.  The script is also sending/setting all appropriate BB environment
variables:

(and example from one of my scripts)

# Xymon Variables
$ENV{BBPROG}    = "library.pl";
my($TESTNAME)   = "library";
my($BBHOME)     = $ENV{BBHOME};
my($BB)         = $ENV{BB};
my($BBDISP)     = $ENV{BBDISP};
my($BBVAR)      = $ENV{BBVAR};


4.   You are also sending all approprate red/green/yellow/clear, etc.
messages along back to the server

Note that this may not affect your display, but is just good "gathering"
practice in pulling data back from remote hosts.  Even if you're only
setting a "clear", it is good to do.

Unless I'm just missing something in the paste-in you're showing, I'm not
seeing any overt problems.  How about the logs?  Anything there? Like maybe
permissioning problems or some such?

/var/log/xymon/rrd-status.log
/var/log/rrd-data.log


(or wherever your installation's logs are) ?

---
Jerald M. Sheets jr.
quoted from Cami


On Fri, May 7, 2010 at 10:50 AM, Cami <user-1062473dd2aa@xymon.invalid> wrote:
Hi..

I'm having an issue with creating a system graph in Xymon.

The script outputs the following on the page:


    Fri May 7 16:42:19 SAST 2010

edge01 : 5
edge02 : 7
edge03 : 2
edge04 : 6


hobbitgraph ncv:fmsconns                  Zoom graph

Its a script to monitor concurrent connections so its value goes up and
down.

In hobbitserver.cfg, i have the following:

TEST2RRD="cpu=la,cpu2=la[......],fmsconns=ncv"
GRAPHS="la,disk[...........],fmsconns"
NCV_fmsconns="edge01:GAUGE,edge02:GAUGE"


in hobbitgraph.cfg
[fmsconns]
      TITLE Fmsconns info
      YAXIS Connections
      DEF:pct=fmsconns.rrd:util:AVERAGE
      LINE2:pct#00CC00:NParts
      GPRINT:pct:LAST: \: %3.1lf (cur)
      GPRINT:pct:MAX: \: %3.1lf (max)
      GPRINT:pct:MIN: \: %3.1lf (min)
      GPRINT:pct:AVERAGE: \: %3.1lf (avg)\n

On the
I used the howto @ http://www.hswn.dk/hobbit/help/howtograph.html as a
guideline
but its clear i'm lacking some understanding. I'm guessing the contents in
hobbitgraph.cfg
is off as i'm doing an rrdtool dump and the output looks ok?


      <lastupdate> 1273230835 </lastupdate> <!-- 2010-05-07 13:13:55 SAST
-->

      <ds>
              <name> jhbedge01optinetnet </name>
              <type> DERIVE </type>
              <minimal_heartbeat> 600 </minimal_heartbeat>
              <min> NaN </min>
              <max> NaN </max>

              <!-- PDP Status -->
              <last_ds> 4 </last_ds>
              <value> 0.0000000000e+00 </value>
              <unknown_sec> 0 </unknown_sec>
      </ds>

      <ds>
              <name> jhbedge02optinetnet </name>
              <type> DERIVE </type>
              <minimal_heartbeat> 600 </minimal_heartbeat>
              <min> NaN </min>
              <max> NaN </max>

              <!-- PDP Status -->
              <last_ds> 3 </last_ds>
              <value> 7.9207920792e-02 </value>
              <unknown_sec> 0 </unknown_sec>
      </ds>

Anyone have any ideas/tips?

Regards,
Cami

list Bruce White · Fri, 7 May 2010 17:13:44 -0500 ·
Notice the name of the data field in your rrd file:

jhbedge02optinetnet

It does not match the edge02 in your other definitions.   Not sure why
its assigning that name, but that looks to me to be the problem.

    .....Bruce


 
 Bruce White
 Senior Enterprise Systems Engineer | Phone: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX | user-58f975e8bf9d@xymon.invalid | http://www.fellowes.com/
 
 
 
Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
quoted from Cami
 
-----Original Message-----
From: Cami [mailto:user-1062473dd2aa@xymon.invalid] 
Sent: Friday, May 07, 2010 9:51 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom graphs in Xymon

Hi..

I'm having an issue with creating a system graph in Xymon.

The script outputs the following on the page:


      Fri May 7 16:42:19 SAST 2010

edge01 : 5
edge02 : 7
edge03 : 2
edge04 : 6


hobbitgraph ncv:fmsconns	 	  Zoom graph 


Its a script to monitor concurrent connections so its value goes up and
down.

In hobbitserver.cfg, i have the following:

TEST2RRD="cpu=la,cpu2=la[......],fmsconns=ncv"
GRAPHS="la,disk[...........],fmsconns"
NCV_fmsconns="edge01:GAUGE,edge02:GAUGE"


in hobbitgraph.cfg
[fmsconns]
        TITLE Fmsconns info
        YAXIS Connections
        DEF:pct=fmsconns.rrd:util:AVERAGE
        LINE2:pct#00CC00:NParts
        GPRINT:pct:LAST: \: %3.1lf (cur)
        GPRINT:pct:MAX: \: %3.1lf (max)
        GPRINT:pct:MIN: \: %3.1lf (min)
        GPRINT:pct:AVERAGE: \: %3.1lf (avg)\n

On the 

I used the howto @ http://www.hswn.dk/hobbit/help/howtograph.html as a
guideline
but its clear i'm lacking some understanding. I'm guessing the contents
in hobbitgraph.cfg
is off as i'm doing an rrdtool dump and the output looks ok?


        <lastupdate> 1273230835 </lastupdate> <!-- 2010-05-07 13:13:55
SAST -->

        <ds>
                <name> jhbedge01optinetnet </name>
                <type> DERIVE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 4 </last_ds>
                <value> 0.0000000000e+00 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

        <ds>
                <name> jhbedge02optinetnet </name>
                <type> DERIVE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 3 </last_ds>
                <value> 7.9207920792e-02 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

Anyone have any ideas/tips?

Regards,
Cami
list Jerald Sheets · Fri, 7 May 2010 19:10:23 -0400 ·
I can't believe I missed that LOL!

Good catch, Bruce!

Jerald Sheets
Sent from my iPad
Please disregard spelling/grammar errors
quoted from Bruce White

On May 7, 2010, at 6:13 PM, "White, Bruce" <user-58f975e8bf9d@xymon.invalid> wrote:
Notice the name of the data field in your rrd file:

jhbedge02optinetnet

It does not match the edge02 in your other definitions.   Not sure why
its assigning that name, but that looks to me to be the problem.

   .....Bruce


  Bruce White
 Senior Enterprise Systems Engineer | Phone: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX | user-58f975e8bf9d@xymon.invalid | http://www.fellowes.com/
   Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
 -----Original Message-----
From: Cami [mailto:user-1062473dd2aa@xymon.invalid]
Sent: Friday, May 07, 2010 9:51 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom graphs in Xymon

Hi..

I'm having an issue with creating a system graph in Xymon.

The script outputs the following on the page:


     Fri May 7 16:42:19 SAST 2010

edge01 : 5
edge02 : 7
edge03 : 2
edge04 : 6


hobbitgraph ncv:fmsconns	 	  Zoom graph


Its a script to monitor concurrent connections so its value goes up and
down.

In hobbitserver.cfg, i have the following:

TEST2RRD="cpu=la,cpu2=la[......],fmsconns=ncv"
GRAPHS="la,disk[...........],fmsconns"
NCV_fmsconns="edge01:GAUGE,edge02:GAUGE"


in hobbitgraph.cfg
[fmsconns]
       TITLE Fmsconns info
       YAXIS Connections
       DEF:pct=fmsconns.rrd:util:AVERAGE
       LINE2:pct#00CC00:NParts
       GPRINT:pct:LAST: \: %3.1lf (cur)
       GPRINT:pct:MAX: \: %3.1lf (max)
       GPRINT:pct:MIN: \: %3.1lf (min)
       GPRINT:pct:AVERAGE: \: %3.1lf (avg)\n

On the

I used the howto @ http://www.hswn.dk/hobbit/help/howtograph.html as a
guideline
but its clear i'm lacking some understanding. I'm guessing the contents
in hobbitgraph.cfg
is off as i'm doing an rrdtool dump and the output looks ok?


       <lastupdate> 1273230835 </lastupdate> <!-- 2010-05-07 13:13:55
SAST -->

       <ds>
               <name> jhbedge01optinetnet </name>
               <type> DERIVE </type>
               <minimal_heartbeat> 600 </minimal_heartbeat>
               <min> NaN </min>
               <max> NaN </max>

               <!-- PDP Status -->
               <last_ds> 4 </last_ds>
               <value> 0.0000000000e+00 </value>
               <unknown_sec> 0 </unknown_sec>
       </ds>

       <ds>
               <name> jhbedge02optinetnet </name>
               <type> DERIVE </type>
               <minimal_heartbeat> 600 </minimal_heartbeat>
               <min> NaN </min>
               <max> NaN </max>

               <!-- PDP Status -->
               <last_ds> 3 </last_ds>
               <value> 7.9207920792e-02 </value>
               <unknown_sec> 0 </unknown_sec>
       </ds>

Anyone have any ideas/tips?

Regards,
Cami

list Cami · Mon, 10 May 2010 08:16:40 +0200 ·
Hi Brute,

I've removed the old rrd file:

#  rrdtool dump data/rrd/bb.24.com/fmsconns.rrd

        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1273471749 </lastupdate> <!-- 2010-05-10 08:09:09 
SAST -->

        <ds>
                <name> edge01 </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 2 </last_ds>
                <value> 4.9800000000e+02 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

        <ds>
                <name> edge02 </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 1 </last_ds>
                <value> 2.4900000000e+02 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

So the data is there/available.

Cami
quoted from Jerald Sheets


White, Bruce wrote:
Notice the name of the data field in your rrd file:

jhbedge02optinetnet

It does not match the edge02 in your other definitions.   Not sure why
its assigning that name, but that looks to me to be the problem.

    .....Bruce


 Bruce White
 Senior Enterprise Systems Engineer | Phone: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX | user-58f975e8bf9d@xymon.invalid | http://www.fellowes.com/
 
 
Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
 
-----Original Message-----
From: Cami [mailto:user-1062473dd2aa@xymon.invalid] 
Sent: Friday, May 07, 2010 9:51 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom graphs in Xymon

Hi..

I'm having an issue with creating a system graph in Xymon.

The script outputs the following on the page:


      Fri May 7 16:42:19 SAST 2010

edge01 : 5
edge02 : 7
edge03 : 2
edge04 : 6


hobbitgraph ncv:fmsconns	 	  Zoom graph 


Its a script to monitor concurrent connections so its value goes up and
down.

In hobbitserver.cfg, i have the following:

TEST2RRD="cpu=la,cpu2=la[......],fmsconns=ncv"
GRAPHS="la,disk[...........],fmsconns"
NCV_fmsconns="edge01:GAUGE,edge02:GAUGE"


in hobbitgraph.cfg
[fmsconns]
        TITLE Fmsconns info
        YAXIS Connections
        DEF:pct=fmsconns.rrd:util:AVERAGE
        LINE2:pct#00CC00:NParts
        GPRINT:pct:LAST: \: %3.1lf (cur)
        GPRINT:pct:MAX: \: %3.1lf (max)
        GPRINT:pct:MIN: \: %3.1lf (min)
        GPRINT:pct:AVERAGE: \: %3.1lf (avg)\n

On the 

I used the howto @ http://www.hswn.dk/hobbit/help/howtograph.html as a
guideline
but its clear i'm lacking some understanding. I'm guessing the contents
in hobbitgraph.cfg
is off as i'm doing an rrdtool dump and the output looks ok?


        <lastupdate> 1273230835 </lastupdate> <!-- 2010-05-07 13:13:55
SAST -->

        <ds>
                <name> jhbedge01optinetnet </name>
                <type> DERIVE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 4 </last_ds>
                <value> 0.0000000000e+00 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

        <ds>
                <name> jhbedge02optinetnet </name>
                <type> DERIVE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> NaN </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 3 </last_ds>
                <value> 7.9207920792e-02 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

Anyone have any ideas/tips?

Regards,
Cami

list Cami · Mon, 10 May 2010 08:21:51 +0200 ·
Hi Jerald,

1) Correct
2) Correct:


      Mon May 10 08:14:11 SAST 2010

edge01 : 2
edge02 : 2


Client data available
hobbitgraph ncv:fmsconns		

3) correct.
4) Correct:

$BB $BBDISP "status $MACHINE.$TEST $COLOUR `date`
$STATUS"

I've checked the rrd logs, unfortunately there's no mention of any issues
at all so i'm kinda stuck.

Thanks,
Cami
quoted from Jerald Sheets


Jerald Sheets wrote:
The examples you pasted in look completely correct to me.  However, just to be fully with you, I'd like to ask (just to be thorough, not a jerk) regarding the term "The script outputs the following on the page:"

Just to cross all the t's and dot all the i's: 
1.  you have a script running on a client, launched from clientlaunch.cfg and gathering data remotely. 2.  It is being sent back to the server and properly making it to the page, showing up in it's own column.
3.  The script is also sending/setting all appropriate BB environment variables:

(and example from one of my scripts)

# Xymon Variables

$ENV{BBPROG}    = "library.pl <http://library.pl>";;
quoted from Cami
my($TESTNAME)   = "library";
my($BBHOME)     = $ENV{BBHOME};
my($BB)         = $ENV{BB};
my($BBDISP)     = $ENV{BBDISP};
my($BBVAR)      = $ENV{BBVAR};


4.   You are also sending all approprate red/green/yellow/clear, etc. messages along back to the server

Note that this may not affect your display, but is just good "gathering" practice in pulling data back from remote hosts.  Even if you're only setting a "clear", it is good to do.

Unless I'm just missing something in the paste-in you're showing, I'm not seeing any overt problems.  How about the logs?  Anything there? Like maybe permissioning problems or some such?

/var/log/xymon/rrd-status.log
/var/log/rrd-data.log


(or wherever your installation's logs are) ?

---
Jerald M. Sheets jr.


On Fri, May 7, 2010 at 10:50 AM, Cami <user-1062473dd2aa@xymon.invalid <mailto:user-1062473dd2aa@xymon.invalid>> wrote:

    Hi..

    I'm having an issue with creating a system graph in Xymon.

    The script outputs the following on the page:


        Fri May 7 16:42:19 SAST 2010

    edge01 : 5
    edge02 : 7
    edge03 : 2
    edge04 : 6


    hobbitgraph ncv:fmsconns                  Zoom graph

    Its a script to monitor concurrent connections so its value goes
    up and down.

    In hobbitserver.cfg, i have the following:

    TEST2RRD="cpu=la,cpu2=la[......],fmsconns=ncv"
    GRAPHS="la,disk[...........],fmsconns"
    NCV_fmsconns="edge01:GAUGE,edge02:GAUGE"


    in hobbitgraph.cfg
    [fmsconns]
          TITLE Fmsconns info
          YAXIS Connections
          DEF:pct=fmsconns.rrd:util:AVERAGE
          LINE2:pct#00CC00:NParts
          GPRINT:pct:LAST: \: %3.1lf (cur)
          GPRINT:pct:MAX: \: %3.1lf (max)
          GPRINT:pct:MIN: \: %3.1lf (min)
          GPRINT:pct:AVERAGE: \: %3.1lf (avg)\n

    On the
    I used the howto @ http://www.hswn.dk/hobbit/help/howtograph.html
    as a guideline
    but its clear i'm lacking some understanding. I'm guessing the
    contents in hobbitgraph.cfg
    is off as i'm doing an rrdtool dump and the output looks ok?


          <lastupdate> 1273230835 </lastupdate> <!-- 2010-05-07
    13:13:55 SAST -->

          <ds>
                  <name> jhbedge01optinetnet </name>
                  <type> DERIVE </type>
                  <minimal_heartbeat> 600 </minimal_heartbeat>
                  <min> NaN </min>
                  <max> NaN </max>

                  <!-- PDP Status -->
                  <last_ds> 4 </last_ds>
                  <value> 0.0000000000e+00 </value>
                  <unknown_sec> 0 </unknown_sec>
          </ds>

          <ds>
                  <name> jhbedge02optinetnet </name>
                  <type> DERIVE </type>
                  <minimal_heartbeat> 600 </minimal_heartbeat>
                  <min> NaN </min>
                  <max> NaN </max>

                  <!-- PDP Status -->
                  <last_ds> 3 </last_ds>
                  <value> 7.9207920792e-02 </value>
                  <unknown_sec> 0 </unknown_sec>
          </ds>

    Anyone have any ideas/tips?

    Regards,
    Cami

list dOCtoR MADneSs · Mon, 10 May 2010 10:12:13 +0200 ·
quoted from Cami
On Mon, 10 May 2010 08:21:51 +0200, Cami <user-1062473dd2aa@xymon.invalid> wrote:
Hi Jerald,

1) Correct
2) Correct:


      Mon May 10 08:14:11 SAST 2010

edge01 : 2
edge02 : 2


Client data available
hobbitgraph ncv:fmsconns

3) correct.
4) Correct:

$BB $BBDISP "status $MACHINE.$TEST $COLOUR `date`
$STATUS"

I've checked the rrd logs, unfortunately there's no mention of any
issues
at all so i'm kinda stuck.

Thanks,
Cami


Jerald Sheets wrote:
The examples you pasted in look completely correct to me.  However, 
just to be fully with you, I'd like to ask (just to be thorough, not a 
jerk) regarding the term "The script outputs the following on the
page:"

Just to cross all the t's and dot all the i's: 

1.  you have a script running on a client, launched from 
clientlaunch.cfg and gathering data remotely. 
2.  It is being sent back to the server and properly making it to the 
page, showing up in it's own column.
3.  The script is also sending/setting all appropriate BB environment 
variables:

(and example from one of my scripts)

# Xymon Variables
$ENV{BBPROG}    = "library.pl <http://library.pl>";;
my($TESTNAME)   = "library";
my($BBHOME)     = $ENV{BBHOME};
my($BB)         = $ENV{BB};
my($BBDISP)     = $ENV{BBDISP};
my($BBVAR)      = $ENV{BBVAR};


4.   You are also sending all approprate red/green/yellow/clear, etc. 
messages along back to the server

Note that this may not affect your display, but is just good 
"gathering" practice in pulling data back from remote hosts.  Even if 
you're only setting a "clear", it is good to do.

Unless I'm just missing something in the paste-in you're showing, I'm 
not seeing any overt problems.  How about the logs?  Anything there? 
Like maybe permissioning problems or some such?

/var/log/xymon/rrd-status.log
/var/log/rrd-data.log


(or wherever your installation's logs are) ?

---
Jerald M. Sheets jr.


On Fri, May 7, 2010 at 10:50 AM, Cami <user-1062473dd2aa@xymon.invalid 
<mailto:user-1062473dd2aa@xymon.invalid>> wrote:

    Hi..

    I'm having an issue with creating a system graph in Xymon.

    The script outputs the following on the page:


        Fri May 7 16:42:19 SAST 2010

    edge01 : 5
    edge02 : 7
    edge03 : 2
    edge04 : 6


    hobbitgraph ncv:fmsconns                  Zoom graph

    Its a script to monitor concurrent connections so its value goes
    up and down.

    In hobbitserver.cfg, i have the following:

    TEST2RRD="cpu=la,cpu2=la[......],fmsconns=ncv"
    GRAPHS="la,disk[...........],fmsconns"
    NCV_fmsconns="edge01:GAUGE,edge02:GAUGE"


    in hobbitgraph.cfg
    [fmsconns]
          TITLE Fmsconns info
          YAXIS Connections
          DEF:pct=fmsconns.rrd:util:AVERAGE
          LINE2:pct#00CC00:NParts
          GPRINT:pct:LAST: \: %3.1lf (cur)
          GPRINT:pct:MAX: \: %3.1lf (max)
          GPRINT:pct:MIN: \: %3.1lf (min)
          GPRINT:pct:AVERAGE: \: %3.1lf (avg)\n

    On the
    I used the howto @ http://www.hswn.dk/hobbit/help/howtograph.html
    as a guideline
    but its clear i'm lacking some understanding. I'm guessing the
    contents in hobbitgraph.cfg
    is off as i'm doing an rrdtool dump and the output looks ok?


          <lastupdate> 1273230835 </lastupdate> <!-- 2010-05-07
    13:13:55 SAST -->

          <ds>
                  <name> jhbedge01optinetnet </name>
                  <type> DERIVE </type>
                  <minimal_heartbeat> 600 </minimal_heartbeat>
                  <min> NaN </min>
                  <max> NaN </max>

                  <!-- PDP Status -->
                  <last_ds> 4 </last_ds>
                  <value> 0.0000000000e+00 </value>
                  <unknown_sec> 0 </unknown_sec>
          </ds>

          <ds>
                  <name> jhbedge02optinetnet </name>
                  <type> DERIVE </type>
                  <minimal_heartbeat> 600 </minimal_heartbeat>
                  <min> NaN </min>
                  <max> NaN </max>

                  <!-- PDP Status -->
                  <last_ds> 3 </last_ds>
                  <value> 7.9207920792e-02 </value>
                  <unknown_sec> 0 </unknown_sec>
          </ds>

    Anyone have any ideas/tips?

    Regards,
    Cami

Hi,

Just a few detail, I remember I had to add a new line at the end of custom
scripts to get graphs working, like this :
$BB $BBDISP "status $MACHINE.$TEST $COLOUR `date`
$STATUS
"

May be this is not mandatory anymore, but you should add this.

Regards,
Damien
list Cami · Mon, 10 May 2010 11:24:15 +0200 ·
quoted from dOCtoR MADneSs
user-d54077869176@xymon.invalid wrote:
Just a few detail, I remember I had to add a new line at the end of custom
scripts to get graphs working, like this :
$BB $BBDISP "status $MACHINE.$TEST $COLOUR `date`
$STATUS
"

May be this is not mandatory anymore, but you should add this.
  
Thanks for the tip/idea however it didn't land up displaying any graphs. 
Not sure
why a newline would land up causing the graphs to display though.
list Jerald Sheets · Mon, 10 May 2010 08:18:15 -0400 ·
On May 10, 2010, at 2:21 AM, Cami wrote:
$BB $BBDISP "status $MACHINE.$TEST $COLOUR `date`
$STATUS"

Total non-sequitur, and I'm not near my installation at the moment...

Does the British/European spelling of "COLOR" work?  Or, is this your own variable from elsewhere in your script?

--jms
list Geoff Hallford · Mon, 10 May 2010 08:34:56 -0400 ·
As with the new line at the end, I have also found this to be case, but I
have also found that if you add a space before the item : value pair, that
is sometimes necessary ... not sure why. Example (see, there is a space
before each " item : value" pair:

5/10/2010 8:05:01 AM

 changes : 52
 deletes : 0
 ignores : 37
 errors : 0
quoted from Jerald Sheets


On Mon, May 10, 2010 at 8:18 AM, Jerald Sheets <user-96a6f34c5806@xymon.invalid> wrote:
On May 10, 2010, at 2:21 AM, Cami wrote:
$BB $BBDISP "status $MACHINE.$TEST $COLOUR `date`
$STATUS"

Total non-sequitur, and I'm not near my installation at the moment...

Does the British/European spelling of "COLOR" work?  Or, is this your own
variable from elsewhere in your script?

--jms

list Bruce White · Mon, 10 May 2010 17:19:54 -0500 ·
I have also found that there must be a space between colon delimited
items on a page or custom graphing does not function properly.
signature

 
        .....Bruce

 
 
 Bruce White
 Senior Enterprise Systems Engineer | Phone: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX | user-58f975e8bf9d@xymon.invalid | http://www.fellowes.com/
 
 
 
Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
 

quoted from Geoff Hallford
From: Geoff Hallford [mailto:user-dc9e7f30b1e2@xymon.invalid] 
Sent: Monday, May 10, 2010 7:35 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Custom graphs in Xymon

 
As with the new line at the end, I have also found this to be case, but
I have also found that if you add a space before the item : value pair,
that is sometimes necessary ... not sure why. Example (see, there is a
space before each " item : value" pair:

5/10/2010 8:05:01 AM

 changes : 52
 deletes : 0
 ignores : 37
 errors : 0


On Mon, May 10, 2010 at 8:18 AM, Jerald Sheets <user-96a6f34c5806@xymon.invalid> wrote:


On May 10, 2010, at 2:21 AM, Cami wrote:
$BB $BBDISP "status $MACHINE.$TEST $COLOUR `date`
$STATUS"

Total non-sequitur, and I'm not near my installation at the moment...

Does the British/European spelling of "COLOR" work?  Or, is this your
own variable from elsewhere in your script?

--jms
list Richard Finegold · Tue, 11 May 2010 16:44:54 -0700 ·
quoted from Cami
On Fri, May 7, 2010 at 07:50, Cami <user-1062473dd2aa@xymon.invalid> wrote:
[snip]
edge01 : 5
edge02 : 7
edge03 : 2
edge04 : 6
[snip]
NCV_fmsconns="edge01:GAUGE,edge02:GAUGE"
quoted from dOCtoR MADneSs
[snip]
in hobbitgraph.cfg
[fmsconns]
      TITLE Fmsconns info
      YAXIS Connections
      DEF:pct=fmsconns.rrd:util:AVERAGE
      LINE2:pct#00CC00:NParts
      GPRINT:pct:LAST: \: %3.1lf (cur)
      GPRINT:pct:MAX: \: %3.1lf (max)
      GPRINT:pct:MIN: \: %3.1lf (min)
      GPRINT:pct:AVERAGE: \: %3.1lf (avg)\n
Your DEF points to a DS of "util", but you apparently have DSs of
"edge01" and "edge02", so you'll need another DEF, another LINE#, and
(optionally) more GPRINTs. That's assuming you want two on one graph.

Will every host that has "fmsconns" have a status with exactly two
edge* values? Or with exactly four edge* values? I find that unlikely,
given the two digit numbering, and (also to some extent) the
discrepancy between the status message and the NCV_fmsconns line. If
the count of values can differ (e.g. you might eventually have a host
with 1 or 3 or 5 or 6 values) then SPLITNCV might be the way to go,
but that has its own complications (e.g. multigraphs). Changing the
number of DSs in an RRD is not easy.