Vmstat data for IRIX systems

Christian Perrier Christian.Perrier at onera.fr
Fri May 20 11:46:12 CEST 2005


Hobbit currently does not handle vmstat data coming from IRIX systems.

Indeed, on my former BB install, I hacked the bf-vmstat.sh script a
little and made it use "sar" to report data to be processed like
vmstat data from other hosts.

The bf-vmstat.sh script I use is:

#!/bin/sh

# $Id: vmstat-bf.sh,v 1.1 2000/11/30 20:29:44 scott Exp $
# vmstat-bf.sh

# variable definitions
MET=vmstat
VMSTAT=/usr/bin/sar
OUT=$BBHOME/tmp/$MET.$$

#################
# COLLECT
#################

# vmstat
echo "$BBOSTYPE" > $OUT
# get the data
$VMSTAT 300 2 | $TAIL -1 >> $OUT

##################
# REPORT
##################

if [ $LARRDCOMM = DATA ]
then
        $BB $BBDISP "data ${MACHINE}.$MET
`$CAT $OUT`"

else
        $BB $BBDISP "status ${MACHINE}.$MET green `date`  <$MET>
`$CAT $OUT`"

fi

rm $OUT


/usr/bin/sar xx 2 output looks like that:

bb at rhea:~/ext/bf-larrd> /usr/bin/sar 10 2

IRIX64 rhea 6.5 10070055 IP27    05/20/05

11:44:00  %usr  %sys %intr  %wio %idle %sbrk  %wfs %wswp %wphy %wgsw %wfif
11:44:10    51     2     0     0    47     0   100     0     0     0     0
11:44:20    52     3     0     0    45     0     0     0     0     0     0
Average     52     2     0     0    46     0   167     0     0     0     0


The vmstat-larrd.pl entry I use is:

          irix   => {  cpu_usr  => 1,
                       cpu_sys  => 2,
                       cpu_int  => 3,
                       cpu_w  => 4,
                       cpu_idl  => 5,
                     },


How could I hack hobbit so that it may be able to deal with thisĀ ?

PSĀ : I have similar hacks for the Super-UX OS run by NEC
supercomputers (I run BB clients on both of these)


-- 





More information about the Xymon mailing list