NCV problem

Samer El Sahn samer.elsahn at espace.com.eg
Tue Feb 13 11:27:02 CET 2007


Hi;

I have installed hobbit 4.2 debian package o my server..
i have the following script sending data from a remote client
#!/bin/sh
BBPROG=bb-iostat.sh; export BBPROG
if test "$BBHOME" = ""
then
        echo "BBHOME is not set... exiting"
        exit 1
fi

if test ! "$BBTMP"                      # GET DEFINITIONS IF NEEDED
then
         # echo "*** LOADING BBDEF ***"
        . $BBHOME/etc/bbdef.sh          # INCLUDE STANDARD DEFINITIONS
fi
iostat -c | nl | grep "^     3" | awk '{print $5}'> $BBHOME/tmp.iostat
io="`cat $BBHOME/tmp.iostat`"
iostat -c | nl | grep "^     3" | awk '{print $6}'> $BBHOME/tmp.iostat
iowait="`cat $BBHOME/tmp.iostat`"
echo -e "\nio : $io\niowait : $iowait" > $BBHOME/tmp.iostat
COLOR="green"
    $BB $BBDISP "status $MACHINE.diskIO $COLOR `date`

`cat $BBHOME/tmp.iostat`
"
and i get the following on my hobbit page under column diskIO
Tue Feb 13 02:20:53 PST 2007


io : 0.30
iowait : 99.21


my hobbitserver.cfg
TEST2RRD="cpu=la,disk,cpu2,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,mysql=ncv,diskIO=ncv"
GRAPHS="la,disk,cpu2,inode,qtree,files,processes,memory,users,vmstat,iostat,
tcp.http
,tcp,ncv,netstat,ifstat,mrtg::1,ports,temperature,ntpstat,apache,bind,sendmail,mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,mysql,diskIO"

the thing is when i put
NCV_diskIO="io:GUAGE,iowait:GUAGE"
i get no rrd data
and when i put NCV_diskIO="diskIO:GUAGE" or NCV_diskIO"GUAGE" i get data as
fllow

<rrd>
        <version> 0001 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1171362052 </lastupdate> <!-- 2007-02-13 05:20:52 EST
-->

        <ds>
                <name> io </name>
                <type> DERIVE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 0.30 </last_ds>
                <value> 0.0000000000e+00 </value>
                <unknown_sec> 52 </unknown_sec>
        </ds>

        <ds>
                <name> iowait </name>
                <type> DERIVE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> 99.21 </last_ds>
                <value> 0.0000000000e+00 </value>
                <unknown_sec> 52 </unknown_sec>
        </ds>

as u see they are all drive not guage!!!
and the graph appears with wrong data.. and is therefore drown worng!!
here is my hobbitgraph
[diskIO]
       TITLE diskIO
       YAXIS io
       DEF:diskIO=diskIO.rrd:io:AVERAGE
       LINE2:diskIO#00CCCC:io
       COMMENT:\n
       GPRINT:diskIO:LAST: \: %5.1lf (cur)
       GPRINT:diskIO:MAX: \: %5.1lf (max)
       GPRINT:diskIO:MIN: \: %5.1lf (min)
       GPRINT:diskIO:AVERAGE: \: %5.1lf (avg)\n

is there something wrong that i did?

-- 
Regards

Samer El Sahn
e S p a c e

www.espace.com.eg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070213/35433f65/attachment.html>


More information about the Xymon mailing list