Xymon Mailing List Archive search

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

6 messages in this thread

list Giovanni - Gestor Redix · Mon, 04 Jun 2007 18:27:07 -0300 ·
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,..."

    Any help ?

    Thank you !

    Best Regards,

Giovanni
list Mike Arnold · Mon, 4 Jun 2007 15:26:53 -0700 (MST) ·
quoted from Giovanni - Gestor Redix
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

-- 
-mike
list Giovanni - Gestor Redix · Tue, 05 Jun 2007 11:18:57 -0300 ·
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
quoted from Mike Arnold


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

list Eric Meddaugh · Tue, 5 Jun 2007 10:22:58 -0400 ·
 

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:user-e1d5cb184a81@xymon.invalid] 
Sent: Tuesday, June 05, 2007 10:19
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Enabling vmstat[0-9] or netstat[0-9] graphs in
trends page
quoted from Giovanni - Gestor Redix

 
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
list Giovanni - Gestor Redix · Tue, 05 Jun 2007 14:15:50 -0300 ·
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
quoted from Eric Meddaugh


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:user-e1d5cb184a81@xymon.invalid]
*Sent:* Tuesday, June 05, 2007 10:19
*To:* user-ae9b8668bcde@xymon.invalid
*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
 
list Buchan Milne · Wed, 6 Jun 2007 18:42:53 +0200 ·
quoted from Giovanni - Gestor Redix
On Tuesday, 5 June 2007, Giovanni - Gestor Redix wrote:
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.
But, these files contain *different* data!

Oh well, if you really don't want all the data hobbit collects for you, and 
you like having some broken graphs ...

-- 
Buchan Milne
ISP Systems Specialist - Monitoring/Authentication Team Leader
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)