[hobbit] Enabling vmstat[0-9] or netstat[0-9] graphs in trends page

Eric Meddaugh etmsys at rit.edu
Tue Jun 5 16:22:58 CEST 2007


 

This is what we use and works, this in only in the bb-hosts, leave the
server config the way it is.

 

TRENDS:*,vmstat:vmstat|vmstat6|vmstat9,.......<etc>

 

---Eric

 

________________________________

From: Giovanni - Gestor Redix [mailto:giovanni at redix.com.br] 
Sent: Tuesday, June 05, 2007 10:19
To: hobbit at hswn.dk
Subject: Re: [hobbit] Enabling vmstat[0-9] or netstat[0-9] graphs in
trends page

 

Thank you Mike! But... that configuration made my bb-hosts too messy...
because i have custom server-side scripts and tests for each server, in
these cases the ".default." doesn't work...

But, i made a different solution:
for NAME in $(find /home/hobbit/data/rrd/ -name "netstat.rrd"); do
        FILE="$(echo ${NAME} | sed 's/netstat/netstat1/')"
        ln -s ${NAME} ${FILE}
        FILE="$(echo ${NAME} | sed 's/netstat/netstat2/')"
        ln -s ${NAME} ${FILE}
        FILE="$(echo ${NAME} | sed 's/netstat/netstat3/')"
        ln -s ${NAME} ${FILE}
done

for NAME in $(find /home/hobbit/data/rrd/ -name "vmstat.rrd"); do
        FILE="$(echo ${NAME} | sed 's/vmstat/vmstat3/')"
        ln -s ${NAME} ${FILE}
        FILE="$(echo ${NAME} | sed 's/vmstat/vmstat5/')"
        ln -s ${NAME} ${FILE}
done

Symlinking the rrdfile i don't need to configure anything... Its ugly
but is works, lol.

Cheers




Giovanni M. Frainer



Mike Arnold wrote: 

Giovanni - Gestor Redix wrote:
  

	Hi everyone
	    Has anyone made the vmstat/netstat graphs to work ? At the
time,
	just [vmstat] graph appears in trends page... but if i select
the graph
	manually, it appears correctly... Any idea why ?
	 
	    Maybe i need to do something in hobbitserver.cfg besides
just add
	GRAPHS="...,vmstat2,vmstat3,netstat3,..."
	 
	    

 
man bb-hosts
/TRENDS
/\.default\.
 
In bb-hosts:
# This will set all hosts to display the normal trend graphs, vmstat[23]
# and netstat3.
0.0.0.0 .default. #
TRENDS:*vmstat:vmstat1|vmstat2|vmstat3,netstat:netstat1|netstat3
 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070605/ee780cd5/attachment.html>


More information about the Xymon mailing list