[hobbit] NCV RRD weirdness

Jeff Stuart jeff at myismail.com
Mon Nov 28 04:35:06 CET 2005


Jeff Stuart wrote:

AH HAH... my problem is solved!!!

Seems that I had to have an extra carriage return (or make the value(s)
show up first in my status) for it to find TWO data points!

Now I get this in my rrd file:
        <version> 0001 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1133148517 </lastupdate> <!-- 2005-11-27 21:28:37
CST -->

        <ds>
                <name> curplayers </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.0000000000e+02 </value>
                <unknown_sec> 207 </unknown_sec>
        </ds>

        <ds>
                <name> avgping </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> 4.2000000000e+02 </value>
                <unknown_sec> 207 </unknown_sec>
        </ds>

Which is EXACTLY what I wanted!!!! :)  Might want to stress that Henrik.
:)  I had to do this in my ext script:

                $BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date`

                curplayers : $cur_players
                avgping : $avg_ping
                ${MSG}"

Now if I hadn't sent ${MSG} it would have to look like this:

                $BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date`

                curplayers : $cur_players
                avgping : $avg_ping
"

Now my next question.. LOL  I'd like to have two SEPARATE graphs for
this stuff...  I tried this:

[qstat]
        TITLE Current Number of Players
        YAXIS # of Players
        DEF:curplayers=qstat.rrd:curplayers:AVERAGE
        LINE2:curplayers#00CCCC:Current Players
        COMMENT:\n
        GPRINT:curplayers:LAST: \: %5.1lf (cur)
        GPRINT:curplayers:MAX: \: %5.1lf (max)
        GPRINT:curplayers:MIN: \: %5.1lf (min)
        GPRINT:curplayers:AVERAGE: \: %5.1lf (avg)\n
       
[qstat1]
        TITLE Average Ping
        YAXIS ms
        DEF:avgping=qstat.rrd:avgping:AVERAGE
        LINE2:avgping#00CCCC:Average Ping
        COMMENT:\n
        GPRINT:avgping:LAST: \: %5.1lf (cur)
        GPRINT:avgping:MAX: \: %5.1lf (max)
        GPRINT:avgping:MIN: \: %5.1lf (min)
        GPRINT:avgping:AVERAGE: \: %5.1lf (avg)\n

And that didn't work.  Now if I moved the qstat1 stuff (minus title and
yaxis) up into qstat.. I got one graph with two lines... I GUESS that's
ok but.. ;)

-- 
Jeff Stuart
Network Admin 
MyInternetServices.com
1-800-300-HOST



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 11/24/2005




More information about the Xymon mailing list