Xymon Mailing List Archive search

netstat vmstat columns missing?????

list Henrik Størner
Thu, 21 Jun 2007 22:15:48 +0200
Message-Id: <user-c0cc22bfb8b2@xymon.invalid>

On Thu, Jun 21, 2007 at 11:18:44AM -0400, Langford, Kenneth wrote:
I guess the problem that I have is that my users have gotten use to
seeing a netstat and vmstat column [...] Is there a way to get this data
to show up as a separate column like I had with the big brother client
so my users don't get confused????
Not directly. You could hack up a script to generate a netstat column; 
something like

    #!/bin/sh

    cd $BBVAR/rrd
    for H in */netstat.rrd
    do
       HOSTNAME=`echo $H | cut -d/ -f1`
       $BB $BBDISP "status+25h $HOSTNAME.netstat green
       
       <a href=\"$CGIBINURL/bb-hostsvc.sh?CLIENT=$HOSTNAME&section=netstat\">Current data</a>
       "
    done

    exit 0

and run this as a server-side extension from hobbitlaunch.cfg
once a day (set "INTERVAL 24h"). It should pick up the netstat graph
automatically, since the column- and graph-names match.

The link inside the status message is for easy access to the current
data.
 
A vmstat column can be done in the same way.


Regards,
Henrik