Problems with graphing

Adam Goryachev adam at websitemanagers.com.au
Mon Aug 7 13:30:48 CEST 2006


I am trying to create some new hobbit graphs, and am having some 
challenges, hoping someone can point out my silly mistakes.

~hobbit/server/bin/bb 127.0.0.1 "hobbitdlog softswitch.domain.net.au.astnet"
softswitch.domain.net.au|astnet|green||1154932188|1154948263|1154950063|0|0|202.92.33.172|-1|||Y
green Mon Aug  7 20:57:35 EST 2006
Current Asterisk status:

&green Channels: 16
SIP: 4
IAX2: 4
Zap: 8
&green OK: Got 1 reply


I've set the following in hobbitserver.cfg:
NCV_astnet="greenChannels:GAUGE,IAX2:GAUGE,Zap:GAUGE,SIP:GAUGE"
TEST2RRD="cpu=la,etc,etc,astnet=ncv"
GRAPHS="la,disk,etc,etc,astnet,ncv"

In hobbitgraph.cfg I added:
[astnet]
        TITLE Asterisk Channels Information
        YAXIS: Channels
        DEF:Channels=astnet.rrd:greenChannels:AVERAGE
        DEF:ZAP=astnet.rrd:Zap:AVERAGE
        DEF:IAX2=astnet.rrd:IAX2:AVERAGE
        LINE2:Channels#00CCCC:Total Channels
        LINE2:ZAP#FF0000:ZAP Channels
        LINE2:IAX2#0000FF:IAX2 Channels
        COMMENT:\n
        GPRINT:Channels:LAST:Channels \: $5.1lf%s (cur)
        GPRINT:Channels:MAX: \: %5.1lf%s (max)
        GPRINT:Channels:MIN: \: %5.1lf%s (min)
        GPRINT:Channels:AVERAGE: \: %5.1lf%s (avg)
        GPRINT:ZAP:LAST:Channels \: $5.1lf%s (cur)
        GPRINT:ZAP:MAX: \: %5.1lf%s (max)
        GPRINT:ZAP:MIN: \: %5.1lf%s (min)
        GPRINT:ZAP:AVERAGE: \: %5.1lf%s (avg)
        GPRINT:IAX2:LAST:Channels \: $5.1lf%s (cur)
        GPRINT:IAX2:MAX: \: %5.1lf%s (max)
        GPRINT:IAX2:MIN: \: %5.1lf%s (min)
        GPRINT:IAX2:AVERAGE: \: %5.1lf%s (avg)


My rrd files seem to be working, in that they do collect some data:
rrdtool dump astnet.rrd
<!-- Round Robin Database Dump -->
<rrd>
        <version> 0001 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1154949770 </lastupdate> <!-- 2006-08-07 21:22:50 
EST -->

        <ds>
                <name> greenChannels </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> IAX2 </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> 170 </unknown_sec>
        </ds>

[SNIP]
                        <!-- 2006-08-07 17:25:00 EST / 1154935500 --> 
<row><v> 2.4980891720e+01 </v><v> 1.2490445860e+01 </v
 ><v> 1.2490445860e+01 </v></row>
                        <!-- 2006-08-07 17:30:00 EST / 1154935800 --> 
<row><v> 2.3826666667e+01 </v><v> 1.1913333333e+01 </v
 ><v> 1.1913333333e+01 </v></row>
                        <!-- 2006-08-07 17:35:00 EST / 1154936100 --> 
<row><v> 2.7513333333e+01 </v><v> 1.3756666667e+01 </v
 ><v> 1.3756666667e+01 </v></row>
                        <!-- 2006-08-07 17:40:00 EST / 1154936400 --> 
<row><v> 2.4353333333e+01 </v><v> 1.2176666667e+01 </v
 ><v> 1.2176666667e+01 </v></row>
                        <!-- 2006-08-07 17:45:00 EST / 1154936700 --> 
<row><v> 2.4420000000e+01 </v><v> 1.2210000000e+01 </v
 ><v> 1.2210000000e+01 </v></row>
                        <!-- 2006-08-07 17:50:00 EST / 1154937000 --> 
<row><v> 2.7213333333e+01 </v><v> 1.3606666667e+01 </v
 ><v> 1.3606666667e+01 </v></row>
                        <!-- 2006-08-07 17:55:00 EST / 1154937300 --> 
<row><v> 2.1920000000e+01 </v><v> 1.0960000000e+01 </v
 ><v> 1.0960000000e+01 </v></row>
                        <!-- 2006-08-07 18:00:00 EST / 1154937600 --> 
<row><v> 1.4900000000e+01 </v><v> 7.4500000000e+00 </v
 ><v> 7.4500000000e+00 </v></row>
Which seems to indicate that the data is actually making it's way into 
the RRD file, even though at the top of the file, it doesn't show valid 
data (last_ds).

So, apart from the rrd file not looking quite right, I don't get a 
actual graph on the status (or trends) column. I get a link, but no 
actual graph.

If anybody has some hints or suggestions, they would be greatly 
appreciated. I am running version from hobbit_4.1.2p2-2_i386.deb which I 
downloaded today.

Any suggestions/help greatly appreciated

Regards,
Adam




More information about the Xymon mailing list