[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



I know, it worked for me too... but... i just made the same thing using another solution... i prefer that because i don't want to set all the default trends for every host in bb-hosts... i have a shell-script that configures the server-side for every client that i install, so i just do the symlinking at the end...

But thanks anyway...

Cheers

Giovanni M. Frainer - Gestor




Eric Meddaugh wrote:

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